branch-3.1: [fix](variant) fix the reading core caused by inserting nested column and scalar column in variant sub-column #53083#53977
Conversation
… 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 ```
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 32385 ms |
TPC-DS: Total hot run time: 196553 ms |
ClickBench: Total hot run time: 29.23 s |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 32537 ms |
TPC-DS: Total hot run time: 189568 ms |
ClickBench: Total hot run time: 28.2 s |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 32884 ms |
TPC-DS: Total hot run time: 197213 ms |
ClickBench: Total hot run time: 29.15 s |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 32705 ms |
FE UT Coverage ReportIncrement line coverage |
TPC-DS: Total hot run time: 196261 ms |
ClickBench: Total hot run time: 29.25 s |
backport: #53083