You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the option datafusion.sql_parser.parse_float_as_decimal to true, and then input a decimal data that exceeds the maximum precision, it will panic.
To Reproduce
DataFusion CLI v31.0.0
❯ set datafusion.sql_parser.parse_float_as_decimal=true;
0 rows in set. Query took 0.003 seconds.
❯ select 123456789.012345678901234567890123456789;
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArgumentError("precision 39 is greater than max 38")', arrow-datafusion/datafusion/common/src/scalar.rs:1729:18
Expected behavior
Return an Error instead of panic.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Set the option
datafusion.sql_parser.parse_float_as_decimal
to true, and then input a decimal data that exceeds the maximum precision, it will panic.To Reproduce
Expected behavior
Return an Error instead of panic.
Additional context
No response
The text was updated successfully, but these errors were encountered: