cloud-fan commented on a change in pull request #35768:
URL: https://github.com/apache/spark/pull/35768#discussion_r825975129
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
##########
@@ -586,21 +523,19 @@ private[sql] object DataSourceV2Strategy {
right, translatedFilterToExpr, nestedPredicatePushdownEnabled)
} yield new V2And(leftFilter, rightFilter)
- case expressions.Or(left, right) =>
+ case Or(left, right) =>
for {
leftFilter <- translateFilterV2WithMapping(
left, translatedFilterToExpr, nestedPredicatePushdownEnabled)
rightFilter <- translateFilterV2WithMapping(
right, translatedFilterToExpr, nestedPredicatePushdownEnabled)
} yield new V2Or(leftFilter, rightFilter)
- case expressions.Not(child) =>
+ case Not(child) =>
translateFilterV2WithMapping(child, translatedFilterToExpr,
nestedPredicatePushdownEnabled)
- .map(new V2Not(_))
-
+ .map(v => new V2Not(v))
case other =>
Review comment:
nit: add a blank line before this case.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]