apache / apache/datafusion

Better name display for CAST

Open
#10,274 12 comments 0 reactions 1 assignee Claimed by @jayzhan211 View on GitHub
bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.