rui-mo commented on code in PR #13613:
URL: https://github.com/apache/gluten/pull/13613#discussion_r4634727900


##########
gluten-substrait/src/main/scala/org/apache/gluten/config/GlutenConfig.scala:
##########
@@ -613,6 +612,20 @@ object GlutenConfig extends ConfigRegistry {
           nativeConfMap
             .put(SQLConf.LEGACY_TIME_PARSER_POLICY.key, 
v.toUpperCase(Locale.ROOT)))
 
+    // `conf` holds raw strings, so parse the policy with Spark's converter to 
give native code
+    // the same value as `SQLConf.getConf`.
+    val rawMapKeyDedupPolicy = conf.getOrElse(
+      SQLConf.MAP_KEY_DEDUP_POLICY.key,
+      SQLConf.MAP_KEY_DEDUP_POLICY.defaultValueString)
+    nativeConfMap.put(
+      SQLConf.MAP_KEY_DEDUP_POLICY.key,
+      
SQLConf.MAP_KEY_DEDUP_POLICY.valueConverter(rawMapKeyDedupPolicy).toString)
+
+    // Spark accepts the codec name in any case, and Velox matches it in lower 
case.
+    conf

Review Comment:
   nit: The config construction here is shared across all backends, including 
ClickHouse, so we could avoid introducing Velox-specific changes. If this 
applies to all backends, please remove the Velox-specific comment as well.



-- 
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]

Reply via email to