-
Notifications
You must be signed in to change notification settings - Fork 760
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
fix(query): fix values parser in skip_to_next_row #6565
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@@ -184,8 +184,15 @@ pub fn skip_to_next_row<R: BufferRead>( | |||
let c = buffer[it]; | |||
reader.consume(it + 1); | |||
|
|||
if it == 0 && escaped { |
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.
(
and )
can't be escaped.
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.
escaped
just works for '
.
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.
if the buffer is \(
, this loop will continue, balance += 1
will not executed.
LGTM |
How can we guarantee it sync? cc @sundy-li |
Oh, I did not notice there is |
Yes, this is awful. Maybe we better remove v1 as soon as possible. |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Summary about this PR
Fix values parser in skip_to_next_row, If
'
is escaped by\
, it will continue to search a valid row.Fixes #issue