2010YOUY01 opened a new issue, #17387: URL: https://github.com/apache/datafusion/issues/17387
### Describe the bug datafusion-cli is compiled from the latest main commit d19bf524e384b ```sql DataFusion CLI v49.0.2 > select null % null; Error during planning: Cannot get result type for arithmetic operation Null % Null: Invalid argument error: Invalid arithmetic operation: Null % Null ``` It should return `NULL` instead of planning error: ``` > create table t1(v1 int, v2 int); 0 row(s) fetched. Elapsed 0.025 seconds. > insert into t1 values (null, null); +-------+ | count | +-------+ | 1 | +-------+ 1 row(s) fetched. Elapsed 0.023 seconds. > select v1%v2 from t1; +---------------+ | t1.v1 % t1.v2 | +---------------+ | NULL | +---------------+ 1 row(s) fetched. Elapsed 0.007 seconds. ``` ### To Reproduce _No response_ ### Expected behavior _No response_ ### Additional context Found by SQLancer https://github.com/apache/datafusion/issues/16760 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
