-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: Add support for floor division #6642
sql: Add support for floor division #6642
Conversation
LGTM, but I was imagining more an overloaded operator. x // y where x and y are decimals should produce decimal, just one there the decimal part is all zeros. Same for floats.
|
Yeah, in python
|
5bdec95
to
21ada7f
Compare
Updated to support floor division with all three numeric data types. I also had to change a few tests now that DECIMAL is the default numeric data type. PTAL
|
a52e6f0
to
c6ed8ea
Compare
Does this still look good after the support for FLOAT and DECIMAL? |
See cockroachdb#6369. This change adds the syntax `//` for floor division.
c6ed8ea
to
4b54cda
Compare
See #6369.
This change adds the syntax
//
for floor division.This change is