Skip to content

Conversation

@jayakarthik-jk
Copy link
Contributor

Fix of #219

Previously, the split function would incorrectly split strings containing delimiters inside single quotes. this causes issue when splitting columns with default value that has ',' within it. Now, delimiters within single quotes are ignored, ensuring proper splitting behavior.

Previously, the split function would incorrectly split strings containing delimiters inside single quotes.
this causes issue when splitting columns with default value that has ',' within it.
Now, delimiters within single quotes are ignored, ensuring proper splitting behavior.
Copy link
Contributor Author

@jayakarthik-jk jayakarthik-jk left a comment

Choose a reason for hiding this comment

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

generated the fix using copilot.

@bakwc
Copy link
Owner

bakwc commented Nov 21, 2025

Thanks a lot for the PR. Could you please also generate a unit-test for this function?

- Test ignoring delimiters inside single quotes
- Test ignoring delimiters inside parentheses
- Test realistic SQL scenarios including ENUM, SET, DEFAULT values
- Cover edge cases like empty strings and nested structures
- All 14 tests passing
@jayakarthik-jk
Copy link
Contributor Author

Done, generated the unit tests.

@bakwc bakwc merged commit 8144889 into bakwc:master Nov 24, 2025
1 check passed
@jayakarthik-jk jayakarthik-jk deleted the fix/split-high-level-ignore-quoted-delimiter branch November 24, 2025 17:28
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