You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "cloud-fan (via GitHub)" <gi...@apache.org> on 2024/03/29 02:34:45 UTC
Re: [PR] [SPARK-47634][SQL] Add legacy support for disabling map key normalization [spark]
cloud-fan commented on code in PR #45760:
URL: https://github.com/apache/spark/pull/45760#discussion_r1543977704
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/ArrayBasedMapBuilder.scala:
##########
@@ -64,7 +64,7 @@ class ArrayBasedMapBuilder(keyType: DataType, valueType: DataType) extends Seria
throw QueryExecutionErrors.nullAsMapKeyNotAllowedError()
}
- val keyNormalized = keyNormalizer(key)
+ val keyNormalized = if (SQLConf.get.disableMapKeyNormalization) key else keyNormalizer(key)
Review Comment:
can we check this config when creating `keyNormalizer`?
--
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