Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/10660#discussion_r49164281
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
---
@@ -803,6 +803,21 @@ class HiveQuerySuite extends HiveComparisonTest with
BeforeAndAfter {
assertResult(Array(Row(1))) {
sql("select 1 as a intersect select 1 as a").collect()
}
+ assertResult(Array(Row(1))) {
+ sql("(select 1 as a) intersect (select 1 as a)").collect()
--- End diff --
Is it possible to test fix by adding these to the parser unit test without
running the queries?
As we develop more and more Spark features, I'd like to encourage doing
actual unit tests or integration tests that run the minimal required code.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]