Skip to content

[fix](variant) fix the reading core caused by inserting nested column and scalar column in variant sub-column#53083

Merged
eldenmoon merged 23 commits intoapache:masterfrom
amorynan:fix-variant-structure-conflicts
Jul 24, 2025
Merged

[fix](variant) fix the reading core caused by inserting nested column and scalar column in variant sub-column#53083
eldenmoon merged 23 commits intoapache:masterfrom
amorynan:fix-variant-structure-conflicts

Conversation

@amorynan
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:
this pr main fix the problem which if we create table with variant_enable_flatten_nested
then insert variant data:
'{"nested":{"a":"1"}} and '{"nested":[{"a":1,"c":1.1},{"b":"1"}]}'
we will meet core for reading
so we should forbid this table property
and for old data we insert different structure data will meet some error like this:

mysql> insert into vs values (2, '{"nested":{"a":"1"}}');
Query OK, 1 row affected (0.22 sec)
{'label':'label_165a8209698c4391_988c6532615017c4', 'status':'VISIBLE', 'txnId':'1011'}

mysql> insert into vs values (1, '{"nested":[{"a":1,"c":1.1},{"b":"1"}]}');
ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.6)[INTERNAL_ERROR]tablet 1752145213719 failed on majority backends: [DATA_QUALITY_ERROR]PStatus: (10.16.10.6)[DATA_QUALITY_ERROR]Ambiguous paths: v.nested.a vs v.nested.a with different nested part true vs false

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@eldenmoon
Copy link
Member

run buildall

@hello-stephen
Copy link
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 79.77% (1270/1592)
Line Coverage 65.43% (21304/32559)
Region Coverage 66.92% (10783/16114)
Branch Coverage 56.61% (5685/10042)

@doris-robot
Copy link

TPC-H: Total hot run time: 33963 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 51ad94d1171c64f51a758dd9347ddf7c5ff1cfef, data reload: false

------ Round 1 ----------------------------------
q1	17625	5292	5116	5116
q2	1947	296	183	183
q3	10587	1321	698	698
q4	10313	1016	520	520
q5	8897	3148	2384	2384
q6	196	159	129	129
q7	898	739	599	599
q8	9322	1256	1098	1098
q9	6779	5114	5054	5054
q10	6870	2362	1944	1944
q11	473	301	276	276
q12	335	335	214	214
q13	17771	3648	3105	3105
q14	232	223	212	212
q15	555	474	481	474
q16	416	437	370	370
q17	623	881	384	384
q18	7436	7182	7115	7115
q19	1273	953	567	567
q20	345	354	225	225
q21	3859	3245	2991	2991
q22	357	316	305	305
Total cold run time: 107109 ms
Total hot run time: 33963 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5115	5101	5048	5048
q2	241	320	216	216
q3	2174	2673	2240	2240
q4	1391	1786	1372	1372
q5	4227	4590	4468	4468
q6	214	171	128	128
q7	2081	1957	1768	1768
q8	2613	2547	2714	2547
q9	7401	7277	7285	7277
q10	3118	3273	2878	2878
q11	583	514	491	491
q12	674	772	619	619
q13	3628	3928	3374	3374
q14	282	337	311	311
q15	531	505	459	459
q16	464	482	455	455
q17	1178	1552	1382	1382
q18	7774	7779	7409	7409
q19	768	799	814	799
q20	1915	1965	1830	1830
q21	4655	4208	4333	4208
q22	609	586	521	521
Total cold run time: 51636 ms
Total hot run time: 49800 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 187382 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 51ad94d1171c64f51a758dd9347ddf7c5ff1cfef, data reload: false

query1	1007	394	404	394
query2	6509	1764	1747	1747
query3	6747	218	225	218
query4	27000	23754	23244	23244
query5	4362	576	435	435
query6	317	225	211	211
query7	4626	486	294	294
query8	275	215	211	211
query9	8622	2657	2644	2644
query10	457	316	279	279
query11	15623	15145	14772	14772
query12	152	106	105	105
query13	1651	530	407	407
query14	9378	5986	6098	5986
query15	205	195	168	168
query16	7613	428	254	254
query17	1337	709	569	569
query18	2012	403	299	299
query19	194	180	173	173
query20	121	119	114	114
query21	208	124	106	106
query22	4010	4141	4078	4078
query23	33855	32977	33002	32977
query24	8492	2317	2374	2317
query25	533	463	397	397
query26	1236	265	147	147
query27	2771	502	344	344
query28	4304	2127	2087	2087
query29	760	544	446	446
query30	284	219	191	191
query31	931	835	755	755
query32	77	68	64	64
query33	550	341	284	284
query34	807	852	532	532
query35	596	645	568	568
query36	918	999	886	886
query37	116	103	81	81
query38	4214	4188	4196	4188
query39	1475	1406	1399	1399
query40	219	117	105	105
query41	59	57	51	51
query42	134	114	113	113
query43	529	506	479	479
query44	1313	830	824	824
query45	178	172	166	166
query46	853	1008	639	639
query47	1759	1789	1714	1714
query48	381	419	300	300
query49	732	486	417	417
query50	651	685	435	435
query51	5504	5610	5468	5468
query52	105	107	95	95
query53	223	252	189	189
query54	577	569	497	497
query55	81	81	82	81
query56	298	298	290	290
query57	1201	1195	1128	1128
query58	261	250	244	244
query59	2546	2669	2701	2669
query60	339	328	320	320
query61	129	127	124	124
query62	788	722	663	663
query63	234	194	201	194
query64	4507	1288	827	827
query65	4223	4201	4140	4140
query66	1053	431	320	320
query67	15932	15483	15372	15372
query68	7895	879	516	516
query69	503	308	275	275
query70	1191	1145	1119	1119
query71	481	328	304	304
query72	5467	4702	4787	4702
query73	653	632	359	359
query74	9002	9073	8810	8810
query75	3277	3175	2695	2695
query76	3303	1125	783	783
query77	534	381	305	305
query78	10790	11022	10295	10295
query79	1815	825	596	596
query80	606	527	442	442
query81	472	250	224	224
query82	185	124	93	93
query83	258	250	298	250
query84	251	111	81	81
query85	753	367	317	317
query86	383	303	291	291
query87	4429	4370	4289	4289
query88	3165	2273	2263	2263
query89	375	307	287	287
query90	1966	218	203	203
query91	140	146	115	115
query92	67	61	55	55
query93	1799	940	583	583
query94	685	317	194	194
query95	374	294	289	289
query96	498	550	278	278
query97	2670	2748	2640	2640
query98	229	211	203	203
query99	1357	1366	1291	1291
Total cold run time: 274727 ms
Total hot run time: 187382 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.31 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 51ad94d1171c64f51a758dd9347ddf7c5ff1cfef, data reload: false

query1	0.04	0.04	0.04
query2	0.11	0.06	0.06
query3	0.29	0.06	0.06
query4	1.61	0.08	0.09
query5	0.42	0.41	0.40
query6	1.16	0.66	0.66
query7	0.02	0.02	0.02
query8	0.06	0.05	0.05
query9	0.64	0.53	0.52
query10	0.57	0.60	0.57
query11	0.25	0.13	0.13
query12	0.26	0.13	0.13
query13	0.64	0.62	0.62
query14	0.82	0.85	0.82
query15	0.98	0.90	0.89
query16	0.38	0.37	0.38
query17	1.06	1.07	1.04
query18	0.25	0.23	0.23
query19	1.98	1.88	1.91
query20	0.01	0.02	0.01
query21	15.38	0.98	0.68
query22	0.93	1.12	0.86
query23	14.68	1.51	0.76
query24	5.31	0.60	0.32
query25	0.17	0.09	0.09
query26	0.57	0.22	0.18
query27	0.09	0.08	0.09
query28	11.06	1.17	0.59
query29	12.52	4.05	3.38
query30	0.28	0.08	0.07
query31	2.88	0.63	0.42
query32	3.24	0.61	0.52
query33	3.08	3.26	3.15
query34	16.94	5.40	4.68
query35	4.76	4.79	4.76
query36	0.65	0.53	0.51
query37	0.21	0.18	0.17
query38	0.18	0.17	0.16
query39	0.05	0.05	0.04
query40	0.20	0.17	0.16
query41	0.10	0.05	0.05
query42	0.06	0.05	0.05
query43	0.06	0.05	0.05
Total cold run time: 104.95 s
Total hot run time: 30.31 s

@amorynan amorynan requested a review from eldenmoon July 14, 2025 07:52
@amorynan
Copy link
Contributor Author

run buildall

@amorynan
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 79.77% (1270/1592)
Line Coverage 65.43% (21304/32559)
Region Coverage 66.92% (10784/16114)
Branch Coverage 56.57% (5681/10042)

@doris-robot
Copy link

TPC-H: Total hot run time: 33121 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 8f9e6ee3ee58650c16786e3a79f6812211a8b208, data reload: false

------ Round 1 ----------------------------------
q1	17627	5252	5067	5067
q2	1931	281	182	182
q3	10622	1278	700	700
q4	10346	1022	525	525
q5	9111	2325	2402	2325
q6	201	154	128	128
q7	917	750	593	593
q8	9310	1510	1101	1101
q9	6874	5110	5090	5090
q10	6906	2384	1970	1970
q11	476	280	274	274
q12	334	362	212	212
q13	17774	3693	3062	3062
q14	238	219	206	206
q15	562	489	478	478
q16	421	414	368	368
q17	590	872	350	350
q18	7730	7067	7233	7067
q19	1268	942	559	559
q20	326	337	219	219
q21	3819	3212	2347	2347
q22	354	319	298	298
Total cold run time: 107737 ms
Total hot run time: 33121 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5132	5073	5299	5073
q2	246	332	219	219
q3	2165	2705	2287	2287
q4	1360	1800	1383	1383
q5	4246	4470	4555	4470
q6	213	164	123	123
q7	2061	2015	1841	1841
q8	2825	2585	2505	2505
q9	7330	7226	7236	7226
q10	3097	3294	2917	2917
q11	611	522	490	490
q12	704	1035	606	606
q13	3527	3991	3301	3301
q14	296	313	294	294
q15	520	486	468	468
q16	454	491	438	438
q17	1164	1537	1400	1400
q18	8086	7567	7732	7567
q19	794	875	1030	875
q20	1998	2020	1834	1834
q21	4766	4436	4275	4275
q22	669	602	567	567
Total cold run time: 52264 ms
Total hot run time: 50159 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186455 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 8f9e6ee3ee58650c16786e3a79f6812211a8b208, data reload: false

query1	999	373	370	370
query2	6514	1843	1719	1719
query3	6734	212	213	212
query4	25829	23852	23577	23577
query5	4356	573	443	443
query6	304	216	200	200
query7	4663	487	280	280
query8	262	225	211	211
query9	8627	2613	2641	2613
query10	489	330	273	273
query11	15754	15084	14723	14723
query12	158	116	101	101
query13	1656	509	391	391
query14	9207	5783	5861	5783
query15	201	197	161	161
query16	7247	643	473	473
query17	1201	694	580	580
query18	1974	388	291	291
query19	185	175	166	166
query20	120	125	110	110
query21	210	119	104	104
query22	4155	4379	4108	4108
query23	33975	32873	33129	32873
query24	8451	2358	2369	2358
query25	507	448	376	376
query26	1240	265	143	143
query27	2775	500	334	334
query28	4325	2108	2076	2076
query29	748	559	439	439
query30	284	216	183	183
query31	941	835	749	749
query32	70	62	60	60
query33	559	373	333	333
query34	800	834	519	519
query35	766	826	743	743
query36	964	988	898	898
query37	107	98	74	74
query38	4134	4154	4070	4070
query39	1499	1495	1421	1421
query40	248	114	105	105
query41	56	57	52	52
query42	121	103	106	103
query43	527	530	500	500
query44	1303	810	813	810
query45	177	171	159	159
query46	814	1005	624	624
query47	1841	1815	1745	1745
query48	384	410	317	317
query49	729	482	392	392
query50	640	699	413	413
query51	5514	5652	5404	5404
query52	114	101	130	101
query53	222	256	177	177
query54	569	563	484	484
query55	78	77	79	77
query56	305	294	276	276
query57	1186	1200	1133	1133
query58	261	248	260	248
query59	2633	2697	2535	2535
query60	329	311	306	306
query61	124	120	122	120
query62	823	728	657	657
query63	223	185	190	185
query64	4292	986	753	753
query65	4272	4197	4142	4142
query66	1151	426	381	381
query67	15759	15891	15346	15346
query68	7899	863	508	508
query69	460	316	262	262
query70	1277	1138	1106	1106
query71	448	325	299	299
query72	5583	4730	4795	4730
query73	646	629	348	348
query74	8846	9193	8866	8866
query75	3446	3180	2723	2723
query76	3297	1127	768	768
query77	767	382	280	280
query78	9868	10051	9305	9305
query79	1607	796	569	569
query80	591	507	455	455
query81	463	254	220	220
query82	410	122	99	99
query83	253	254	231	231
query84	246	94	92	92
query85	779	348	306	306
query86	351	326	289	289
query87	4455	4453	4418	4418
query88	2884	2286	2270	2270
query89	385	325	278	278
query90	1922	206	207	206
query91	154	146	108	108
query92	72	59	58	58
query93	1065	915	573	573
query94	700	391	313	313
query95	368	287	279	279
query96	489	611	280	280
query97	2698	2809	2662	2662
query98	234	204	210	204
query99	1354	1395	1267	1267
Total cold run time: 271702 ms
Total hot run time: 186455 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.26 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 8f9e6ee3ee58650c16786e3a79f6812211a8b208, data reload: false

query1	0.04	0.04	0.03
query2	0.10	0.06	0.05
query3	0.29	0.07	0.06
query4	1.61	0.08	0.08
query5	0.43	0.41	0.40
query6	1.16	0.67	0.66
query7	0.02	0.02	0.01
query8	0.06	0.05	0.05
query9	0.63	0.54	0.51
query10	0.56	0.57	0.58
query11	0.26	0.13	0.12
query12	0.25	0.13	0.13
query13	0.65	0.63	0.62
query14	0.81	0.81	0.82
query15	0.98	0.89	0.90
query16	0.37	0.39	0.38
query17	1.05	1.08	1.08
query18	0.25	0.23	0.22
query19	1.97	1.89	1.90
query20	0.01	0.02	0.01
query21	15.36	0.96	0.67
query22	0.92	1.01	0.77
query23	14.76	1.55	0.78
query24	5.14	0.64	0.31
query25	0.16	0.10	0.09
query26	0.56	0.23	0.18
query27	0.08	0.08	0.09
query28	11.00	1.29	0.58
query29	12.55	4.10	3.41
query30	0.28	0.08	0.06
query31	2.83	0.67	0.42
query32	3.22	0.60	0.51
query33	3.14	3.09	3.14
query34	16.96	5.60	4.76
query35	4.75	4.80	4.86
query36	0.64	0.51	0.49
query37	0.19	0.18	0.18
query38	0.17	0.18	0.16
query39	0.06	0.04	0.04
query40	0.19	0.16	0.18
query41	0.11	0.05	0.05
query42	0.06	0.05	0.05
query43	0.05	0.05	0.05
Total cold run time: 104.68 s
Total hot run time: 30.26 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 60.87% (70/115) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.55% (15945/27705)
Line Coverage 46.36% (143324/309181)
Region Coverage 35.78% (107970/301758)
Branch Coverage 38.32% (47664/124395)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 87.83% (101/115) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 81.13% (22059/27191)
Line Coverage 73.74% (227648/308710)
Region Coverage 61.33% (189790/309480)
Branch Coverage 65.10% (81887/125783)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 87.83% (101/115) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 81.13% (22061/27191)
Line Coverage 73.75% (227670/308710)
Region Coverage 61.34% (189821/309480)
Branch Coverage 65.10% (81891/125783)

Copy link
Member

@eldenmoon eldenmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amorynan
Copy link
Contributor Author

run nonConcurrent

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 24, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 87.83% (101/115) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 81.13% (22060/27191)
Line Coverage 73.75% (227667/308710)
Region Coverage 61.34% (189834/309480)
Branch Coverage 65.11% (81892/125783)

Copy link
Contributor

