Backend
VL (Velox)
Bug description
Starting from Spark 4.1, SQLConf.get.getConf(SQLConf.MAP_KEY_DEDUP_POLICY) returns an enum value instead of a String. The existing comparison against the .toString of the EXCEPTION variant would always evaluate to not-equal (comparing enum != String), incorrectly rejecting str_to_map offloading even when the policy is set to EXCEPTION.
Add .toString on the left side so both operands are compared as Strings, restoring correct behavior across all Spark versions.
Gluten version
main branch
Spark version
spark-4.0.x
Spark configurations
No response
System information
No response
Relevant logs
Backend
VL (Velox)
Bug description
Starting from Spark 4.1, SQLConf.get.getConf(SQLConf.MAP_KEY_DEDUP_POLICY) returns an enum value instead of a String. The existing comparison against the
.toStringof theEXCEPTIONvariant would always evaluate to not-equal (comparing enum != String), incorrectly rejectingstr_to_mapoffloading even when the policy is set toEXCEPTION.Add
.toStringon the left side so both operands are compared as Strings, restoring correct behavior across all Spark versions.Gluten version
main branch
Spark version
spark-4.0.x
Spark configurations
No response
System information
No response
Relevant logs