-
-
Notifications
You must be signed in to change notification settings - Fork 821
fix: Fix json range query with different number type #2725
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
base: main
Are you sure you want to change the base?
Conversation
|
I'd rather have the limitation that both bounds provided by the user have to be of the same type and otherwise return an error Not sure it makes sense to have a range from i64 to f64 |
@PSeitz Thanks for your review. Bounds may have different types in many scenarios, such as [-1 to 18446744073709551615], where the types are i64 and u64 respectively. We cannot convert them to a single type unless using i128. |
In this case you would need to use f64 (same as the data would be coerced to on the column) |
|
Hi @PSeitz PTAL, I re-implemented this part of the code, converting |
I'd rather have the limitation that both bounds provided by the user have to be of the same type and otherwise return an error. This is a limitation of the API design currently, which should be fixed eventually. |
|
This PR fix json range query with different Numerical type caused panic