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

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

remysaissy
Copy link
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
src/parser/mod.rs Outdated Show resolved Hide resolved
src/parser/mod.rs Outdated Show resolved Hide resolved
Copy link
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
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
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
Contributor

alamb commented Jan 31, 2025

Thanks @remysaissy and @iffyio

@alamb
Copy link
Contributor

alamb commented Jan 31, 2025

It looks like there are some real test failures

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