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

Modify COUNT() to output agtype (#1311) #1338

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

dehowef
Copy link
Member

@dehowef dehowef commented Oct 31, 2023

Modified the make_function_expr logic to wrap the PG COUNT() function with a cast to agtype. This enables COUNT() to be used as a subquery in CASE.

Also added logic for casting for future PG function additions.

This modification passes all regression tests. Also added regression tests for COUNT in CASE statements.

@github-actions github-actions bot added the PG14 PostgreSQL14 label Oct 31, 2023
Modified the make_function_expr logic to wrap the PG COUNT()
function with a cast to agtype. This enables COUNT() to be used as
a subquery in CASE.

Also added logic for casting for future PG function
additions.

This modification passes all regression tests. Also added
regression tests for COUNT in CASE statements.
@dehowef dehowef force-pushed the PG14_casesubquery_count branch from 5a919a3 to 38846a7 Compare October 31, 2023 20:29
@jrgemignani jrgemignani requested a review from rafsun42 October 31, 2023 23:33
@rafsun42 rafsun42 merged commit 04ecaed into apache:PG14 Oct 31, 2023
@dehowef dehowef deleted the PG14_casesubquery_count branch November 16, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG14 PostgreSQL14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants