Skip to content

[CALCITE-7688] Support scalar subqueries in table function arguments - #5144

Open
tkalkirill wants to merge 1 commit into
apache:mainfrom
tkalkirill:calcite-7688
Open

[CALCITE-7688] Support scalar subqueries in table function arguments#5144
tkalkirill wants to merge 1 commit into
apache:mainfrom
tkalkirill:calcite-7688

Conversation

@tkalkirill

Copy link
Copy Markdown
Contributor

Jira Link

CALCITE-7688

Changes Proposed

This PR introduces support for scalar subqueries and expressions containing scalar subqueries in table function arguments:

SELECT * FROM TABLE(my_function((SELECT value FROM t), 1));

SELECT * FROM TABLE(my_function((SELECT 4) + (SELECT 6), 1));

SELECT *
FROM person p
CROSS JOIN LATERAL TABLE(
  my_function((SELECT p.id + 1), p.id)
);

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

@mihaibudiu

Copy link
Copy Markdown
Contributor

the commit message is not ideal.
Is this work in progress, or is it ready for review?

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