Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make gp_dqa test case stable #521

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 52 additions & 52 deletions src/test/regress/expected/gp_dqa.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- are flowing from different segments in different order. Mask those
-- differences by setting 'extra_float_digits'. This isn't enough for all of
-- the queries, so a few also use TO_CHAR() to truncate the results further.
set extra_float_digits=0;
set extra_float_digits=-1;
SET optimizer_trace_fallback to on;
drop table if exists dqa_t1;
NOTICE: table "dqa_t1" does not exist, skipping
Expand Down Expand Up @@ -799,9 +799,9 @@ explain (costs off) select sum(distinct d), count(distinct i), count(distinct c)

-- multi args singledqa
select corr(distinct d, i) from dqa_t1;
corr
--------------------
0.0824013341460019
corr
-------------------
0.082401334146002
(1 row)

explain (costs off) select corr(distinct d, i) from dqa_t1;
Expand Down Expand Up @@ -894,9 +894,9 @@ explain (costs off) select to_char(corr(distinct d, i), '9.99999999999999') from

-- multi args multidqa
select count(distinct c), corr(distinct d, i) from dqa_t1;
count | corr
-------+--------------------
10 | 0.0824013341460019
count | corr
-------+-------------------
10 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct c), corr(distinct d, i) from dqa_t1;
Expand All @@ -916,9 +916,9 @@ explain (costs off) select count(distinct c), corr(distinct d, i) from dqa_t1;
(11 rows)

select count(distinct d), corr(distinct d, i) from dqa_t1;
count | corr
-------+--------------------
23 | 0.0824013341460019
count | corr
-------+-------------------
23 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct d), corr(distinct d, i) from dqa_t1;
Expand All @@ -938,9 +938,9 @@ explain (costs off) select count(distinct d), corr(distinct d, i) from dqa_t1;
(11 rows)

select count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
count | count | corr
-------+-------+--------------------
23 | 12 | 0.0824013341460019
count | count | corr
-------+-------+-------------------
23 | 12 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
Expand All @@ -960,9 +960,9 @@ explain (costs off) select count(distinct d), count(distinct i), corr(distinct d
(11 rows)

select count(distinct c), count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
count | count | count | corr
-------+-------+-------+--------------------
10 | 23 | 12 | 0.0824013341460019
count | count | count | corr
-------+-------+-------+-------------------
10 | 23 | 12 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct c), count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
Expand Down Expand Up @@ -1158,42 +1158,42 @@ explain (costs off) select count(distinct c), corr(distinct d, i), d, i from dqa
(16 rows)

select count(distinct c), corr(distinct d, i), dt from dqa_t1 group by dt;
count | corr | dt
-------+--------------------+------------
3 | 0.59603956067927 | 06-25-2009
3 | 0.0750939261482638 | 06-20-2009
3 | 0.0750939261482638 | 07-11-2009
3 | 0.0750939261482638 | 06-18-2009
3 | 0.0750939261482638 | 06-14-2009
3 | 0.755928946018455 | 06-10-2009
3 | 0.0750939261482638 | 06-28-2009
3 | 0.0750939261482638 | 06-17-2009
3 | 0.0750939261482638 | 06-16-2009
3 | 0.59603956067927 | 06-24-2009
3 | 0.0750939261482638 | 06-29-2009
3 | 0.0750939261482638 | 07-09-2009
3 | 0.0750939261482638 | 06-21-2009
3 | 0.0750939261482638 | 06-26-2009
3 | -0.709570905570559 | 06-13-2009
3 | -0.709570905570559 | 06-23-2009
3 | 0.59603956067927 | 06-11-2009
3 | 0.0750939261482638 | 07-10-2009
3 | 0.0750939261482638 | 07-01-2009
3 | -0.709570905570559 | 06-12-2009
3 | 0.59603956067927 | 07-04-2009
3 | 0.0750939261482638 | 06-15-2009
3 | 0.0750939261482638 | 06-30-2009
3 | 0.59603956067927 | 07-05-2009
2 | -1 | 07-12-2009
3 | 0.0750939261482638 | 07-02-2009
3 | 0.0750939261482638 | 06-27-2009
3 | -1 | 07-03-2009
3 | -0.709570905570559 | 07-06-2009
2 | -1 | 07-13-2009
3 | -0.709570905570559 | 07-07-2009
3 | 0.0750939261482638 | 07-08-2009
3 | 0.0750939261482638 | 06-19-2009
3 | -0.709570905570559 | 06-22-2009
count | corr | dt
-------+-------------------+------------
3 | 0.75592894601845 | 06-10-2009
3 | 0.075093926148264 | 07-11-2009
3 | 0.075093926148264 | 06-28-2009
3 | 0.075093926148264 | 06-19-2009
3 | 0.075093926148264 | 06-17-2009
3 | 0.075093926148264 | 07-08-2009
3 | 0.075093926148264 | 06-16-2009
2 | -1 | 07-13-2009
3 | 0.075093926148264 | 06-29-2009
3 | 0.59603956067927 | 07-04-2009
3 | -0.70957090557056 | 06-23-2009
2 | -1 | 07-12-2009
3 | 0.075093926148264 | 07-02-2009
3 | 0.59603956067927 | 06-11-2009
3 | 0.075093926148264 | 07-10-2009
3 | 0.075093926148264 | 06-18-2009
3 | 0.59603956067927 | 07-05-2009
3 | 0.075093926148264 | 06-20-2009
3 | 0.075093926148264 | 07-09-2009
3 | -0.70957090557056 | 06-12-2009
3 | 0.59603956067927 | 06-24-2009
3 | 0.075093926148264 | 06-14-2009
3 | 0.075093926148264 | 06-26-2009
3 | -0.70957090557056 | 06-22-2009
3 | -0.70957090557056 | 06-13-2009
3 | 0.075093926148264 | 06-21-2009
3 | -0.70957090557056 | 07-07-2009
3 | 0.075093926148264 | 06-27-2009
3 | -0.70957090557056 | 07-06-2009
3 | 0.075093926148264 | 07-01-2009
3 | -1 | 07-03-2009
3 | 0.075093926148264 | 06-15-2009
3 | 0.59603956067927 | 06-25-2009
3 | 0.075093926148264 | 06-30-2009
(34 rows)

