Skip to content

Add support for EXECUTE IMMEDIATE #1717

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

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

iffyio
Copy link
Contributor

@iffyio iffyio commented Feb 8, 2025

Adds support for the EXECUTE IMMEDIATE statement

EXECUTE IMMEDIATE 'SELECT 1' USING 2 AS foo;

BigQuery Snowflake

Adds support for the `EXECUTE IMMEDIATE` statement

```sql
EXECUTE IMMEDIATE 'SELECT 1' USING 2 AS foo;
```

[BigQuery](https://cloud.google.com/bigquery/docs/reference/standard-sql/procedural-language#execute_immediate)
[Snowflake](https://docs.snowflake.com/en/sql-reference/sql/execute-immediate)
@iffyio iffyio requested a review from alamb February 17, 2025 06:36
Copy link
Contributor

@alamb alamb 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 to me -- thank you @iffyio

@@ -110,6 +110,11 @@ impl Dialect for BigQueryDialect {
true
}

/// See <https://cloud.google.com/bigquery/docs/reference/standard-sql/procedural-language#execute_immediate>
Copy link
Contributor

Choose a reason for hiding this comment

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

i like how we are settling on using methods in Dialect to support the various options

@iffyio iffyio merged commit b482562 into apache:main Feb 19, 2025
9 checks passed
@iffyio iffyio deleted the execute-immediate branch February 19, 2025 17:56
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.

2 participants