Apache Doris · Community CI
Cloud P0
Failed · Build #20504Downloads
- doris 日志
- Download doris 日志
- buildlog
- Download buildlog
Test results
- Total
- 5023
- Passed
- 5020
- Failed
- 2
- Muted
- 1
- Ignored
- 0
Failed tests (2)
cloud_p0: cloud_p0.nereids_rules_p0.mv.agg_without_roll_up.aggregate_without_roll_up.aggregate_without_roll_up
106,530 ms
Exception in nereids_rules_p0/mv/agg_without_roll_up/aggregate_without_roll_up.groovy(line 1844):
9,
10,
11,
12,
13,
14;
"""
order_qt_query30_0_before "${query30_0}"
async_mv_rewrite_success(db, mv30_0, query30_0, "mv30_0", [TRY_IN_RBO, FORCE_IN_RBO])
^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^^
// ELIMINATE_CONST_JOIN_CONDITION not work, so should success
async_mv_rewrite_success(db, mv30_0, query30_0, "mv30_0", [NOT_IN_RBO])
order_qt_query30_0_after "${query30_0}"
sql """ DROP MATERIALIZED VIEW IF EXISTS mv30_0"""
// query and mv has the same filter but position is different, should rewrite successfully
// query join condition has alias
def mv31_0 = """
select
o_custkey,
Exception:
java.lang.IllegalStateException: Explain and check failed, expect contains '.mv30_0 chose', but actual explain string is:
Group[@0]
Logical Expressions:
[1] id:347#0 | cost=null | estRows=8 | children=[] | LogicalOlapScan ( qualified=internal.regression_test_nereids_rules_p0_mv_agg_without_roll_up.orders, indexName=<index_not_selected>, selectedIndexId=1796110280228, preAgg=ON, operativeCol=[o_orderkey#0, o_custkey#1, o_orderdate#4, o_shippriority#7, o_comment#8, public_col#9], virtualColumns=[] )
Physical Expressions:
[1] id:448#0 | cost=8 [cpu=8, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[449]@0 ( table=orders, stats=null, operativeSlots=[o_orderkey#0, o_custkey#1, o_orderdate#4, o_shippriority#7, o_comment#8, public_col#9], virtualColumns=[] )
Enforcers:
(none)
Statistics
rows=8.0
tupleSize=10.0
width=1
o_orderkey#0 -> unknown(8.0)
o_custkey#1 -> unknown(8.0)
o_orderstatus#2 -> unknown(8.0)
o_totalprice#3 -> unknown(8.0)
o_orderdate#4 -> unknown(8.0)
o_orderpriority#5 -> unknown(8.0)
o_clerk#6 -> unknown(8.0)
o_shippriority#7 -> unknown(8.0)
o_comment#8 -> unknown(8.0)
public_col#9 -> unknown(8.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 8
Properties: ANY
Expression ID: 448#0
── Entry #2 ──────────────────────────────
Cost: 8
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 448#0
── Entry #3 ──────────────────────────────
Cost: 8
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 448#0
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@1]
Logical Expressions:
[1] id:350#1 | cost=null | estRows=8 | children=[@0] | LogicalProject[351] ( distinct=false, projects=[o_custkey#1, o_orderdate#4, o_shippriority#7, o_comment#8, o_orderkey#0, public_col#9 AS `public_col`#10] )
Physical Expressions:
[1] id:445#1 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[@0] | PhysicalProject[446]@1 ( stats=null, projects=[o_custkey#1, o_orderdate#4, o_shippriority#7, o_comment#8, o_orderkey#0, public_col#9 AS `public_col`#10] )
Enforcers:
[1] id:598#1 | cost=2.79 [cpu=2.67, mem=0, net=0.08] | estRows=-1 | children=[@1] | PhysicalDistribute[599]@1 ( stats=null, distributionSpec=DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=EXECUTION_BUCKETED, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) )
[2] id:636#1 | cost=2.79 [cpu=2.67, mem=0, net=0.08] | estRows=-1 | children=[@1] | PhysicalDistribute[637]@1 ( stats=null, distributionSpec=DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=EXECUTION_BUCKETED, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) )
Statistics
rows=8.0
tupleSize=6.0
width=1
o_orderkey#0 -> unknown(8.0)
o_custkey#1 -> unknown(8.0)
o_orderdate#4 -> unknown(8.0)
o_shippriority#7 -> unknown(8.0)
o_comment#8 -> unknown(8.0)
public_col#10 -> unknown(8.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 9
Properties: ANY
Expression ID: 445#1
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 9
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 445#1
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 9
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 445#1
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
── Entry #4 ──────────────────────────────
Cost: 11.79
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=EXECUTION_BUCKETED, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 598#1
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@2]
Logical Expressions:
[1] id:352#2 | cost=null | estRows=5 | children=[] | LogicalOlapScan ( qualified=internal.regression_test_nereids_rules_p0_mv_agg_without_roll_up.lineitem, indexName=<index_not_selected>, selectedIndexId=1796110280246, preAgg=ON, operativeCol=[l_orderkey#11, l_partkey#12, l_suppkey#13, public_col#27], virtualColumns=[] )
Physical Expressions:
[1] id:514#2 | cost=5 [cpu=5, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[515]@2 ( table=lineitem, stats=null, operativeSlots=[l_orderkey#11, l_partkey#12, l_suppkey#13, public_col#27], virtualColumns=[] )
Enforcers:
(none)
Statistics
rows=5.0
tupleSize=17.0
width=1
l_orderkey#11 -> unknown(5.0)
l_partkey#12 -> unknown(5.0)
l_suppkey#13 -> unknown(5.0)
l_linenumber#14 -> unknown(5.0)
l_quantity#15 -> unknown(5.0)
l_extendedprice#16 -> unknown(5.0)
l_discount#17 -> unknown(5.0)
l_tax#18 -> unknown(5.0)
l_returnflag#19 -> unknown(5.0)
l_linestatus#20 -> unknown(5.0)
l_shipdate#21 -> unknown(5.0)
l_commitdate#22 -> unknown(5.0)
l_receiptdate#23 -> unknown(5.0)
l_shipinstruct#24 -> unknown(5.0)
l_shipmode#25 -> unknown(5.0)
l_comment#26 -> unknown(5.0)
public_col#27 -> unknown(5.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 5
Properties: ANY
Expression ID: 514#2
── Entry #2 ──────────────────────────────
Cost: 5
Properties: DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
Expression ID: 514#2
── Entry #3 ──────────────────────────────
Cost: 5
Properties: DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
Expression ID: 514#2
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{1}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@3]
Logical Expressions:
[1] id:355#3 | cost=null | estRows=5 | children=[@2] | LogicalFilter[356] ( predicates=OR[( not (public_col#27 = 1)),public_col#27 IS NULL] )
Physical Expressions:
[1] id:511#3 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@2] | PhysicalFilter[512]@3 ( stats=null, predicates=OR[( not (public_col#27 = 1)),public_col#27 IS NULL] )
Enforcers:
(none)
Statistics
rows=5.0
tupleSize=17.0
width=1
l_orderkey#11 -> unknown(5.0)
l_partkey#12 -> unknown(5.0)
l_suppkey#13 -> unknown(5.0)
l_linenumber#14 -> unknown(5.0)
l_quantity#15 -> unknown(5.0)
l_extendedprice#16 -> unknown(5.0)
l_discount#17 -> unknown(5.0)
l_tax#18 -> unknown(5.0)
l_returnflag#19 -> unknown(5.0)
l_linestatus#20 -> unknown(5.0)
l_shipdate#21 -> unknown(5.0)
l_commitdate#22 -> unknown(5.0)
l_receiptdate#23 -> unknown(5.0)
l_shipinstruct#24 -> unknown(5.0)
l_shipmode#25 -> unknown(5.0)
l_comment#26 -> unknown(5.0)
public_col#27 -> unknown(5.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 5
Properties: ANY
Expression ID: 511#3
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 5
Properties: DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
Expression ID: 511#3
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 5
Properties: DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
Expression ID: 511#3
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{1}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@4]
Logical Expressions:
[1] id:358#4 | cost=null | estRows=5 | children=[@3] | LogicalProject[359] ( distinct=false, projects=[l_orderkey#11, l_partkey#12, l_suppkey#13, public_col#27 AS `public_col`#28] )
Physical Expressions:
[1] id:506#4 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[@3] | PhysicalProject[507]@4 ( stats=null, projects=[l_orderkey#11, l_partkey#12, l_suppkey#13, public_col#27 AS `public_col`#28] )
Enforcers:
[1] id:601#4 | cost=1.74 [cpu=1.67, mem=0, net=0.05] | estRows=-1 | children=[@4] | PhysicalDistribute[602]@4 ( stats=null, distributionSpec=DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=EXECUTION_BUCKETED, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) )
[2] id:604#4 | cost=0.22 [cpu=0, mem=0, net=0.15] | estRows=5 | children=[@4] | PhysicalDistribute[605]@4 ( stats=null, distributionSpec=DistributionSpecReplicated )
[3] id:639#4 | cost=1.74 [cpu=1.67, mem=0, net=0.05] | estRows=-1 | children=[@4] | PhysicalDistribute[640]@4 ( stats=null, distributionSpec=DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=EXECUTION_BUCKETED, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) )
Statistics
rows=5.0
tupleSize=4.0
width=1
l_orderkey#11 -> unknown(5.0)
l_partkey#12 -> unknown(5.0)
l_suppkey#13 -> unknown(5.0)
public_col#28 -> unknown(5.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 6
Properties: ANY
Expression ID: 506#4
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 6
Properties: DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
Expression ID: 506#4
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 6
Properties: DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
Expression ID: 506#4
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
── Entry #4 ──────────────────────────────
Cost: 6.23
Properties: REPLICATED
Expression ID: 604#4
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
── Entry #5 ──────────────────────────────
Cost: 7.74
Properties: DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=EXECUTION_BUCKETED, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
Expression ID: 601#4
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=NATURAL, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{1}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@5]
Logical Expressions:
[1] id:361#5 | cost=null | estRows=8 | children=[@1, @4] | LogicalJoin[362] ( type=LEFT_OUTER_JOIN, markJoinSlotReference=Optional.empty, hashJoinConjuncts=[(l_orderkey#11 = o_orderkey#0)], otherJoinConjuncts=[], markJoinConjuncts=[] )
Physical Expressions:
[1] id:439#5 | cost=26 [cpu=21, mem=5, net=0] | estRows=-1 | children=[@1, @4] | PhysicalHashJoin[440]@5 ( stats=null, type=LEFT_OUTER_JOIN, hashCondition=[(l_orderkey#11 = o_orderkey#0)], otherCondition=[], markCondition=[] )
Enforcers:
(none)
Statistics
rows=8.0
tupleSize=10.0
width=2
o_orderkey#0 -> unknown(8.0)
o_custkey#1 -> unknown(8.0)
o_orderdate#4 -> unknown(8.0)
o_shippriority#7 -> unknown(8.0)
o_comment#8 -> unknown(8.0)
public_col#10 -> unknown(8.0)
l_orderkey#11 -> unknown(5.0)
l_partkey#12 -> unknown(5.0)
l_suppkey#13 -> unknown(5.0)
public_col#28 -> unknown(5.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 41.23
Properties: ANY
Expression ID: 439#5
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
[1] REPLICATED
── Entry #2 ──────────────────────────────
Cost: 41.23
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 439#5
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
[1] REPLICATED
── Entry #3 ──────────────────────────────
Cost: 41.23
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 439#5
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
[1] REPLICATED
── Entry #4 ──────────────────────────────
Cost: 45.53
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=EXECUTION_BUCKETED, tableId=-1, selectedIndexId=-1, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 439#5
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=EXECUTION_BUCKETED, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
[1] DistributionSpecHash ( orderedShuffledColumns=[11], shuffleType=EXECUTION_BUCKETED, tableId=1796110280245, selectedIndexId=1796110280246, partitionIds=[1796110280244], equivalenceExprIds=[[11]], exprIdToEquivalenceSet={11=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0, 1}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@6]
Logical Expressions:
[1] id:364#6 | cost=null | estRows=4.02 | children=[@5] | LogicalFilter[365] ( predicates=OR[public_col#28 IS NULL,AND[( not (public_col#28 = 1)),(o_orderkey#0 = 2)]] )
Physical Expressions:
[1] id:433#6 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@5] | PhysicalFilter[434]@6 ( stats=null, predicates=OR[public_col#28 IS NULL,AND[( not (public_col#28 = 1)),(o_orderkey#0 = 2)]] )
Enforcers:
(none)
Statistics
rows=4.0200000000000005
tupleSize=10.0
width=2
o_orderkey#0 -> unknown(8.0)
o_custkey#1 -> unknown(8.0)
o_orderdate#4 -> unknown(8.0)
o_shippriority#7 -> unknown(8.0)
o_comment#8 -> unknown(8.0)
public_col#10 -> unknown(8.0)
l_orderkey#11 -> unknown(5.0)
l_partkey#12 -> unknown(5.0)
l_suppkey#13 -> unknown(5.0)
public_col#28 -> unknown(5.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 41.23
Properties: ANY
Expression ID: 433#6
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 41.23
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 433#6
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 41.23
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 433#6
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0, 1}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@7]
Logical Expressions:
[1] id:367#7 | cost=null | estRows=4.02 | children=[@6] | LogicalProject[368] ( distinct=false, projects=[o_custkey#1, o_orderdate#4, o_shippriority#7, o_comment#8, o_orderkey#0, public_col#10, l_orderkey#11, l_partkey#12, l_suppkey#13, public_col#28] )
Physical Expressions:
[1] id:428#7 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[@6] | PhysicalProject[429]@7 ( stats=null, projects=[o_custkey#1, o_orderdate#4, o_shippriority#7, o_comment#8, o_orderkey#0, public_col#10, l_orderkey#11, l_partkey#12, l_suppkey#13, public_col#28] )
Enforcers:
(none)
Statistics
rows=4.0200000000000005
tupleSize=10.0
width=2
o_orderkey#0 -> unknown(8.0)
o_custkey#1 -> unknown(8.0)
o_orderdate#4 -> unknown(8.0)
o_shippriority#7 -> unknown(8.0)
o_comment#8 -> unknown(8.0)
public_col#10 -> unknown(8.0)
l_orderkey#11 -> unknown(5.0)
l_partkey#12 -> unknown(5.0)
l_suppkey#13 -> unknown(5.0)
public_col#28 -> unknown(5.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 42.23
Properties: ANY
Expression ID: 428#7
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 42.23
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 428#7
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 42.23
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
Expression ID: 428#7
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0, 1}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@8]
Logical Expressions:
[1] id:369#8 | cost=null | estRows=2 | children=[] | LogicalOlapScan ( qualified=internal.regression_test_nereids_rules_p0_mv_agg_without_roll_up.partsupp, indexName=<index_not_selected>, selectedIndexId=1796110280274, preAgg=ON, operativeCol=[ps_partkey#29, ps_suppkey#30, public_col#34], virtualColumns=[] )
Physical Expressions:
[1] id:677#8 | cost=2 [cpu=2, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[678]@8 ( table=partsupp, stats=null, operativeSlots=[ps_partkey#29, ps_suppkey#30, public_col#34], virtualColumns=[] )
Enforcers:
(none)
Statistics
rows=2.0
tupleSize=6.0
width=1
ps_partkey#29 -> unknown(2.0)
ps_suppkey#30 -> unknown(2.0)
ps_availqty#31 -> unknown(2.0)
ps_supplycost#32 -> unknown(2.0)
ps_comment#33 -> unknown(2.0)
public_col#34 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 2
Properties: ANY
Expression ID: 677#8
── Entry #2 ──────────────────────────────
Cost: 2
Properties: DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=NATURAL, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
Expression ID: 677#8
── Entry #3 ──────────────────────────────
Cost: 2
Properties: DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
Expression ID: 677#8
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{2}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@9]
Logical Expressions:
[1] id:372#9 | cost=null | estRows=2 | children=[@8] | LogicalProject[373] ( distinct=false, projects=[ps_partkey#29, ps_suppkey#30, public_col#34 AS `public_col`#35] )
Physical Expressions:
[1] id:674#9 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[@8] | PhysicalProject[675]@9 ( stats=null, projects=[ps_partkey#29, ps_suppkey#30, public_col#34 AS `public_col`#35] )
Enforcers:
[1] id:733#9 | cost=0.7 [cpu=0.67, mem=0, net=0.02] | estRows=-1 | children=[@9] | PhysicalDistribute[734]@9 ( stats=null, distributionSpec=DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=STORAGE_BUCKETED, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) )
[2] id:736#9 | cost=0.09 [cpu=0, mem=0, net=0.06] | estRows=2 | children=[@9] | PhysicalDistribute[737]@9 ( stats=null, distributionSpec=DistributionSpecReplicated )
Statistics
rows=2.0
tupleSize=3.0
width=1
ps_partkey#29 -> unknown(2.0)
ps_suppkey#30 -> unknown(2.0)
public_col#35 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 3
Properties: ANY
Expression ID: 674#9
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=NATURAL, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 3
Properties: DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=NATURAL, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
Expression ID: 674#9
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=NATURAL, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 3
Properties: DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=REQUIRE, tableId=-1, selectedIndexId=-1, partitionIds=[], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
Expression ID: 674#9
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=NATURAL, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
── Entry #4 ──────────────────────────────
Cost: 3.09
Properties: REPLICATED
Expression ID: 736#9
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=NATURAL, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
── Entry #5 ──────────────────────────────
Cost: 3.7
Properties: DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=STORAGE_BUCKETED, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
Expression ID: 733#9
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[29], shuffleType=NATURAL, tableId=1796110280273, selectedIndexId=1796110280274, partitionIds=[1796110280272], equivalenceExprIds=[[29]], exprIdToEquivalenceSet={29=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{2}], infoMapByTableId=[], refreshVersion={{0, 1, 2}=1253111735}}
═══════════════════════════════════════════════════════════
Group[@10]
Logical Expressions:
[1] id:375#10 | cost=null | estRows=4.02 | children=[@7, @9] | LogicalJoin[376] ( type=INNER_JOIN, markJoinSlotReference=Optional.empty, hashJoinConjuncts=[(ps_partkey#29 = o_orderkey#0)], otherJoinConjuncts=[], markJoinConjuncts=[] )
Physical Expressions:
[1] id:423#10 | cost=12.04 [cpu=10.04, mem=2, net=0] | estRows=-1 | children=[@7, @9] | PhysicalHashJoin[424]@10 ( stats=null, type=INNER_JOIN, hashCondition=[(ps_partkey#29 = o_orderkey#0)], otherCondition=[], markCondition=[] )
Enforcers:
(none)
Statistics
rows=4.0200000000000005
tupleSize=13.0
width=3
o_orderkey#0 -> unknown(2.0)
o_custkey#1 -> unknown(8.0)
o_orderdate#4 -> unknown(8.0)
o_shippriority#7 -> unknown(8.0)
o_comment#8 -> unknown(8.0)
public_col#10 -> unknown(8.0)
l_orderkey#11 -> unknown(5.0)
l_partkey#12 -> unknown(5.0)
l_suppkey#13 -> unknown(5.0)
public_col#28 -> unknown(5.0)
ps_partkey#29 -> unknown(2.0)
ps_suppkey#30 -> unknown(2.0)
public_col#35 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 57.36
Properties: ANY
Expression ID: 423#10
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0]], exprIdToEquivalenceSet={0=0} ) Order: ([])
[1] REPLICATED
── Entry #2 ──────────────────────────────
Cost: 57.36
Properties: DistributionSpecHash ( orderedShuffledColumns=[0], shuffleType=NATURAL, tableId=1796110280227, selectedIndexId=1796110280228, partitionIds=[1796110280226], equivalenceExprIds=[[0, 29]], exp
[truncated; see redacted regression.log]
Source: redacted regression.log line 162592cloud_p0: cloud_p0.inverted_index_p0.test_match_keyword_score.test_match_keyword_score
788 ms
Exception in inverted_index_p0/test_match_keyword_score.groovy(line 132):
sql """INSERT INTO test_match_keyword_score_variant VALUES (4, '{"n": "1", "s": "abc"}')"""
sql "sync"
for (def query : [
["variant_numeric_path", "CAST(v['n'] AS STRING) MATCH '1'"],
["variant_text_path", "CAST(v['s'] AS STRING) MATCH 'abc'"],
["variant_sparse_path", "CAST(v['p'] AS STRING) MATCH 'abc'"]]) {
quickTest("${storageFormat}_${query[0]}", """
SELECT id, ROUND(s, 6) FROM (
SELECT id, score() AS s FROM test_match_keyword_score_variant
WHERE ${query[1]} ORDER BY s DESC LIMIT 10
^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^^
) hits ORDER BY id
""", true)
}
// A numeric predicate leaves the BKD searcher of n in the searcher cache, where collecting
// statistics finds it next: it used to take it for a text searcher and abort the BE.
sql "SELECT COUNT(*) FROM test_match_keyword_score_variant WHERE CAST(v['n'] AS BIGINT) = 1"
quickTest("${storageFormat}_variant_numeric_path_cached_bkd", """
SELECT id, ROUND(s, 6) FROM (
SELECT id, score() AS s FROM test_match_keyword_score_variant
WHERE CAST(v['n'] AS STRING) MATCH '1' ORDER BY s DESC LIMIT 10
Exception:
java.lang.IllegalStateException: Check tag 'V2_variant_sparse_path' failed:
Check tag 'V2_variant_sparse_path' failed, line 1, DOUBLE result mismatch.
Expect cell is: 0.980829
But real is : 0
relative error is: Infinity, bigger than 1.0E-8
line 1 mismatch
ExpectRow: [1, 0.980829]
RealRow : [1, 0]
sql:
SELECT id, ROUND(s, 6) FROM (
SELECT id, score() AS s FROM test_match_keyword_score_variant
WHERE CAST(v['p'] AS STRING) MATCH 'abc' ORDER BY s DESC LIMIT 10
) hits ORDER BY id
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at org.apache.doris.regression.suite.Suite.quickRunTest(Suite.groovy:2006)
at org.apache.doris.regression.suite.Suite.quickRunTest(Suite.groovy)
at jdk.internal.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
at groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1333)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1088)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1142)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at org.apache.doris.regression.suite.Suite.invokeMethod(Suite.groovy:2114)
at org.apache.doris.regression.suite.Suite.quickTest(Suite.groovy:2065)
at jdk.internal.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
at groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1333)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1088)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1142)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at org.apache.doris.regression.suite.Suite.invokeMethod(Suite.groovy:2114)
at jdk.internal.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at org.codehaus.groovy.runtime.metaclass.TransformMetaMethod.invoke(TransformMetaMethod.java:59)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass$1.invoke(ClosureMetaClass.java:218)
at org.codehaus.groovy.runtime.metaclass.TransformMetaMethod.doMethodInvoke(TransformMetaMethod.java:66)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:342)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at test_match_keyword_score$_run_closure1.doCall(test_match_keyword_score.groovy:132)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:279)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at groovy.lang.Closure.call(Closure.java:433)
at groovy.lang.Closure.call(Closure.java:422)
at org.apache.doris.regression.suite.ScriptContext$_createAndRunSuite_closure1$_closure5.doCall(ScriptContext.groovy:119)
at jdk.internal.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:279)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at groovy.lang.Closure.call(Closure.java:433)
at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:52)
at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:113)
at jdk.proxy1/jdk.proxy1.$Proxy16.apply(Unknown Source)
at org.apache.doris.regression.suite.SuiteContext$_start_closure5.doCall(SuiteContext.groovy:707)
at org.apache.doris.regression.suite.SuiteContext$_start_closure5.call(SuiteContext.groovy)
at org.codehaus.groovy.runtime.IOGroovyMethods.withCloseable(IOGroovyMethods.java:1616)
at org.apache.doris.regression.suite.SuiteContext.start(SuiteContext.groovy:704)
at org.apache.doris.regression.suite.ScriptContext$_createAndRunSuite_closure1.doCall(ScriptContext.groovy:110)
at org.apache.doris.regression.suite.ScriptContext$_createAndRunSuite_closure1.call(ScriptContext.groovy)
at groovy.lang.Closure.run(Closure.java:505)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Source: redacted regression.log line 339877Muted tests (1)
cloud_p0: cloud_p0.nereids_rules_p0.mv.non_nullable.non_nullable_mv_rewrite.non_nullable_mv_rewrite
Failure · 12,017 ms
Exception in nereids_rules_p0/mv/non_nullable/non_nullable_mv_rewrite.groovy(line 177):
BUILD DEFERRED REFRESH AUTO ON MANUAL PARTITION BY(d)
DISTRIBUTED BY HASH(id) BUCKETS 1 PROPERTIES ("replication_num" = "1")
AS SELECT id, d, non_nullable(vec) AS vec FROM non_nullable_part_base"""
sql "REFRESH MATERIALIZED VIEW non_nullable_part_mv PARTITIONS(p_20240101_20240102)"
waitingMTMVTaskFinishedByMvName("non_nullable_part_mv")
sql "ANALYZE TABLE non_nullable_part_base WITH SYNC"
// The unmaterialized partition still contains a NULL; only the MV branch is non-nullable.
String partial = """SELECT /*+ use_mv(non_nullable_part_mv) */ id, d, vec
FROM non_nullable_part_base WHERE id < 3 ORDER BY id"""
mv_rewrite_success(partial, "non_nullable_part_mv")
^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^^
explain {
sql partial
contains "VUNION"
}
qt_partial partial
sql "SET enable_materialized_view_rewrite = false"
qt_partial_without_mv "SELECT id, d, vec FROM non_nullable_part_base WHERE id < 3 ORDER BY id"
sql "SET enable_materialized_view_rewrite = true"
// Exercise the shared array/ANN helper even when external fixtures are unavailable.
Exception:
java.lang.IllegalStateException: Explain and check failed, expect contains '.non_nullable_part_mv chose', but actual explain string is:
Group[@0]
Logical Expressions:
[1] id:49#0 | cost=null | estRows=2 | children=[] | LogicalOlapScan ( qualified=internal.regression_test_nereids_rules_p0_mv_non_nullable.non_nullable_part_base, indexName=<index_not_selected>, selectedIndexId=1796110200677, preAgg=ON, operativeCol=[id#0], virtualColumns=[] )
[2] id:118#0 | cost=null | estRows=3 | children=[@8] | LogicalProject[119] ( distinct=false, projects=[id#0, d#1, vec#2] )
Physical Expressions:
[1] id:84#0 | cost=2 [cpu=2, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[85]@0 ( table=non_nullable_part_base, stats=null, operativeSlots=[id#0], virtualColumns=[] )
[2] id:123#0 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[@8] | PhysicalProject[124]@0 ( stats=null, projects=[id#0, d#1, vec#2] )
Enforcers:
(none)
Chosen Expression ID: 84
Chosen Properties: DistributionSpecStorageAny Order: ([])
Statistics
rows=2.0
tupleSize=9.0
width=1
id#0 -> ndv=1.0000, min=1.000000(1), max=109.000000(109), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#1 -> ndv=1.0000, min=20240101000000.000000(2024-01-01), max=20240102000000.000000(2024-01-02), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#2 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 2
Properties: ANY
Expression ID: 84#0
── Entry #2 ────────────────────────────── BEST
Cost: 2
Properties: DistributionSpecStorageAny Order: ([])
Expression ID: 84#0
── Entry #3 ──────────────────────────────
Cost: 2.03
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 123#0
ChildrenRequires:
[0] DistributionSpecExecutionAny Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[{0}], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@1]
Logical Expressions:
[1] id:52#1 | cost=null | estRows=0.04 | children=[@0] | LogicalFilter[53] ( predicates=(id#0 < 3) )
[2] id:208#1 | cost=null | estRows=1.02 | children=[@13] | LogicalProject[209] ( distinct=false, projects=[id#0, d#1, vec#2] )
Physical Expressions:
[1] id:81#1 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@0] | PhysicalFilter[82]@1 ( stats=null, predicates=(id#0 < 3) )
[2] id:213#1 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[@13] | PhysicalProject[214]@1 ( stats=null, projects=[id#0, d#1, vec#2] )
Enforcers:
[1] id:153#1 | cost=0.01 [cpu=0, mem=0, net=0.01] | estRows=0.04 | children=[@1] | PhysicalDistribute[154]@1 ( stats=null, distributionSpec=DistributionSpecGather )
[2] id:249#1 | cost=0.01 [cpu=0, mem=0, net=0.01] | estRows=0.04 | children=[@1] | PhysicalDistribute[250]@1 ( stats=null, distributionSpec=DistributionSpecGather )
Chosen Expression ID: 81
Chosen Properties: DistributionSpecStorageAny Order: ([])
Statistics
rows=0.037037037037037035
tupleSize=9.0
width=1
id#0 -> ndv=0.0370, min=1.000000(1), max=3.000000(3), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#1 -> ndv=0.0370, min=20240101000000.000000(2024-01-01), max=20240102000000.000000(2024-01-02), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#2 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 2
Properties: ANY
Expression ID: 81#1
ChildrenRequires:
[0] DistributionSpecStorageAny Order: ([])
── Entry #2 ────────────────────────────── BEST
Cost: 2
Properties: DistributionSpecStorageAny Order: ([])
Expression ID: 81#1
ChildrenRequires:
[0] DistributionSpecStorageAny Order: ([])
── Entry #3 ──────────────────────────────
Cost: 2
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 213#1
ChildrenRequires:
[0] DistributionSpecExecutionAny Order: ([])
── Entry #4 ──────────────────────────────
Cost: 2.01
Properties: GATHER
Expression ID: 153#1
ChildrenRequires:
[0] DistributionSpecStorageAny Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[{0}], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@2]
Logical Expressions:
[1] id:55#2 | cost=null | estRows=0.04 | children=[@1] | LogicalSort[56] ( orderKeys=[id#0 asc null first] )
Physical Expressions:
[1] id:73#2 | cost=0.13 [cpu=0.04, mem=0.04, net=0.04] | estRows=0.04 | children=[@4] | PhysicalQuickSort[74]@2 ( stats=null, orderKeys=[id#0 asc null first], phase=MERGE_SORT )
[2] id:76#2 | cost=3.8 [cpu=0.04, mem=3.7, net=0.04] | estRows=-1 | children=[@1] | PhysicalQuickSort[77]@2 ( stats=null, orderKeys=[id#0 asc null first], phase=GATHER_SORT )
Enforcers:
(none)
Chosen Expression ID: 73
Chosen Properties: DistributionSpecGather Order: ([id#0 asc null first])
Statistics
rows=0.037037037037037035
tupleSize=9.0
width=1
id#0 -> ndv=0.0370, min=1.000000(1), max=3.000000(3), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#1 -> ndv=0.0370, min=20240101000000.000000(2024-01-01), max=20240102000000.000000(2024-01-02), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#2 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 2.27
Properties: ANY
Expression ID: 73#2
ChildrenRequires:
[0] GATHER
── Entry #2 ────────────────────────────── BEST
Cost: 2.27
Properties: DistributionSpecGather Order: ([id#0 asc null first])
Expression ID: 73#2
ChildrenRequires:
[0] GATHER
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={}}
═══════════════════════════════════════════════════════════
ROOT Group[@3]
Logical Expressions:
[1] id:58#3 | cost=null | estRows=0.04 | children=[@2] | LogicalResultSink[59] ( outputExprs=[id#0, d#1, vec#2] )
Physical Expressions:
[1] id:63#3 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@2] | PhysicalResultSink[64] ( outputExprs=[id#0, d#1, vec#2] )
Enforcers:
(none)
Chosen Expression ID: 63
Chosen Properties: GATHER
Statistics
rows=0.037037037037037035
tupleSize=9.0
width=1
id#0 -> ndv=0.0370, min=1.000000(1), max=3.000000(3), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#1 -> ndv=0.0370, min=20240101000000.000000(2024-01-01), max=20240102000000.000000(2024-01-02), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#2 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 2.27
Properties: ANY
Expression ID: 63#3
ChildrenRequires:
[0] DistributionSpecGather Order: ([id#0 asc null first])
── Entry #2 ────────────────────────────── BEST
Cost: 2.27
Properties: GATHER
Expression ID: 63#3
ChildrenRequires:
[0] DistributionSpecGather Order: ([id#0 asc null first])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={}}
═══════════════════════════════════════════════════════════
Group[@4]
Logical Expressions:
(none)
Physical Expressions:
[1] id:70#4 | cost=0.13 [cpu=0.04, mem=0.04, net=0.04] | estRows=0.04 | children=[@1] | PhysicalQuickSort[71]@4 ( stats=null, orderKeys=[id#0 asc null first], phase=LOCAL_SORT )
Enforcers:
[1] id:252#4 | cost=0.01 [cpu=0, mem=0, net=0.01] | estRows=0.04 | children=[@4] | PhysicalDistribute[253]@4 ( stats=null, distributionSpec=DistributionSpecGather )
Chosen Enforcer(ID, RequiredProperties):
(0)252, GATHER
Chosen Expression ID: 70
Chosen Properties: DistributionSpecStorageAny Order: ([id#0 asc null first])
Statistics
rows=0.037037037037037035
tupleSize=9.0
width=1
id#0 -> ndv=0.0370, min=1.000000(1), max=3.000000(3), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#1 -> ndv=0.0370, min=20240101000000.000000(2024-01-01), max=20240102000000.000000(2024-01-02), count=2.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#2 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 2.13
Properties: ANY
Expression ID: 70#4
ChildrenRequires:
[0] DistributionSpecStorageAny Order: ([])
── Entry #2 ────────────────────────────── BEST
Cost: 2.13
Properties: DistributionSpecStorageAny Order: ([id#0 asc null first])
Expression ID: 70#4
ChildrenRequires:
[0] DistributionSpecStorageAny Order: ([])
── Entry #3 ────────────────────────────── BEST
Cost: 2.14
Properties: GATHER
Expression ID: 252#4
ChildrenRequires:
[0] DistributionSpecStorageAny Order: ([id#0 asc null first])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={}}
═══════════════════════════════════════════════════════════
Group[@5]
Logical Expressions:
[1] id:107#5 | cost=null | estRows=2 | children=[] | LogicalOlapScan ( qualified=regression_test_nereids_rules_p0_mv_non_nullable.non_nullable_part_mv, indexName=non_nullable_part_mv, selectedIndexId=1796110200713, preAgg=ON, operativeCol=[id#3], virtualColumns=[] )
Physical Expressions:
[1] id:131#5 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[132]@5 ( table=non_nullable_part_mv partitions(1/2), stats=null, operativeSlots=[id#3], virtualColumns=[] )
Enforcers:
[1] id:147#5 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@5] | PhysicalDistribute[148]@5 ( stats=null, distributionSpec=DistributionSpecExecutionAny )
Statistics
rows=2.0
tupleSize=3.0
width=1
id#3 -> unknown(2.0)
d#4 -> unknown(2.0)
vec#5 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 0
Properties: ANY
Expression ID: 131#5
── Entry #2 ──────────────────────────────
Cost: 0
Properties: DistributionSpecHash ( orderedShuffledColumns=[3], shuffleType=NATURAL, tableId=1796110200712, selectedIndexId=1796110200713, partitionIds=[1796110200725], equivalenceExprIds=[[3]], exprIdToEquivalenceSet={3=0} ) Order: ([])
Expression ID: 131#5
── Entry #3 ──────────────────────────────
Cost: 0
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 147#5
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[3], shuffleType=NATURAL, tableId=1796110200712, selectedIndexId=1796110200713, partitionIds=[1796110200725], equivalenceExprIds=[[3]], exprIdToEquivalenceSet={3=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@6]
Logical Expressions:
[1] id:109#6 | cost=null | estRows=1 | children=[] | LogicalOlapScan ( qualified=internal.regression_test_nereids_rules_p0_mv_non_nullable.non_nullable_part_base, indexName=<index_not_selected>, selectedIndexId=1796110200677, preAgg=ON, operativeCol=[d#7], virtualColumns=[] )
Physical Expressions:
[1] id:139#6 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[140]@6 ( table=non_nullable_part_base partitions(1/2), stats=null, operativeSlots=[d#7], virtualColumns=[] )
Enforcers:
(none)
Statistics
rows=1.0
tupleSize=9.0
width=1
id#6 -> ndv=1.0000, min=1.000000(1), max=109.000000(109), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#7 -> ndv=1.0000, min=20240102000000.000000(2024-01-02), max=20240102000000.000000(2024-01-02), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#8 -> unknown(1.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 1
Properties: ANY
Expression ID: 139#6
── Entry #2 ──────────────────────────────
Cost: 1
Properties: DistributionSpecHash ( orderedShuffledColumns=[6], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[6]], exprIdToEquivalenceSet={6=0} ) Order: ([])
Expression ID: 139#6
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[{0}], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@7]
Logical Expressions:
[1] id:112#7 | cost=null | estRows=1 | children=[@6] | LogicalFilter[113] ( predicates=AND[(d#7 >= 2024-01-02),(d#7 < 2024-01-03)] )
Physical Expressions:
[1] id:136#7 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@6] | PhysicalFilter[137]@7 ( stats=null, predicates=AND[(d#7 >= 2024-01-02),(d#7 < 2024-01-03)] )
Enforcers:
[1] id:150#7 | cost=0.02 [cpu=0, mem=0, net=0.02] | estRows=-1 | children=[@7] | PhysicalDistribute[151]@7 ( stats=null, distributionSpec=DistributionSpecExecutionAny )
Statistics
rows=1.0
tupleSize=9.0
width=1
id#6 -> ndv=1.0000, min=1.000000(1), max=109.000000(109), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#7 -> ndv=1.0000, min=20240102000000.000000(2024-01-02), max=20240102000000.000000(2024-01-02), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#8 -> unknown(1.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 1
Properties: ANY
Expression ID: 136#7
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[6], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[6]], exprIdToEquivalenceSet={6=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 1
Properties: DistributionSpecHash ( orderedShuffledColumns=[6], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[6]], exprIdToEquivalenceSet={6=0} ) Order: ([])
Expression ID: 136#7
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[6], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[6]], exprIdToEquivalenceSet={6=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 1.02
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 150#7
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[6], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[6]], exprIdToEquivalenceSet={6=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[{0}], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@8]
Logical Expressions:
[1] id:115#8 | cost=null | estRows=3 | children=[@5, @7] | LogicalUnion ( qualifier=ALL, outputs=[id#0, d#1, vec#2], regularChildrenOutputs=[[id#3, d#4, vec#5], [id#6, d#7, vec#8]], constantExprsList=[], hasPushedFilter=false )
Physical Expressions:
[1] id:128#8 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@5, @7] | PhysicalUnion[129]@8 ( stats=null, qualifier=ALL, outputs=[id#0, d#1, vec#2], regularChildrenOutputs=[[id#3, d#4, vec#5], [id#6, d#7, vec#8]], constantExprsList=[] )
Enforcers:
(none)
Statistics
rows=2.0
tupleSize=3.0
width=1
id#0 -> unknown(2.0)
d#1 -> unknown(2.0)
vec#2 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 1.03
Properties: ANY
Expression ID: 128#8
ChildrenRequires:
[0] DistributionSpecExecutionAny Order: ([])
[1] DistributionSpecExecutionAny Order: ([])
── Entry #2 ──────────────────────────────
Cost: 1.03
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 128#8
ChildrenRequires:
[0] DistributionSpecExecutionAny Order: ([])
[1] DistributionSpecExecutionAny Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={}}
═══════════════════════════════════════════════════════════
Group[@9]
Logical Expressions:
[1] id:194#9 | cost=null | estRows=2 | children=[] | LogicalOlapScan ( qualified=regression_test_nereids_rules_p0_mv_non_nullable.non_nullable_part_mv, indexName=non_nullable_part_mv, selectedIndexId=1796110200713, preAgg=ON, operativeCol=[id#9], virtualColumns=[] )
Physical Expressions:
[1] id:226#9 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[227]@9 ( table=non_nullable_part_mv partitions(1/2), stats=null, operativeSlots=[id#9], virtualColumns=[] )
Enforcers:
(none)
Statistics
rows=2.0
tupleSize=3.0
width=1
id#9 -> unknown(2.0)
d#10 -> unknown(2.0)
vec#11 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 0
Properties: ANY
Expression ID: 226#9
── Entry #2 ──────────────────────────────
Cost: 0
Properties: DistributionSpecHash ( orderedShuffledColumns=[9], shuffleType=NATURAL, tableId=1796110200712, selectedIndexId=1796110200713, partitionIds=[1796110200725], equivalenceExprIds=[[9]], exprIdToEquivalenceSet={9=0} ) Order: ([])
Expression ID: 226#9
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@10]
Logical Expressions:
[1] id:197#10 | cost=null | estRows=1 | children=[@9] | LogicalFilter[198] ( predicates=(id#9 < 3) )
Physical Expressions:
[1] id:223#10 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@9] | PhysicalFilter[224]@10 ( stats=null, predicates=(id#9 < 3) )
Enforcers:
[1] id:243#10 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@10] | PhysicalDistribute[244]@10 ( stats=null, distributionSpec=DistributionSpecExecutionAny )
Statistics
rows=1.0
tupleSize=3.0
width=1
id#9 -> unknown(2.0)
d#10 -> unknown(2.0)
vec#11 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 0
Properties: ANY
Expression ID: 223#10
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[9], shuffleType=NATURAL, tableId=1796110200712, selectedIndexId=1796110200713, partitionIds=[1796110200725], equivalenceExprIds=[[9]], exprIdToEquivalenceSet={9=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 0
Properties: DistributionSpecHash ( orderedShuffledColumns=[9], shuffleType=NATURAL, tableId=1796110200712, selectedIndexId=1796110200713, partitionIds=[1796110200725], equivalenceExprIds=[[9]], exprIdToEquivalenceSet={9=0} ) Order: ([])
Expression ID: 223#10
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[9], shuffleType=NATURAL, tableId=1796110200712, selectedIndexId=1796110200713, partitionIds=[1796110200725], equivalenceExprIds=[[9]], exprIdToEquivalenceSet={9=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 0
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 243#10
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[9], shuffleType=NATURAL, tableId=1796110200712, selectedIndexId=1796110200713, partitionIds=[1796110200725], equivalenceExprIds=[[9]], exprIdToEquivalenceSet={9=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@11]
Logical Expressions:
[1] id:199#11 | cost=null | estRows=1 | children=[] | LogicalOlapScan ( qualified=internal.regression_test_nereids_rules_p0_mv_non_nullable.non_nullable_part_base, indexName=<index_not_selected>, selectedIndexId=1796110200677, preAgg=ON, operativeCol=[id#12, d#13], virtualColumns=[] )
Physical Expressions:
[1] id:235#11 | cost=1 [cpu=1, mem=0, net=0] | estRows=-1 | children=[] | PhysicalOlapScan[236]@11 ( table=non_nullable_part_base partitions(1/2), stats=null, operativeSlots=[id#12, d#13], virtualColumns=[] )
Enforcers:
(none)
Statistics
rows=1.0
tupleSize=9.0
width=1
id#12 -> ndv=1.0000, min=1.000000(1), max=109.000000(109), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#13 -> ndv=1.0000, min=20240102000000.000000(2024-01-02), max=20240102000000.000000(2024-01-02), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#14 -> unknown(1.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 1
Properties: ANY
Expression ID: 235#11
── Entry #2 ──────────────────────────────
Cost: 1
Properties: DistributionSpecHash ( orderedShuffledColumns=[12], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[12]], exprIdToEquivalenceSet={12=0} ) Order: ([])
Expression ID: 235#11
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[{0}], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@12]
Logical Expressions:
[1] id:202#12 | cost=null | estRows=0.02 | children=[@11] | LogicalFilter[203] ( predicates=AND[(d#13 >= 2024-01-02),(d#13 < 2024-01-03),(id#12 < 3)] )
Physical Expressions:
[1] id:232#12 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@11] | PhysicalFilter[233]@12 ( stats=null, predicates=AND[(d#13 >= 2024-01-02),(d#13 < 2024-01-03),(id#12 < 3)] )
Enforcers:
[1] id:246#12 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@12] | PhysicalDistribute[247]@12 ( stats=null, distributionSpec=DistributionSpecExecutionAny )
Statistics
rows=0.018518518518518517
tupleSize=9.0
width=1
id#12 -> ndv=0.0185, min=1.000000(1), max=3.000000(3), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
d#13 -> ndv=0.0185, min=20240102000000.000000(2024-01-02), max=20240102000000.000000(2024-01-02), count=1.0000, numNulls=0.0000, avgSizeByte=4.000000, hotValues=(null)
vec#14 -> unknown(1.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 1
Properties: ANY
Expression ID: 232#12
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[12], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[12]], exprIdToEquivalenceSet={12=0} ) Order: ([])
── Entry #2 ──────────────────────────────
Cost: 1
Properties: DistributionSpecHash ( orderedShuffledColumns=[12], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[12]], exprIdToEquivalenceSet={12=0} ) Order: ([])
Expression ID: 232#12
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[12], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[12]], exprIdToEquivalenceSet={12=0} ) Order: ([])
── Entry #3 ──────────────────────────────
Cost: 1
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 246#12
ChildrenRequires:
[0] DistributionSpecHash ( orderedShuffledColumns=[12], shuffleType=NATURAL, tableId=1796110200676, selectedIndexId=1796110200677, partitionIds=[1796110200675], equivalenceExprIds=[[12]], exprIdToEquivalenceSet={12=0} ) Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[{0}], infoMapByTableId=[{0}], refreshVersion={{0}=84696351}}
═══════════════════════════════════════════════════════════
Group[@13]
Logical Expressions:
[1] id:205#13 | cost=null | estRows=1.02 | children=[@10, @12] | LogicalUnion ( qualifier=ALL, outputs=[id#0, d#1, vec#2], regularChildrenOutputs=[[id#9, d#10, vec#11], [id#12, d#13, vec#14]], constantExprsList=[], hasPushedFilter=false )
Physical Expressions:
[1] id:218#13 | cost=0 [cpu=0, mem=0, net=0] | estRows=-1 | children=[@10, @12] | PhysicalUnion[219]@13 ( stats=null, qualifier=ALL, outputs=[id#0, d#1, vec#2], regularChildrenOutputs=[[id#9, d#10, vec#11], [id#12, d#13, vec#14]], constantExprsList=[] )
Enforcers:
(none)
Statistics
rows=0.037037037037037035
tupleSize=3.0
width=1
id#0 -> unknown(2.0)
d#1 -> unknown(2.0)
vec#2 -> unknown(2.0)
Lowest Plan
── Entry #1 ──────────────────────────────
Cost: 1
Properties: ANY
Expression ID: 218#13
ChildrenRequires:
[0] DistributionSpecExecutionAny Order: ([])
[1] DistributionSpecExecutionAny Order: ([])
── Entry #2 ──────────────────────────────
Cost: 1
Properties: DistributionSpecExecutionAny Order: ([])
Expression ID: 218#13
ChildrenRequires:
[0] DistributionSpecExecutionAny Order: ([])
[1] DistributionSpecExecutionAny Order: ([])
struct info map
StructInfoMap{ groupExpressionMapByRelationId=[], infoMapByRelationId=[], groupExpressionMapByTableId=[], infoMapByTableId=[], refreshVersion={}}
========== OPTIMIZED PLAN ==========
PhysicalResultSink[291] ( outputExprs=[id#0, d#1, vec#2] )
+--PhysicalQuickSort[287]@2 ( stats=0.04, orderKeys=[id#0 asc null first], phase=MERGE_SORT )
+--PhysicalDistribute[283]@4 ( stats=0.04, distributionSpec=DistributionSpecGather )
+--PhysicalQuickSort[279]@4 ( stats=0.04, orderKeys=[id#0 asc null first], phase=LOCAL_SORT )
+--PhysicalFilter[275]@1 ( stats=0.04, predicates=(id#0 < 3) )
+--PhysicalOlapScan[271]@0 ( table=non_nullable_part_base, stats=2, operativeSlots=[id#0], virtualColumns=[] )
========== MATERIALIZATIONS ==========
MaterializedView
MaterializedViewRewriteSuccessAndChose:
MaterializedViewRewriteSuccessButNotChose:
CBO.internal.regression_test_nereids_rules_p0_mv_non_nullable.non_nullable_part_mv not chose
MaterializedViewRewriteFail:
Hint log:
Used: use_mv([non_nullable_part_mv])
UnUsed:
SyntaxError:
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at org.apache.doris.regression.action.ExplainAction.run(ExplainAction.groovy:128)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at org.apache.doris.regression.suite.Suite.runAction(Suite.groovy:1757)
at jdk.internal.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
at groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1333)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1088)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1142)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at org.apache.doris.regression.suite.Suite.invokeMethod(Suite.groovy:2114)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.selectMethod(IndyInterface.java:355)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at org.apache.doris.regression.suite.Suite.explain(Suite.groovy:1105)
at jdk.internal.reflect.GeneratedMethodAccessor105.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
at groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1333)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1088)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1142)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at org.apache.doris.regression.suite.Suite.invokeMethod(Suite.groovy:2114)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at org.apache.doris.regression.suite.Suite.mv_rewrite_success(Suite.groovy:2932)
at org.apache.doris.regression.suite.Suite.mv_rewrite_success(Suite.groovy:2919)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
at groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1333)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1088)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1142)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at org.apache.doris.regression.suite.Suite.invokeMethod(Suite.groovy:2114)
at jdk.internal.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
at org.codehaus.groovy.runtime.metaclass.TransformMetaMethod.invoke(TransformMetaMethod.java:59)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass$1.invoke(ClosureMetaClass.java:218)
at org.codehaus.groovy.runtime.metaclass.TransformMetaMethod.doMethodInvoke(TransformMetaMethod.java:66)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:342)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at non_nullable_mv_rewrite$_run_closure1.doCall(non_nullable_mv_rewrite.groovy:177)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
[truncated; see redacted regression.log]
Source: redacted regression.log line 127487Build details
- Build ID
- #20504
- PR head SHA
- b11a4f6cbf75f3351cfa13b758f85aa1d3af6bb3
- Started (UTC+08:00)
- 2026-12-01 15:21:35
- Finished (UTC+08:00)
- 2026-12-01 17:14:35
- Duration
- 113m 00s
- Pull request
- #71097