[fix](arrow_flight_sql) Fix ArrowSchema column alias (#33490)

run: select TABLE_SCHEMA as a, sum(TABLE_ROWS) as b  from tables group by TABLE_SCHEMA limit 2;
old output:

          TABLE_SCHEMA                        Nullable(Int64)_1
0  regression_test_mv_p0_sum_count           9
1  regression_test_query_p0_sql_functions_string_functions       70414
now output:

          a                        b
0  regression_test_mv_p0_sum_count            9
1  regression_test_query_p0_sql_functions_string_functions       70414
This commit is contained in:
Xinyi Zou
2024-04-22 10:46:30 +08:00
committed by yiguolei
parent 615765c1c0
commit 7f61626c8d
7 changed files with 16 additions and 4 deletions

View File

@ -365,6 +365,7 @@ public class SlotRef extends Expr {
msg.slot_ref = new TSlotRef(desc.getId().asInt(), desc.getParent().getId().asInt());
msg.slot_ref.setColUniqueId(desc.getUniqueId());
msg.setOutputColumn(outputColumn);
msg.setLabel(label);
}
@Override