Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Fall back to use row-based operators, error is not currently supported: ansi_cast(id#1 as string) #1134

Open
kobegy248 opened this issue Oct 18, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@kobegy248
Copy link

kobegy248 commented Oct 18, 2022

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Fall back to use row-based operators, error is not currently supported: ansi_cast(id#1 as string)., original sparkplan is class org.apache.spark.sql.execution.ProjectExec(List(class org.apache.spark.sql.execution.FilterExec))

CREATE EXTERNAL TABLE IF NOT EXISTS default.test_string(id STRING) STORED AS ORC
INSERT OVERWRITE TABLE default.test_string select id from gy_orc.test_int

Describe the solution you'd like
Support AnsiCast

@kobegy248 kobegy248 added the enhancement New feature or request label Oct 18, 2022
@PHILO-HE
Copy link
Collaborator

Yes, cast will become ansi_cast if spark.sql.ansi.enabled=true. Currently, we only have some ANSI support in casting string to numeric types, see ColumnarCast. But casting some types to string type in ANSI standard is not supported.
We have no plan to fully support ANSI behaviors for all expressions. Technical discussions and code contributions are welcome! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants