Skip to content

Fix: quote the table produced by _resolve_table#3494

Merged
georgesittas merged 2 commits intomainfrom
jo/fix_resolve_table
Dec 10, 2024
Merged

Fix: quote the table produced by _resolve_table#3494
georgesittas merged 2 commits intomainfrom
jo/fix_resolve_table

Conversation

@georgesittas
Copy link
Contributor

During the recent refactor, where this_model changed from a str into a Table instance, I missed the fact that we were previously quoting it, so I didn't match that behavior.

We discovered that this led to an issue where the resolved table for this_model would be normalized twice, if e.g. it was interpolated in a string, and hence generated as a table with unquoted identifiers.

This PR fixes the above issue by having _resolve_table quote the table after resolving it, to match the semantics of _resolve_tables.

@georgesittas georgesittas requested review from a team and izeigerman December 10, 2024 11:39
@georgesittas georgesittas force-pushed the jo/fix_resolve_table branch 2 times, most recently from a39093f to f445e3d Compare December 10, 2024 11:48
@georgesittas georgesittas merged commit 6b13cf7 into main Dec 10, 2024
@georgesittas georgesittas deleted the jo/fix_resolve_table branch December 10, 2024 20:21
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