Skip to content

Conversation

@nicktobey
Copy link
Contributor

Adding extra strings to the end of an enum type doesn't change the values for any of the existing strings. A table rewrite isn't necessary in this case.

If a specific table implementation does need to be rewritten when an enum type changes this way, they can still implement ShouldRewriteTable in order to force a rewrite anyway.

Copy link
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

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

LGTM; not sure if there's a way to test if a query does trigger a rewrite

@nicktobey nicktobey merged commit 729f39b into main Jan 17, 2025
9 checks passed
@nicktobey nicktobey deleted the nicktobey/enum branch January 17, 2025 06:25
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