Uh oh!
There was an error while loading. Please reload this page.
[fix](mtmv) Fix query err when calc mv functional dependency which has variant and log more detailed info for troubleshoot a problem - #59933
Conversation
Thearas
commented
Jan 15, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
seawinde
commented
Jan 15, 2026
run buildall |
doris-robot
commented
Jan 15, 2026
TPC-H: Total hot run time: 31730 ms |
doris-robot
commented
Jan 15, 2026
TPC-DS: Total hot run time: 174122 ms |
doris-robot
commented
Jan 15, 2026
ClickBench: Total hot run time: 26.96 s |
seawinde
commented
Jan 16, 2026
run buildall |
doris-robot
commented
Jan 16, 2026
TPC-H: Total hot run time: 32382 ms |
doris-robot
commented
Jan 16, 2026
TPC-DS: Total hot run time: 174953 ms |
doris-robot
commented
Jan 16, 2026
ClickBench: Total hot run time: 27.08 s |
hello-stephen
commented
Jan 16, 2026
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Jan 16, 2026
FE Regression Coverage ReportIncrement line coverage |
e5a3283 to
6cac6c9Compareseawinde
commented
Mar 12, 2026
run buildall |
1 similar comment
seawinde
commented
Mar 12, 2026
run buildall |
c012b43 to
155f82bCompareseawinde
commented
Mar 12, 2026
run buildall |
doris-robot
commented
Mar 12, 2026
TPC-H: Total hot run time: 27670 ms |
doris-robot
commented
Mar 12, 2026
TPC-DS: Total hot run time: 153869 ms |
hello-stephen
commented
Mar 12, 2026
FE UT Coverage ReportIncrement line coverage |
seawinde
commented
Mar 15, 2026
runbuildall |
seawinde
commented
Mar 15, 2026
run buildall |
doris-robot
commented
Mar 16, 2026
TPC-H: Total hot run time: 26814 ms |
doris-robot
commented
Mar 16, 2026
TPC-DS: Total hot run time: 168771 ms |
hello-stephen
commented
Mar 16, 2026
FE UT Coverage ReportIncrement line coverage |
…tailed info for troubleshoot a problem
…against MV physical column size and add new workflow files.
…queue size immutable, and improve thread-safety documentation for lineage plugins.
…actor test column creation in `LogicalOlapScanTest`.
7eb51e0 to
436d759Compareseawinde
commented
Mar 16, 2026
run buildall |
doris-robot
commented
Mar 16, 2026
TPC-H: Total hot run time: 26925 ms |
doris-robot
commented
Mar 16, 2026
TPC-DS: Total hot run time: 167842 ms |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
seawinde
commented
Mar 20, 2026
run buildall |
doris-robot
commented
Mar 20, 2026
TPC-H: Total hot run time: 26761 ms |
doris-robot
commented
Mar 20, 2026
TPC-DS: Total hot run time: 168560 ms |
hello-stephen
commented
Mar 20, 2026
FE UT Coverage ReportIncrement line coverage |
Uh oh!
There was an error while loading. Please reload this page.
…s variant and log more detailed info for troubleshoot a problem (#59933) Fix query err when calc mv fd by catch it and log more detailed info for troubleshoot a problem 1. originOutputs.size() should equlas targetOutputs.size(), if not would throw exception, this would cause query err, should log err log and not cause query err 2. current log could not find the root cause, so add detail log 3. fix the problem by mapping the slot full path name between scan mv output and mv sql plan output for example as following ```sql CREATE TABLE fact_var ( k INT, v VARIANT ) ENGINE=OLAP DUPLICATE KEY(k) DISTRIBUTED BY HASH(k) BUCKETS 1 PROPERTIES ("replication_num" = "1"); INSERT INTO fact_var VALUES (1, '{"a":1,"b":{"c":10,"d":20}}'), (2, '{"a":2,"b":{"c":30}}'); CREATE MATERIALIZED VIEW mv_var BUILD IMMEDIATE REFRESH COMPLETE ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1') AS SELECT k, v FROM fact_var; ``` if run query as fllowing, mv_var sacn would return k, v, v['a'] but mv_var def plan sql, would return k, v, the size is different but also can work after the fix ```sql SELECT v['a'] AS c_val FROM mv_var; ``` Related PR: #40106
…s variant and log more detailed info for troubleshoot a problem (#59933) Fix query err when calc mv fd by catch it and log more detailed info for troubleshoot a problem 1. originOutputs.size() should equlas targetOutputs.size(), if not would throw exception, this would cause query err, should log err log and not cause query err 2. current log could not find the root cause, so add detail log 3. fix the problem by mapping the slot full path name between scan mv output and mv sql plan output for example as following ```sql CREATE TABLE fact_var ( k INT, v VARIANT ) ENGINE=OLAP DUPLICATE KEY(k) DISTRIBUTED BY HASH(k) BUCKETS 1 PROPERTIES ("replication_num" = "1"); INSERT INTO fact_var VALUES (1, '{"a":1,"b":{"c":10,"d":20}}'), (2, '{"a":2,"b":{"c":30}}'); CREATE MATERIALIZED VIEW mv_var BUILD IMMEDIATE REFRESH COMPLETE ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1') AS SELECT k, v FROM fact_var; ``` if run query as fllowing, mv_var sacn would return k, v, v['a'] but mv_var def plan sql, would return k, v, the size is different but also can work after the fix ```sql SELECT v['a'] AS c_val FROM mv_var; ``` Related PR: #40106
…s variant and log more detailed info for troubleshoot a problem (apache#59933) Fix query err when calc mv fd by catch it and log more detailed info for troubleshoot a problem 1. originOutputs.size() should equlas targetOutputs.size(), if not would throw exception, this would cause query err, should log err log and not cause query err 2. current log could not find the root cause, so add detail log 3. fix the problem by mapping the slot full path name between scan mv output and mv sql plan output for example as following ```sql CREATE TABLE fact_var ( k INT, v VARIANT ) ENGINE=OLAP DUPLICATE KEY(k) DISTRIBUTED BY HASH(k) BUCKETS 1 PROPERTIES ("replication_num" = "1"); INSERT INTO fact_var VALUES (1, '{"a":1,"b":{"c":10,"d":20}}'), (2, '{"a":2,"b":{"c":30}}'); CREATE MATERIALIZED VIEW mv_var BUILD IMMEDIATE REFRESH COMPLETE ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1') AS SELECT k, v FROM fact_var; ``` if run query as fllowing, mv_var sacn would return k, v, v['a'] but mv_var def plan sql, would return k, v, the size is different but also can work after the fix ```sql SELECT v['a'] AS c_val FROM mv_var; ``` Related PR: apache#40106
What problem does this PR solve?
Fix query err when calc mv fd by catch it and log more detailed info for troubleshoot a problem
should log err log and not cause query err
for example as following
if run query as fllowing, mv_var sacn would return k, v, v['a'] but mv_var def plan sql, would return k, v,
the size is different but also can work after the fix
Issue Number: close #xxx
Related PR: #40106
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)