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 2022/04/07 07:49:23 UTC

[GitHub] [spark] cloud-fan commented on a diff in pull request #34900: [SPARK-37643][SQL] when charVarcharAsString is true, char datatype partition table query incorrect

cloud-fan commented on code in PR #34900:
URL: https://github.com/apache/spark/pull/34900#discussion_r844825703


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -4082,18 +4082,21 @@ object ApplyCharTypePadding extends Rule[LogicalPlan] {
 
         // String literal is treated as char type when it's compared to a char type column.
         // We should pad the shorter one to the longer length.
-        case b @ BinaryComparison(e @ AttrOrOuterRef(attr), lit) if lit.foldable =>
+        case b @ BinaryComparison(e @ AttrOrOuterRef(attr), lit)

Review Comment:
   do you know why it's a problem only for partition predicates, not normal predicates?



-- 
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: reviews-unsubscribe@spark.apache.org

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