xiedeyantu commented on code in PR #4653:
URL: https://github.com/apache/calcite/pull/4653#discussion_r2579179881


##########
core/src/test/resources/sql/misc.iq:
##########
@@ -18,6 +18,16 @@
 !use post
 !set outputformat mysql
 
+select CAST(5 AS DOUBLE) / 0 as a;

Review Comment:
   I think you are correct. DuckDB also returns inf. You can use this 
[link](https://shell.duckdb.org/) to check it.
   ```
   duckdb> select CAST(5 AS DOUBLE) / 0 as a;
   ┌─────┐
   │ a   │
   ╞═════╡
   │ inf │
   └─────┘
   
   duckdb> select CAST(-5 AS DOUBLE) / 0 as a;
   ┌──────┐
   │ a    │
   ╞══════╡
   │ -inf │
   └──────┘
   ```



-- 
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]

Reply via email to