-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[CALCITE-3130]Implement JSON_UNQUOTE, JSON_QUOTE function #1272
base: main
Are you sure you want to change the base?
Conversation
83a36fd
to
02a481d
Compare
02a481d
to
3598eee
Compare
@XuQianJin-Stars Could you resolve the merge conflicts here? |
3598eee
to
1d02eb1
Compare
hi @michaelmior I rebase this pr now, maybe the CI is broken. |
* | ||
* <p>Default value is "" from | ||
* {@link System#getProperty(String)}. */ | ||
SQL_MODE("sqlMode", String.class); |
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.
SQL mode appears to be a MySQL-specific thing. Could you explain why it's needed here?
@XuQianJin-Stars Thanks! The master branch seems to be failing on the same test and is unrelated to your changes. |
hi @michaelmior Because the |
The semantics don't really match since backslash escape sequences are not disabled everywhere as they are in MySQL. Does the disabling of escape sequences really need to be supported? It seems like SQLite and SQL Server both don't have this functionality (although they have similar methods for quoting JSON strings). If we really do need to support it, I think we should find a cleaner way to configure things. |
hi @michaelmior So let's not support the disabling of the escape sequence first, and when I think of a more cleaner way to configure things, I will add the disable of the escape sequence. |
80f411d
to
ca27fe9
Compare
49cb002
to
8768a23
Compare
This pull request for issue [CALCITE-3130]https://issues.apache.org/jira/browse/CALCITE-3130.