@gavinchou gavinchou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eldenmoon eldenmoon merged commit 958e9ee into apache:master Jul 24, 2025
26 of 28 checks passed
@eldenmoon eldenmoon added the p0_b label Jul 24, 2025
amorynan pushed a commit to amorynan/doris that referenced this pull request Jul 25, 2025
… and scalar column in variant sub-column (apache#53083)

this pr main fix the problem which if we create table with
```variant_enable_flatten_nested```
then insert variant data:
```'{"nested":{"a":"1"}}``` and ```'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}'```
we will meet core for reading
so we should forbid this table property
and for old data we insert different structure data will meet some error like this:
```
mysql> insert into vs values (2, '{"nested":{"a":"1"}}');
Query OK, 1 row affected (0.22 sec)
{'label':'label_165a8209698c4391_988c6532615017c4', 'status':'VISIBLE',
'txnId':'1011'}

mysql> insert into vs values (1,
'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}');
ERROR 1105 (HY000): errCode = 2, detailMessage =
(10.16.10.6)[INTERNAL_ERROR]tablet 1752145213719 failed on majority
backends: [DATA_QUALITY_ERROR]PStatus:
(10.16.10.6)[DATA_QUALITY_ERROR]Ambiguous paths: v.nested.a vs
v.nested.a with different nested part true vs false
```
amorynan pushed a commit to amorynan/doris that referenced this pull request Jul 28, 2025
… and scalar column in variant sub-column (apache#53083)

this pr main fix the problem which if we create table with
```variant_enable_flatten_nested```
then insert variant data:
```'{"nested":{"a":"1"}}``` and ```'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}'```
we will meet core for reading
so we should forbid this table property
and for old data we insert different structure data will meet some error like this:
```
mysql> insert into vs values (2, '{"nested":{"a":"1"}}');
Query OK, 1 row affected (0.22 sec)
{'label':'label_165a8209698c4391_988c6532615017c4', 'status':'VISIBLE',
'txnId':'1011'}

mysql> insert into vs values (1,
'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}');
ERROR 1105 (HY000): errCode = 2, detailMessage =
(10.16.10.6)[INTERNAL_ERROR]tablet 1752145213719 failed on majority
backends: [DATA_QUALITY_ERROR]PStatus:
(10.16.10.6)[DATA_QUALITY_ERROR]Ambiguous paths: v.nested.a vs
v.nested.a with different nested part true vs false
```
w41ter pushed a commit to w41ter/incubator-doris that referenced this pull request Jul 30, 2025
… and scalar column in variant sub-column (apache#53083)

this pr main fix the problem which if we create table with
```variant_enable_flatten_nested```
then insert variant data: 
```'{"nested":{"a":"1"}}``` and ```'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}'``` 
we will meet core for reading
so we should forbid this table property
and for old data we insert different structure data will meet some error like this: 
```
mysql> insert into vs values (2, '{"nested":{"a":"1"}}');
Query OK, 1 row affected (0.22 sec)
{'label':'label_165a8209698c4391_988c6532615017c4', 'status':'VISIBLE',
'txnId':'1011'}

mysql> insert into vs values (1,
'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}');
ERROR 1105 (HY000): errCode = 2, detailMessage =
(10.16.10.6)[INTERNAL_ERROR]tablet 1752145213719 failed on majority
backends: [DATA_QUALITY_ERROR]PStatus:
(10.16.10.6)[DATA_QUALITY_ERROR]Ambiguous paths: v.nested.a vs
v.nested.a with different nested part true vs false
```
morrySnow pushed a commit that referenced this pull request Jul 31, 2025
…ested column and scalar column in variant sub-column #53083 (#53977)

backport: #53083
zhiqiang-hhhh pushed a commit to zhiqiang-hhhh/doris that referenced this pull request Aug 4, 2025
… and scalar column in variant sub-column (apache#53083)

this pr main fix the problem which if we create table with
```variant_enable_flatten_nested```
then insert variant data: 
```'{"nested":{"a":"1"}}``` and ```'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}'``` 
we will meet core for reading
so we should forbid this table property
and for old data we insert different structure data will meet some error like this: 
```
mysql> insert into vs values (2, '{"nested":{"a":"1"}}');
Query OK, 1 row affected (0.22 sec)
{'label':'label_165a8209698c4391_988c6532615017c4', 'status':'VISIBLE',
'txnId':'1011'}

mysql> insert into vs values (1,
'{"nested":[{"a":1,"c":1.1},{"b":"1"}]}');
ERROR 1105 (HY000): errCode = 2, detailMessage =
(10.16.10.6)[INTERNAL_ERROR]tablet 1752145213719 failed on majority
backends: [DATA_QUALITY_ERROR]PStatus:
(10.16.10.6)[DATA_QUALITY_ERROR]Ambiguous paths: v.nested.a vs
v.nested.a with different nested part true vs false
```
dataroaring pushed a commit that referenced this pull request Aug 12, 2025
…inserting nested column and scalar column in variant sub-column (#53897)

### What problem does this PR solve?
backport: #53083
Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
@gavinchou gavinchou mentioned this pull request Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.8-merged dev/3.1.0-merged p0_b reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants