Skip to content

Conversation

nameisbhaskar
Copy link
Contributor

While extracting the table schemas from the create_statements file, we use a prefix-based check to identify whether a line has a column information or a constraint. This check fails in case the prefix of the column name matches. e.g. a line beginning with "CHECK" is a constraint. But, if the column name is "checksum", this matches and causes an issue to identify the column as a constraint. To fix this, the check is changed to be "CHECK ". A TODO is added to use sql parser instead of this string match and regex logics.

Release Note: None
Epic: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nameisbhaskar nameisbhaskar marked this pull request as ready for review October 9, 2025 15:50
@nameisbhaskar nameisbhaskar requested a review from a team as a code owner October 9, 2025 15:50
@nameisbhaskar nameisbhaskar requested review from srosenberg, golgeek and shailendra-patel and removed request for a team, srosenberg and golgeek October 9, 2025 15:50
While extracting the table schemas from the create_statements file, we use a prefix-based check to identify whether a line has a column information or a constraint. This check fails in case the prefix of the column name matches. e.g.
a line beginning with "CHECK" is a constraint. But, if the column name is "checksum", this matches and causes an issue to identify the column as a constraint. To fix this, the check is changed to be "CHECK ". A TODO is added to use sql parser instead of this string match and regex logics.

Release Note: None
Epic: None
@nameisbhaskar nameisbhaskar force-pushed the fix_geberator_constraint branch from ad89f22 to 6eb398e Compare October 9, 2025 18:38
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