-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update separator parsing in group_concat #1693
Conversation
aed792d
to
29f92ce
Compare
11ce492
to
8fbebfa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than push sqlparser struct into the GroupConcat expression implementation, follow the same pattern used elsewhere: in parse.go, translate the sqlparser version of the AST into a string and give it to the GroupConcat expression. Isolate the concern of understanding sqlparser's version of the AST to the boundary layer, which is parse.go. parse.go's job is to turn that representation into one used by GMS, which should be a simple separator string (which could be the empty string), which is always printed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Updates separator parsing for group_concat to use new
Separator
struct. This change is needed to allow''
as a separator.fixes: dolthub/dolt#5570
related: dolthub/vitess#230