Better name display for CAST
- Dominant language
- Rust
- Stars
- 9.3k
- Forks
- 2.4k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 344
Description
### Describe the bug
The type name 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. 🤔
Contributor guide
Assessment
This issue has not been assessed yet.