[ 
https://issues.apache.org/jira/browse/SPARK-57243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Gekk resolved SPARK-57243.
------------------------------
    Fix Version/s: 4.3.0
       Resolution: Fixed

Issue resolved by pull request 56296
[https://github.com/apache/spark/pull/56296]

> Wrap IsNull and IsNotNull in brackets for V2 SQL builder
> --------------------------------------------------------
>
>                 Key: SPARK-57243
>                 URL: https://issues.apache.org/jira/browse/SPARK-57243
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.2.0
>            Reporter: Milan Stefanovic
>            Assignee: Milan Stefanovic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.3.0
>
>
> Right now IsNull is pushed without brackets, so if we were to have expression 
> such as:
> IsNull(EqualTo(a, b)) it would be pushed down as `a=b IS NULL`.
> This is error prone as it depends on operator precedence/parser of the 
> dialect.
> We should make it more safe by pushing it down as `(a=b) IS NULL`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to