This is an automated email from the ASF dual-hosted git repository.

Gabriel39 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 122f3b0d8f1 [fix](orc)fix hive-orc reader read columns base in column 
index by default rather than column name. (#65085)
122f3b0d8f1 is described below

commit 122f3b0d8f1d4fce647a0b7be651c1ad1236fa7c
Author: daidai <[email protected]>
AuthorDate: Mon Jul 6 11:39:08 2026 +0800

    [fix](orc)fix hive-orc reader read columns base in column index by default 
rather than column name. (#65085)
    
    change `HIVE_ORC_USE_COLUMN_NAMES` session var default value to `false`.
---
 fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java | 8 ++++----
 .../external_table_p0/hive/test_different_column_orders.groovy    | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
index 2f92f9fc7b4..749726bc9ca 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -2957,10 +2957,10 @@ public class SessionVariable implements Serializable, 
Writable {
     public boolean hiveParquetUseColumnNames = true;
 
     @VarAttrDef.VarAttr(name = HIVE_ORC_USE_COLUMN_NAMES, 
affectQueryResultInExecution = true,
-            description = {"默认情况下按名称访问 Orc 列。将此属性设置为“false”可按 Hive 
表定义中的序号位置访问列。",
-                    "Access Parquet columns by name by default. Set this 
property to `false` to access columns "
-                            + "by their ordinal position in the Hive table 
definition."})
-    public boolean hiveOrcUseColumnNames = true;
+            description = {"默认情况下按照 Hive 表定义中的序号位置访问列。将此属性设置为“true”可按名称访问 Orc 
列 。",
+                    "By default, columns are accessed based on their ordinal 
position in the Hive table definition."
+                            + " Set this property to `true` to access ORC 
columns by name."})
+    public boolean hiveOrcUseColumnNames = false;
 
     @VarAttrDef.VarAttr(name = KEEP_CARRIAGE_RETURN,
             description = {"在同时处理\r和\r\n作为 CSV 的行分隔符时,是否保留\r",
diff --git 
a/regression-test/suites/external_table_p0/hive/test_different_column_orders.groovy
 
b/regression-test/suites/external_table_p0/hive/test_different_column_orders.groovy
index a1a2fd327cd..27382fa2628 100644
--- 
a/regression-test/suites/external_table_p0/hive/test_different_column_orders.groovy
+++ 
b/regression-test/suites/external_table_p0/hive/test_different_column_orders.groovy
@@ -28,6 +28,7 @@ suite("test_different_column_orders", "p0,external") {
         """
     }
     def q_orc = {
+        sql """ set hive_orc_use_column_names = true """
         qt_q01 """
         select * from test_different_column_orders_orc order by id;
         """


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to