This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 6dbf100ce40 [test](regression) skip Arrow-incompatible complex outputs
(#65182)
6dbf100ce40 is described below
commit 6dbf100ce40917139727e3b2017082ade5a26061
Author: shuke <[email protected]>
AuthorDate: Fri Jul 3 16:55:57 2026 +0800
[test](regression) skip Arrow-incompatible complex outputs (#65182)
## What
- Skip map cast cases that intentionally produce null map keys when
running through Arrow Flight SQL.
- Use Arrow-specific bitmap assertions that compare
`bitmap_to_string(user_id)` instead of raw bitmap bytes.
## Why
- Arrow Map cannot represent null keys, while the JDBC text path can
render `{null:...}` for these cast semantics checks.
- Raw BITMAP output is protocol-specific: JDBC renders `\N`, while Arrow
exposes binary bytes. The stable semantic assertion is
`bitmap_to_string`.
## Testing
Not run. This PR is intentionally independent of #65084; run buildall
after #65084 is merged.
---
.../aggregate_functions/test_aggregate_all_functions.out | 9 +++++++++
regression-test/suites/query_p0/cast/test_cast.groovy | 15 +++++++++------
.../test_aggregate_all_functions.groovy | 9 +++++++--
3 files changed, 25 insertions(+), 8 deletions(-)
diff --git
a/regression-test/data/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.out
b/regression-test/data/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.out
index f3aedc75042..ca7630c882f 100644
---
a/regression-test/data/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.out
+++
b/regression-test/data/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.out
@@ -20,6 +20,15 @@ xian 100
-- !select_all2 --
20220202 eleme \N 10001,72173389
+-- !select_all1_arrow --
+20220201 eleme 10001,72173389
+20220201 meituan 10000,10001,72173389
+20220202 eleme 10001,72173389
+20220203 meituan 10000,10001,72173389
+
+-- !select_all2_arrow --
+20220202 eleme 10001,72173389
+
-- !bitmap_intersect --
20220201 10001
20220202 10001
diff --git a/regression-test/suites/query_p0/cast/test_cast.groovy
b/regression-test/suites/query_p0/cast/test_cast.groovy
index 435414f3b0d..0b9364c920a 100644
--- a/regression-test/suites/query_p0/cast/test_cast.groovy
+++ b/regression-test/suites/query_p0/cast/test_cast.groovy
@@ -235,11 +235,14 @@ suite('test_cast', "arrow_flight_sql") {
select cast(map(1, 10) as map<int, int>);
"""
- qt_map_to_map2 """
- select cast(map(123456789011, 10) as map<int, int>);
- """
+ // Arrow Map cannot represent null keys. These casts intentionally produce
null map keys.
+ if (!context.useArrowFlightSql()) {
+ qt_map_to_map2 """
+ select cast(map(123456789011, 10) as map<int, int>);
+ """
- qt_map_to_map3 """
- select cast(map(123456789011, 123456789011) as map<int, int>);
- """
+ qt_map_to_map3 """
+ select cast(map(123456789011, 123456789011) as map<int, int>);
+ """
+ }
}
diff --git
a/regression-test/suites/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.groovy
b/regression-test/suites/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.groovy
index a4ba5e05e4c..741c93dad4b 100644
---
a/regression-test/suites/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.groovy
+++
b/regression-test/suites/query_p0/sql_functions/aggregate_functions/test_aggregate_all_functions.groovy
@@ -102,8 +102,13 @@ suite("test_aggregate_all_functions", "arrow_flight_sql") {
sql "insert into ${tableName_03} select dt,page,to_bitmap(user_id_int)
user_id from ${tableName_04}"
sql "insert into ${tableName_03} select dt,page,bitmap_hash(user_id_str)
user_id from ${tableName_04}"
- qt_select_all1 "select *, bitmap_to_string(user_id) from pv_bitmap order
by 1,2;"
- qt_select_all2 "select *, bitmap_to_string(user_id) from pv_bitmap where
dt = 20220202 order by 1,2;"
+ if (context.useArrowFlightSql()) {
+ qt_select_all1_arrow "select dt, page, bitmap_to_string(user_id) from
pv_bitmap order by 1,2;"
+ qt_select_all2_arrow "select dt, page, bitmap_to_string(user_id) from
pv_bitmap where dt = 20220202 order by 1,2;"
+ } else {
+ qt_select_all1 "select *, bitmap_to_string(user_id) from pv_bitmap
order by 1,2;"
+ qt_select_all2 "select *, bitmap_to_string(user_id) from pv_bitmap
where dt = 20220202 order by 1,2;"
+ }
qt_bitmap_intersect "select dt,
bitmap_to_string(bitmap_intersect(user_id_bitmap)) from ${tableName_04} group
by dt order by dt"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]