explain (costs off) select count(distinct c), corr(distinct d, i), dt from dqa_t1 group by dt;
Expand Down
104 changes: 52 additions & 52 deletions src/test/regress/expected/gp_dqa_optimizer.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- are flowing from different segments in different order. Mask those
-- differences by setting 'extra_float_digits'. This isn't enough for all of
-- the queries, so a few also use TO_CHAR() to truncate the results further.
set extra_float_digits=0;
set extra_float_digits=-1;
SET optimizer_trace_fallback to on;
drop table if exists dqa_t1;
NOTICE: table "dqa_t1" does not exist, skipping
Expand Down Expand Up @@ -824,9 +824,9 @@ DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disab

-- multi args singledqa
select corr(distinct d, i) from dqa_t1;
corr
--------------------
0.0824013341460019
corr
-------------------
0.082401334146002
(1 row)

explain (costs off) select corr(distinct d, i) from dqa_t1;
Expand Down Expand Up @@ -912,9 +912,9 @@ explain (costs off) select to_char(corr(distinct d, i), '9.99999999999999') from
select count(distinct c), corr(distinct d, i) from dqa_t1;
INFO: GPORCA failed to produce a plan, falling back to planner
DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disabled in the optimizer
count | corr
-------+--------------------
10 | 0.0824013341460019
count | corr
-------+-------------------
10 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct c), corr(distinct d, i) from dqa_t1;
Expand All @@ -938,9 +938,9 @@ DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disab
select count(distinct d), corr(distinct d, i) from dqa_t1;
INFO: GPORCA failed to produce a plan, falling back to planner
DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disabled in the optimizer
count | corr
-------+--------------------
23 | 0.0824013341460019
count | corr
-------+-------------------
23 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct d), corr(distinct d, i) from dqa_t1;
Expand All @@ -964,9 +964,9 @@ DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disab
select count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
INFO: GPORCA failed to produce a plan, falling back to planner
DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disabled in the optimizer
count | count | corr
-------+-------+--------------------
23 | 12 | 0.0824013341460019
count | count | corr
-------+-------+-------------------
23 | 12 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
Expand All @@ -990,9 +990,9 @@ DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disab
select count(distinct c), count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
INFO: GPORCA failed to produce a plan, falling back to planner
DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disabled in the optimizer
count | count | count | corr
-------+-------+-------+--------------------
10 | 23 | 12 | 0.0824013341460019
count | count | count | corr
-------+-------+-------+-------------------
10 | 23 | 12 | 0.082401334146002
(1 row)

explain (costs off) select count(distinct c), count(distinct d), count(distinct i), corr(distinct d, i) from dqa_t1;
Expand Down Expand Up @@ -1200,42 +1200,42 @@ DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disab
select count(distinct c), corr(distinct d, i), dt from dqa_t1 group by dt;
INFO: GPORCA failed to produce a plan, falling back to planner
DETAIL: Feature not supported: Multiple Distinct Qualified Aggregates are disabled in the optimizer
count | corr | dt
-------+--------------------+------------
3 | 0.59603956067927 | 06-25-2009
3 | 0.0750939261482638 | 06-20-2009
3 | 0.0750939261482638 | 07-11-2009
3 | 0.0750939261482638 | 06-18-2009
3 | 0.0750939261482638 | 06-14-2009
3 | 0.755928946018455 | 06-10-2009
3 | 0.0750939261482638 | 06-28-2009
3 | 0.0750939261482638 | 06-17-2009
3 | 0.0750939261482638 | 06-16-2009
3 | 0.59603956067927 | 06-24-2009
3 | 0.0750939261482638 | 06-29-2009
3 | 0.0750939261482638 | 07-09-2009
3 | 0.0750939261482638 | 06-21-2009
3 | 0.0750939261482638 | 06-26-2009
3 | -0.709570905570559 | 06-13-2009
3 | -0.709570905570559 | 06-23-2009
3 | 0.59603956067927 | 06-11-2009
3 | 0.0750939261482638 | 07-10-2009
3 | 0.0750939261482638 | 07-01-2009
3 | -0.709570905570559 | 06-12-2009
3 | 0.59603956067927 | 07-04-2009
3 | 0.0750939261482638 | 06-15-2009
3 | 0.0750939261482638 | 06-30-2009
3 | 0.59603956067927 | 07-05-2009
2 | -1 | 07-12-2009
3 | 0.0750939261482638 | 07-02-2009
3 | 0.0750939261482638 | 06-27-2009
3 | -1 | 07-03-2009
3 | -0.709570905570559 | 07-06-2009
2 | -1 | 07-13-2009
3 | -0.709570905570559 | 07-07-2009
3 | 0.0750939261482638 | 07-08-2009
3 | 0.0750939261482638 | 06-19-2009
3 | -0.709570905570559 | 06-22-2009
count | corr | dt
-------+-------------------+------------
3 | 0.75592894601845 | 06-10-2009
3 | 0.075093926148264 | 07-11-2009
3 | 0.075093926148264 | 06-28-2009
3 | 0.075093926148264 | 06-19-2009
3 | 0.075093926148264 | 06-17-2009
3 | 0.075093926148264 | 07-08-2009
3 | 0.075093926148264 | 06-16-2009
3 | 0.075093926148264 | 06-29-2009
2 | -1 | 07-13-2009
3 | 0.59603956067927 | 07-04-2009
3 | -0.70957090557056 | 06-23-2009
2 | -1 | 07-12-2009
3 | 0.075093926148264 | 07-02-2009
3 | 0.59603956067927 | 06-11-2009
3 | 0.075093926148264 | 07-10-2009
3 | 0.075093926148264 | 06-18-2009
3 | 0.59603956067927 | 07-05-2009
3 | 0.075093926148264 | 06-20-2009
3 | 0.075093926148264 | 07-09-2009
3 | -0.70957090557056 | 06-12-2009
3 | 0.59603956067927 | 06-24-2009
3 | 0.075093926148264 | 06-14-2009
3 | 0.075093926148264 | 06-26-2009
3 | -0.70957090557056 | 06-22-2009
3 | -0.70957090557056 | 06-13-2009
3 | 0.075093926148264 | 06-21-2009
3 | -0.70957090557056 | 07-07-2009
3 | 0.075093926148264 | 06-27-2009
3 | -0.70957090557056 | 07-06-2009
3 | 0.075093926148264 | 07-01-2009
3 | -1 | 07-03-2009
3 | 0.075093926148264 | 06-15-2009
3 | 0.59603956067927 | 06-25-2009
3 | 0.075093926148264 | 06-30-2009
(34 rows)

explain (costs off) select count(distinct c), corr(distinct d, i), dt from dqa_t1 group by dt;
Expand Down
2 changes: 1 addition & 1 deletion src/test/regress/sql/gp_dqa.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- are flowing from different segments in different order. Mask those
-- differences by setting 'extra_float_digits'. This isn't enough for all of
-- the queries, so a few also use TO_CHAR() to truncate the results further.
set extra_float_digits=0;
set extra_float_digits=-1;

SET optimizer_trace_fallback to on;

Expand Down
Loading