You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/01/26 08:38:30 UTC
[GitHub] [spark] cloud-fan commented on a change in pull request #31339: [SPARK-34236][SQL] Fix v2 Overwrite w/ null static partition raise Cannot translate expression to source filter: null
cloud-fan commented on a change in pull request #31339:
URL: https://github.com/apache/spark/pull/31339#discussion_r564332555
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -1335,7 +1335,7 @@ class Analyzer(override val catalogManager: CatalogManager)
// ResolveOutputRelation runs, using the query's column names that will match the
// table names at that point. because resolution happens after a future rule, create
// an UnresolvedAttribute.
- EqualTo(UnresolvedAttribute(attr.name), Cast(Literal(value), attr.dataType))
+ EqualNullSafe(UnresolvedAttribute(attr.name), Cast(Literal(value), attr.dataType))
Review comment:
for `INSERT OVERWRITE t PARTITION (c=null) ...`, we do need to drop data if the column `c` is null, so `EqualNullSafe` is corrected here.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org