This is an automated email from the ASF dual-hosted git repository.
eldenmoon pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 68846e9fb03 branch-4.1: [test](variant) Fix V1 empty-array expectation
in sparse ancestor promotion (#70987)
68846e9fb03 is described below
commit 68846e9fb034dfff9d2fa3ad7ad57c04fda28ec3
Author: lihangyu <[email protected]>
AuthorDate: Wed Nov 25 16:02:10 2026 +0800
branch-4.1: [test](variant) Fix V1 empty-array expectation in sparse
ancestor promotion (#70987)
---
.../data/variant_p0/sparse_ancestor_promotion_extended.out | 4 ++--
.../suites/variant_p0/sparse_ancestor_promotion_extended.groovy | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git
a/regression-test/data/variant_p0/sparse_ancestor_promotion_extended.out
b/regression-test/data/variant_p0/sparse_ancestor_promotion_extended.out
index b8d33231d65..6c9c10098b8 100644
--- a/regression-test/data/variant_p0/sparse_ancestor_promotion_extended.out
+++ b/regression-test/data/variant_p0/sparse_ancestor_promotion_extended.out
@@ -161,7 +161,7 @@ v.p.q.a json Yes false \N NONE
3 {"a":903} 903 \N {"p":{"a":903}}
4 \N \N \N {"hot_0":4}
5 \N \N \N {"hot_0":5}
-6 {"a":[]} [] \N {"p":{"a":[]}}
+6 \N \N \N {}
7 {"a":21} 21 \N {"hot_1":2,"p":{"a":21}}
8 \N \N \N {}
9 \N \N \N {"hot_1":4}
@@ -183,7 +183,7 @@ v.p.q.a json Yes false \N NONE
3 {"a":903} 903 \N {"p":{"a":903}}
4 \N \N \N {"hot_0":4}
5 \N \N \N {"hot_0":5}
-6 {"a":[]} [] \N {"p":{"a":[]}}
+6 \N \N \N {}
7 {"a":21} 21 \N {"hot_1":2,"p":{"a":21}}
8 \N \N \N {}
9 \N \N \N {"hot_1":4}
diff --git
a/regression-test/suites/variant_p0/sparse_ancestor_promotion_extended.groovy
b/regression-test/suites/variant_p0/sparse_ancestor_promotion_extended.groovy
index ad51e38aa3d..4ad47150bba 100644
---
a/regression-test/suites/variant_p0/sparse_ancestor_promotion_extended.groovy
+++
b/regression-test/suites/variant_p0/sparse_ancestor_promotion_extended.groovy
@@ -128,6 +128,7 @@ suite("sparse_ancestor_promotion_extended",
"p0,nonConcurrent") {
def mowProjection = """SELECT id, CAST(v['p'] AS STRING), CAST(v['p']['a']
AS STRING),
v['p']['a']['b'], CAST(v AS STRING) FROM sparse_ancestor_extended_mow
ORDER BY id"""
compact('sparse_ancestor_extended_mow')
+ // Variant V1 normalizes the empty array to a missing path before
compaction.
sql """INSERT INTO sparse_ancestor_extended_mow VALUES
(1,'{"p":{"a":{"b":901}}}'),
(3,'{"p":{"a":903}}'),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]