Skip to content

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

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