-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: integer division returns float, sqllogic test expects int #3271
Copy link
Copy link
Closed
Labels
A-sql-semanticsC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Milestone
Description
The following (currently disabled) test performs integer division. Cockroach returns a float instead of the expected int. Integer division is the only binary operator that takes integers and returns a float.
I propose allowing the test logic to accept both ints and floats when it expects an int. This would allow any sqllogic test using integer division to succeed. It would be an additional if statement at
Line 460 in 21e3e6c
| case 'I': |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-semanticsC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.