Github user mgaido91 commented on the issue:

    https://github.com/apache/spark/pull/21403
  
    @cloud-fan, no, it introduces a behavior change when structs are involved. 
The two queries 
[here](https://github.com/apache/spark/pull/21403/files/eb1dfb7e0873b8479ea54d223b7fde3dcefa4834#diff-b324aa60ed6de5866aebafc3c9b80391R10)
 would fail before this query, while the version written like this would work 
(and after the PR doesn't work instead):
    ```
    select count(*) from struct_tab where record in (select a2, b2 from tab_b);
    select count(*) from struct_tab where record not in (select a2, b2 from 
tab_b);
    ```
    Since before the PR any struct before the IN operator behaves like having 
`(f1, f2, ...)`, while after the PR a struct there is considered as a field.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to