Skip to content

select from functions#1077

Merged
jennifersp merged 4 commits intomainfrom
jennifer/table-function
Dec 17, 2024
Merged

select from functions#1077
jennifersp merged 4 commits intomainfrom
jennifer/table-function

Conversation

@jennifersp
Copy link
Contributor

@github-actions
Copy link
Contributor

github-actions bot commented Dec 17, 2024

Main PR
covering_index_scan_postgres 357.80/s 344.78/s -3.7%
index_join_postgres 152.52/s 153.03/s +0.3%
index_join_scan_postgres 183.99/s 185.71/s +0.9%
index_scan_postgres 12.54/s 12.59/s +0.3%
oltp_point_select 2771.31/s 2784.87/s +0.4%
oltp_read_only 1856.38/s 1847.07/s -0.6%
select_random_points 110.10/s 111.98/s +1.7%
select_random_ranges 131.09/s 130.18/s -0.7%
table_scan_postgres 12.06/s 11.90/s -1.4%
types_table_scan_postgres 5.66/s 5.69/s +0.5%

@github-actions
Copy link
Contributor

Main PR
Total 42090 42090
Successful 15344 15350
Failures 26746 26740
Partial Successes1 5232 5233
Main PR
Successful 36.4552% 36.4695%
Failures 63.5448% 63.5305%

${\color{lightgreen}Progressions (6)}$

create_view

QUERY: select 'foo'::text = any((select array['abc','def','foo']::text[])::text[]);
QUERY: create view tt19v as
select 'foo'::text = any(array['abc','def','foo']::text[]) c1,
       'foo'::text = any((select array['abc','def','foo']::text[])::text[]) c2;

join

QUERY: select t1.* from
  text_tbl t1
  left join (select *, '***'::text as d1 from int8_tbl i8b1) b1
    left join int8_tbl i8
      left join (select *, null::int as d2 from int8_tbl i8b2) b2
      on (i8.q1 = b2.q1)
    on (b2.d2 = b1.q2)
  on (t1.f1 = b1.d1)
  left join int4_tbl i4
  on (i8.q2 = i4.f1);
QUERY: select t1.* from
  text_tbl t1
  left join (select *, '***'::text as d1 from int8_tbl i8b1) b1
    left join int8_tbl i8
      left join (select *, null::int as d2 from int8_tbl i8b2, int4_tbl i4b2) b2
      on (i8.q1 = b2.q1)
    on (b2.d2 = b1.q2)
  on (t1.f1 = b1.d1)
  left join int4_tbl i4
  on (i8.q2 = i4.f1);
QUERY: select t1.* from
  text_tbl t1
  left join (select *, '***'::text as d1 from int8_tbl i8b1) b1
    left join int8_tbl i8
      left join (select *, null::int as d2 from int8_tbl i8b2, int4_tbl i4b2
                 where q1 = f1) b2
      on (i8.q1 = b2.q1)
    on (b2.d2 = b1.q2)
  on (t1.f1 = b1.d1)
  left join int4_tbl i4
  on (i8.q2 = i4.f1);

union

QUERY: SELECT * FROM
  (SELECT 1 AS t, (random()*3)::int AS x
   UNION
   SELECT 2 AS t, 4 AS x) ss
WHERE x > 3
ORDER BY x;

Footnotes

  1. These are tests that we're marking as Successful, however they do not match the expected output in some way. This is due to small differences, such as different wording on the error messages, or the column names being incorrect while the data itself is correct.

@jennifersp jennifersp requested a review from fulghum December 17, 2024 17:14
Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jennifersp jennifersp enabled auto-merge December 17, 2024 21:54
@jennifersp jennifersp merged commit 9d098e6 into main Dec 17, 2024
14 checks passed
@jennifersp jennifersp deleted the jennifer/table-function branch December 17, 2024 22:23
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