cloud-fan commented on a change in pull request #29349:
URL: https://github.com/apache/spark/pull/29349#discussion_r466839986
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/BinaryComparisonSimplificationSuite.scala
##########
@@ -119,9 +119,7 @@ class BinaryComparisonSimplificationSuite extends PlanTest
with PredicateHelper
// GetStructField with different names are semantically equal; thus,
`EqualTo(fieldA1, fieldA2)`
// will be optimized to `TrueLiteral` by `SimplifyBinaryComparison`.
- val originalQuery = nonNullableRelation
- .where(EqualTo(fieldA1, fieldA2))
- .analyze
+ val originalQuery = nonNullableRelation.where(EqualTo(fieldA1, fieldA2))
Review comment:
Here we construct the resolved plan directly, because we need to reply
on case insensitive and `.analyze` use case sensitive analyzer.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]