Skip to content

IGNITE-28526 Fix flaky RexSimplificationPlannerTest.testExtractCommonDisjunctionPart#13011

Merged
zstan merged 13 commits into
apache:masterfrom
zstan:ignite-28526
May 12, 2026
Merged

IGNITE-28526 Fix flaky RexSimplificationPlannerTest.testExtractCommonDisjunctionPart#13011
zstan merged 13 commits into
apache:masterfrom
zstan:ignite-28526

Conversation

@zstan
Copy link
Copy Markdown
Contributor

@zstan zstan commented Apr 13, 2026

plan from failed logs:

IgniteIndexScan(table=[[PUBLIC, T1]], index=[IDX1], filters=[AND(=($t1, 0), =($t0, 0), CASE(IS NULL($t2), null:BOOLEAN, OR(=(CAST($t2):INTEGER NOT NULL, 0), =(CAST($t2):INTEGER NOT NULL, 1), 
=(CAST($t2):INTEGER NOT NULL, 2))))], requiredColumns=[{0, 1, 2}], searchBounds=[[ExactBounds [bound=0], null, null]], inlineScan=[false], collation=[[0 ASC-nulls-first]]): rowcount = 4341.09375, cumulative cost = IgniteCost [rowCount=75001.0, cpu=300040.3670901322, memory=1.0, io=1.0, network=1.0], id = 1244437

plan from common master branch run:

IgniteIndexScan(table=[[PUBLIC, T1]], index=[IDX1], filters=[AND(=($t0, 0), =($t1, 0), CASE(IS NULL($t2), null:BOOLEAN, OR(=(CAST($t2):INTEGER NOT NULL, 0), =(CAST($t2):INTEGER NOT NULL, 1), 
=(CAST($t2):INTEGER NOT NULL, 2))))], requiredColumns=[{0, 1, 2}], searchBounds=[[ExactBounds [bound=0], null, null]], inlineScan=[false], collation=[[0 ASC-nulls-first]]): rowcount = 4341.09375, cumulative cost = IgniteCost [rowCount=75001.0, cpu=300040.3670901322, memory=1.0, io=1.0, network=1.0], id = 429 

here we can see that conditions are different: filters=[AND(=($t1, 0), =($t0, 0) vs filters=[AND(=($t0, 0), =($t1, 0)

@sonarqubecloud
Copy link
Copy Markdown

@zstan zstan merged commit d60aeea into apache:master May 12, 2026
10 checks passed
@zstan
Copy link
Copy Markdown
Contributor Author

zstan commented May 12, 2026

plan from failed logs:

IgniteIndexScan(table=[[PUBLIC, T1]], index=[IDX1], filters=[AND(=($t1, 0), =($t0, 0), CASE(IS NULL($t2), null:BOOLEAN, OR(=(CAST($t2):INTEGER NOT NULL, 0), =(CAST($t2):INTEGER NOT NULL, 1), 
=(CAST($t2):INTEGER NOT NULL, 2))))], requiredColumns=[{0, 1, 2}], searchBounds=[[ExactBounds [bound=0], null, null]], inlineScan=[false], collation=[[0 ASC-nulls-first]]): rowcount = 4341.09375, cumulative cost = IgniteCost [rowCount=75001.0, cpu=300040.3670901322, memory=1.0, io=1.0, network=1.0], id = 1244437

plan from common master branch run:

IgniteIndexScan(table=[[PUBLIC, T1]], index=[IDX1], filters=[AND(=($t0, 0), =($t1, 0), CASE(IS NULL($t2), null:BOOLEAN, OR(=(CAST($t2):INTEGER NOT NULL, 0), =(CAST($t2):INTEGER NOT NULL, 1), 
=(CAST($t2):INTEGER NOT NULL, 2))))], requiredColumns=[{0, 1, 2}], searchBounds=[[ExactBounds [bound=0], null, null]], inlineScan=[false], collation=[[0 ASC-nulls-first]]): rowcount = 4341.09375, cumulative cost = IgniteCost [rowCount=75001.0, cpu=300040.3670901322, memory=1.0, io=1.0, network=1.0], id = 429 

here we can see that conditions are different: filters=[AND(=($t1, 0),
=($t0, 0)
vs filters=[AND(=($t0, 0), =($t1, 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants