-
Notifications
You must be signed in to change notification settings - Fork 206
Fix PPL CalciteException for non-ASCII string literals (e.g. Chinese characters) #5504
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
Open
gingeekrishna
wants to merge
6
commits into
opensearch-project:main
Choose a base branch
from
gingeekrishna:fix/21880-ppl-non-ascii-string-literal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8c6a944
Fix PPL CalciteException for non-ASCII string literals (e.g. Chinese)
gingeekrishna 2afb328
Address review feedback on non-ASCII literal regression test
gingeekrishna 4c7bf03
Fix string concat incompatibility from UTF-8 charset on literals
gingeekrishna a4db157
Fix charset mismatch by overriding getDefaultCharset() with UTF-8
gingeekrishna 997cd2b
Fix charset annotation in plan strings via saffron.properties
gingeekrishna c7521f7
fix(calcite): set UTF-8 charset system properties at plugin startup
gingeekrishna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Shift Calcite's default charset from ISO-8859-1 to UTF-8 so that: | ||
| # 1. Non-ASCII PPL string literals (Chinese, Arabic, etc.) are accepted without error. | ||
| # 2. Plan-string representations (used in unit-test assertions) are unchanged, | ||
| # because Calcite suppresses the CHARACTER SET annotation and _charset prefix | ||
| # whenever the charset matches this "default" value. | ||
| calcite.default.charset=UTF-8 | ||
| calcite.default.collation.name=UTF-8$en_US |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.