Skip to content

Commit

Permalink
Extract dynamic filter explain analyze test method
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk committed Mar 2, 2022
1 parent 21e6a06 commit e29fce5
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ public void testExplainAnalyze()
"Right \\(build\\) Input avg\\.: .* rows, Input std\\.dev\\.: .*",
"Collisions avg\\.: .* \\(.* est\\.\\), Collisions std\\.dev\\.: .*");

// ExplainAnalyzeOperator may finish before dynamic filter stats are reported to QueryInfo
assertEventually(() -> assertExplainAnalyze(
"EXPLAIN ANALYZE SELECT * FROM nation a, nation b WHERE a.nationkey = b.nationkey",
"Dynamic filters: \n.*ranges=25, \\{\\[0], ..., \\[24]}.* collection time=\\d+.*"));

assertExplainAnalyze(
"EXPLAIN ANALYZE SELECT nationkey FROM nation GROUP BY nationkey",
"Collisions avg\\.: .* \\(.* est\\.\\), Collisions std\\.dev\\.: .*");
Expand All @@ -181,6 +176,15 @@ public void testExplainAnalyze()
"Estimates: \\{rows: .* \\(.*\\), cpu: .*, memory: .*, network: .*}");
}

@Test
public void testExplainAnalyzeDynamicFilterInfo()
{
// ExplainAnalyzeOperator may finish before dynamic filter stats are reported to QueryInfo
assertEventually(() -> assertExplainAnalyze(
"EXPLAIN ANALYZE SELECT * FROM nation a, nation b WHERE a.nationkey = b.nationkey",
"Dynamic filters: \n.*ranges=25, \\{\\[0], ..., \\[24]}.* collection time=\\d+.*"));
}

@Test
public void testExplainAnalyzeVerbose()
{
Expand Down

0 comments on commit e29fce5

Please sign in to comment.