-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EntityID as Number #1597
Comments
Do you mean SQL |
@Tapac yes! So, at the end of the day, to have the ability to write something like that:
|
@dummyco .orderBy(
Expression.build { MyTable.id mod seed } to SortOrder.ASC,
MyTable.id to SortOrder.ASC
) |
@AlexeySoshin it seems like |
After looking at the code some more, my comment above is incorrect, and what you need is the The reason
We could either loosen the type, which may result in runtime errors, or we may introduce another I attached a draft PR for the second case. Having difficulties testing it at the moment, though. |
@AlexeySoshin, thank you for looking into it and posting a PR. The solution with separate |
Different mod/rem operations with EntityID columns are support since 0.41.1 |
Hello! Thank you for that amazing framework.
Is there a way to get an underlying number (long) column expression from
EntityID
provided byLongIdTable
?For instance, to implement id-based shuffling with a modulo:
AnyTable.id mod shuffleSeed
The text was updated successfully, but these errors were encountered: