Skip to content

Add RETURNS TABLE() support for CREATE FUNCTION in Postgresql#1687

Merged
iffyio merged 5 commits intoapache:mainfrom
remysaissy:postgres/create_function_returns_table_support
Feb 3, 2025
Merged

Add RETURNS TABLE() support for CREATE FUNCTION in Postgresql#1687
iffyio merged 5 commits intoapache:mainfrom
remysaissy:postgres/create_function_returns_table_support

Conversation

@remysaissy
Copy link
Copy Markdown
Contributor

Currently CREATE FUNCTION doesn't support the RETURNS TABLE datatype (https://www.postgresql.org/docs/15/sql-createfunction.html).

This PR adds it for the PostgresSQL and Generic dialect.

remysaissy added a commit to remysaissy/datafusion-sqlparser-rs that referenced this pull request Jan 29, 2025
@remysaissy remysaissy force-pushed the postgres/create_function_returns_table_support branch from f8637f2 to 5cda5de Compare January 29, 2025 13:15
Comment thread src/parser/mod.rs Outdated
Comment thread src/parser/mod.rs Outdated
Copy link
Copy Markdown
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @remysaissy!
cc @alamb

@iffyio
Copy link
Copy Markdown
Contributor

iffyio commented Jan 31, 2025

@remysaissy when you get the chance could you take a look to resolve the conflicts on the branch?

@remysaissy
Copy link
Copy Markdown
Contributor Author

Yes, I’ll do it today.

remysaissy and others added 3 commits January 31, 2025 10:07
@remysaissy remysaissy force-pushed the postgres/create_function_returns_table_support branch from 5aca72c to abecd1c Compare January 31, 2025 09:07
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Jan 31, 2025

Thanks @remysaissy and @iffyio

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Jan 31, 2025

It looks like there are some real test failures

@iffyio iffyio merged commit 257da5a into apache:main Feb 3, 2025
Vedin pushed a commit to Embucket/datafusion-sqlparser-rs that referenced this pull request Feb 3, 2025
Vedin pushed a commit to Embucket/datafusion-sqlparser-rs that referenced this pull request Feb 3, 2025
Vedin added a commit to Embucket/datafusion-sqlparser-rs that referenced this pull request Feb 3, 2025
ayman-sigma pushed a commit to sigmacomputing/sqlparser-rs that referenced this pull request Apr 10, 2025
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.

3 participants