Skip to content

Commit c1d2635

Browse files
belieferCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 83594fb commit c1d2635

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gluten-substrait/src/main/scala/org/apache/gluten/config/GlutenConfig.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ object GlutenConfig extends ConfigRegistry {
584584
// reads columns back as null/empty. Override the (Velox) orcUseColumnNames session conf
585585
// so native reads ORC by position too. Harmless for backends that ignore this key.
586586
// String literal is used because gluten-substrait cannot depend on backends-velox.
587-
if (conf.getOrElse(SPARK_ORC_FORCE_POSITIONAL_EVOLUTION, "false").toBoolean) {
587+
if (
588+
backendName == "velox" &&
589+
conf.getOrElse(SPARK_ORC_FORCE_POSITIONAL_EVOLUTION, "false").toBoolean) {
588590
nativeConfMap.put("spark.gluten.sql.columnar.backend.velox.orcUseColumnNames", "false")
589591
}
590592

0 commit comments

Comments
 (0)