-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better name display for CAST #10274
Comments
The result seems correct to me. +----------+ i64(2) is the name, not the type.
|
Yes, I realized that. I was thinking whether we should use a better name to display, for example
|
Strongly agree with a better name! |
I agree formatting I am not sure about removing the |
I think you are mistaken Current display is like, which is unclear why i64 type has a result like float, because we do not show the
Expect display is something like
|
I agree @jayzhan211 -- sorry for misreading this. I agree that If the user ran select CAST(2 AS Float)` seeing this makes sense
However, if the user wrote something like this select col = 2 I would expect the result to be something like (even if col was a float column and coercsion applied casts)
|
It looks good to me because we can infer the type from |
Note: I would like to know if it is possible to have one single function name for |
@yyy1000 Are you still working on this? |
No, currently having my internship so I don't have buffer on this. 🥲 |
Describe the bug
The type name for CAST is not correct when using datafusion-cli
To Reproduce
DataFusion CLI v37.1.0
Expected behavior
No response
Additional context
I'm finding what's wrong with it. 🤔
The text was updated successfully, but these errors were encountered: