yyy1000 opened a new issue, #10274: URL: https://github.com/apache/datafusion/issues/10274
### Describe the bug The type for CAST is not correct when using datafusion-cli ### To Reproduce DataFusion CLI v37.1.0 > SELECT CAST(2 AS INTEGER); +----------+ | Int64(2) | +----------+ | 2 | +----------+ 1 row(s) fetched. Elapsed 0.027 seconds. > SELECT CAST(2 AS DOUBLE); +----------+ | Int64(2) | +----------+ | 2.0 | +----------+ 1 row(s) fetched. Elapsed 0.005 seconds. > SELECT arrow_typeof(CAST(2 AS DOUBLE)); +------------------------+ | arrow_typeof(Int64(2)) | +------------------------+ | Float64 | +------------------------+ 1 row(s) fetched. Elapsed 0.008 seconds. ### Expected behavior _No response_ ### Additional context I'm finding what's wrong with it. I think it's not an issue from datafusion-cli but from the CAST itself. 🤔 -- 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]
