We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CAST
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
DataFusion differs from Spark and Postgres in the naming of CAST expressions. Spark and Postgres casts do not rename the column.
scala> spark.sql("select id*2, cast(id as string), name from t").show() +--------+---+-----+ |(id * 2)| id| name| +--------+---+-----+ | 2| 1|hello| | 4| 2| x| +--------+---+-----+
postgres=# select id*2, cast(id as varchar(12)), name from t1; ?column? | id | name ----------+----+------ 2 | 1 | x
❯ select id*2, cast(id as varchar(12)), name from test; +---------------------------+-----------------------+-------+ | test.id Multiply Int64(2) | CAST(test.id AS Utf8) | name | +---------------------------+-----------------------+-------+ | 2 | 1 | hello | +---------------------------+-----------------------+-------+
Describe the solution you'd like cast should not change expression name in results
Describe alternatives you've considered None
Additional context None
The text was updated successfully, but these errors were encountered:
andygrove
Successfully merging a pull request may close this issue.
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
DataFusion differs from Spark and Postgres in the naming of CAST expressions. Spark and Postgres casts do not rename the column.
Spark
Postgres
DataFusion
Describe the solution you'd like
cast should not change expression name in results
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: