Skip to content

Conversation

@bitner
Copy link
Contributor

@bitner bitner commented Oct 29, 2025

Prototype to allow passing in a json whitelist or a function taking an input identifier string and returning the appropriate SQL.

@bitner bitner requested a review from gadomski October 29, 2025 14:55
@bitner
Copy link
Contributor Author

bitner commented Oct 29, 2025

@gadomski putting this up more of a prototype to figure out the right API that we want to use for this.

Copy link
Collaborator

@gadomski gadomski left a comment

Choose a reason for hiding this comment

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

Makes sense to me as a low-level, but we'll want some sort of "resolver generator" for the most common patterns?

let options = DuckDbOptionsBuilder::new().struct_field("assets").build();
expr.to_ducksql_with_options(options);

The resolver would then do whatever transformations necessary to turn properties that start with assets into the appropriately-quoted dot notation.

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