Skip to content

feat(sql): add SQL query rewriter hook to SQLTable#163

Merged
hozan23 merged 1 commit into
datafusion-contrib:mainfrom
vimeh:vinay/virtual-struct-federation-api
Mar 4, 2026
Merged

feat(sql): add SQL query rewriter hook to SQLTable#163
hozan23 merged 1 commit into
datafusion-contrib:mainfrom
vimeh:vinay/virtual-struct-federation-api

Conversation

@vimeh
Copy link
Copy Markdown
Contributor

@vimeh vimeh commented Mar 2, 2026

Adds an optional SqlQueryRewriter hook to the SQLTable trait that runs after AST analysis, enabling string-level SQL modifications that cannot be expressed at the AST level (e.g. database-specific hints, query directives, or runtime-dependent rewrites). The hook is opt-in with a default no-op, so existing implementations are unaffected.

Adds an optional SqlQueryRewriter hook to the SQLTable trait that
runs after AST analysis, enabling string-level SQL modifications
that cannot be expressed at the AST level (e.g. database-specific
hints, query directives, or runtime-dependent rewrites). The hook
is opt-in with a default no-op, so existing implementations are
unaffected.
@hozan23 hozan23 merged commit c93f6a6 into datafusion-contrib:main Mar 4, 2026
7 checks passed
@hozan23
Copy link
Copy Markdown
Collaborator

hozan23 commented Mar 4, 2026

Thanks @vimeh

@github-actions github-actions Bot mentioned this pull request Mar 4, 2026
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