Skip to content

Allow arbitrary SQL statements#364

Open
teunbrand wants to merge 4 commits intoposit-dev:mainfrom
teunbrand:arbitrary_sql
Open

Allow arbitrary SQL statements#364
teunbrand wants to merge 4 commits intoposit-dev:mainfrom
teunbrand:arbitrary_sql

Conversation

@teunbrand
Copy link
Copy Markdown
Collaborator

This PR advances #336.

Essentially, for the spatial DuckDB extension to work, we need to execute INSTALL and LOAD statements. This PR makes place for these and other arbitrary statements before the VISUALISE clause.

teunbrand and others added 3 commits April 24, 2026 10:28
Relax the grammar's other_sql_statement rule to accept any non-delimiter
tokens, so statements like INSTALL/LOAD/SET/ATTACH parse without error.
Execute these setup statements before the main query in the pipeline.
Flip DDL detection in DuckDB and SQLite readers to a returns_rows
whitelist, so unknown statement types are handled gracefully.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@teunbrand teunbrand modified the milestone: 0.3.0 Apr 24, 2026
@teunbrand teunbrand marked this pull request as ready for review April 24, 2026 13:34
@teunbrand teunbrand requested a review from georgestagg April 24, 2026 13:34
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.

1 participant