-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Translate CAST to connector expression #11551
Conversation
@findepi PTAL |
8a26e3a
to
4895ebd
Compare
Rebased to include #11567 |
CI failure looks related. |
4895ebd
to
9b52315
Compare
@findepi fixed |
9b52315
to
d8943b3
Compare
CI: #11275 |
CAST has the property that the target type is known, so it probably shouldn't be I think we should model the CAST as a |
d8943b3
to
5663f25
Compare
@findepi ptal |
I discussed this with @martint yesterday, and the conclusion was to model the CAST as a 1-arg The concerns were that it would prevent type inference if it is needed in the future, but we believe it won't be needed nor desired anyway. Also, our ConnectorExpression "language" doesn't have implicit coercions, and we don't want to change this. |
core/trino-spi/src/main/java/io/trino/spi/expression/StandardFunctions.java
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/TestTableScanRedirectionWithPushdown.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/TestConnectorExpressionTranslator.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/TestConnectorExpressionTranslator.java
Show resolved
Hide resolved
4d028ea
to
150c3d0
Compare
150c3d0
to
2b5c7a5
Compare
core/trino-main/src/main/java/io/trino/sql/planner/ConnectorExpressionTranslator.java
Show resolved
Hide resolved
Co-authored-by: Raunaq Morarka <[email protected]>
2b5c7a5
to
71d3fa9
Compare
there are some failures |
|
Extracted first commit from #11522