pedrumj2 commented on code in PR #13613:
URL: https://github.com/apache/gluten/pull/13613#discussion_r4624518478


##########
gluten-substrait/src/main/scala/org/apache/gluten/config/GlutenConfig.scala:
##########
@@ -613,6 +612,21 @@ object GlutenConfig extends ConfigRegistry {
           nativeConfMap
             .put(SQLConf.LEGACY_TIME_PARSER_POLICY.key, 
v.toUpperCase(Locale.ROOT)))
 
+    // Spark accepts this value in any case, and native code compares it in 
upper case.
+    nativeConfMap.put(
+      SQLConf.MAP_KEY_DEDUP_POLICY.key,
+      conf
+        .getOrElse(
+          SQLConf.MAP_KEY_DEDUP_POLICY.key,
+          SQLConf.MAP_KEY_DEDUP_POLICY.defaultValueString)
+        .toUpperCase(Locale.ROOT)
+    )
+
+    // Spark accepts the codec name in any case, and Velox matches it in lower 
case.
+    conf

Review Comment:
   Thanks @rui-mo 
   
   > Spark already uppercases spark.sql.mapKeyDedupPolicy when parsing it; the 
raw value reaches native code only because Gluten forwards the raw strings from 
SQLConf.getAllConfs.
   
   Updated to mapKeyDedupPolicy to use the Spark helper
   
   > Keep toLowerCase for spark.io.compression.codec
   
   Kept codec as is
   
   > Case-insensitive parsing in Velox could be a follow-up but would not block 
this PR.
   
   Makes sense, noted Velox for follow up and long term fix. 
   
   Please let me know if there is anything we'd like to change here, thanks!
   
   



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