-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address inconsistency in single quote normalization in JSON reader (#…
…15324) This PR addresses the inconsistency in processing single quotes within a quoted string in the single quote normalizer. In the current implementation, when we have an escaped single quote within a single quoted string, the normalizer removes the backslash escape on converting the string to double quotes. However, the normalizer retains the contents of double quoted strings as-is i.e. if there are escaped single quotes within a double quoted string, the backslash character is retained in the output. We address this inconsistency by removing the escape character for single quotes in all double quoted string in the output. Tackles #15303 to mimic Spark behavior. Authors: - Shruti Shivakumar (https://github.com/shrshi) Approvers: - Bradley Dice (https://github.com/bdice) - Elias Stehle (https://github.com/elstehle) - Vukasin Milovanovic (https://github.com/vuule) URL: #15324
- Loading branch information
Showing
2 changed files
with
61 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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 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