[
https://issues.apache.org/jira/browse/SPARK-53454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-53454.
---------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
Issue resolved by pull request 56085
[https://github.com/apache/spark/pull/56085]
> Fix AlwaysTrue/AlwaysFalse predicate translation in JDBC connectors
> -------------------------------------------------------------------
>
> Key: SPARK-53454
> URL: https://issues.apache.org/jira/browse/SPARK-53454
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.1.0
> Reporter: Petar Vasiljevic
> Assignee: Petar Vasiljevic
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.2.0
>
>
> If AQE changes the plan so that the predicate is AlwaysTrue or AlwaysFalse,
> generated JDBC SQL query would be 'WHERE 1' or 'WHERE 0'. Some dialects don't
> support it, so we should change the SQL generation to something any dialect
> can handle.
> Therefore, I propose translating it to 'WHERE 1=1' or 'WHERE 1=0'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]