Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/21403#discussion_r198900926
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
---
@@ -161,33 +161,38 @@ case class Not(child: Expression)
true
""")
// scalastyle:on line.size.limit
-case class In(value: Expression, list: Seq[Expression]) extends Predicate {
+case class In(values: Seq[Expression], list: Seq[Expression]) extends
Predicate {
--- End diff --
ah it's getting interesting. I tried `=`
```
cloud0fan=# select 1 from (select (1, 'a') as col1) tab1 where col1 = (1,
'a');
ERROR: could not identify an equality operator for type unknown
cloud0fan=# select 1 from (select 1 as col1, 'a' as col2) tab1 where (col1,
col2) = (1, 'a');
?column?
----------
1
(1 row)
```
I'm wondering if there is any other special rules for `(...)`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]