Skip to content

Conversation

Maxxen
Copy link
Member

@Maxxen Maxxen commented Mar 28, 2024

This makes it possible to avoid getting crazy query locations from e.g. empty refs - if you can live with stripping the parse tree from other default values.

Not sure if this breaks forwards-compatability given that empty query locations aren't serialized anymore in the binary serialization, but I don't think we binary serialize parse trees anyway?

@Mytherin
Copy link
Collaborator

Thanks! LGTM. We do serialize optional_idx as part of the (Parsed) Expression since v0.10.0, but there is also an explicit default value specified to deal with reading databases from v0.9.2 that do not have this property, see e.g. here. As a result this should not break forwards compatibility in any way (in fact it should slightly improve it since we omit the value in more cases now).

@Mytherin Mytherin merged commit 43677ea into duckdb:main Mar 29, 2024
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 30, 2024
Merge pull request duckdb/duckdb#11405 from Maxxen/more-serialization
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