forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Exported to PR: facebookincubator#9662. TextReader produces incorrect result when the input file contains escaped field delimiter, e.g., it incorrectly recognizes the field "a\,bc" as two fields "a\" and "bc". This happens because configureReaderOptions() doesn't set SerDeOptions::isEscaped according to hiveSplit. In the Java implementation, isEscaped is set to true when the escapedChar field is non-empty (https://github.com/apache/hive/blob/2d855b27d31db6476f18870651db6987816bb5e3/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazySerDeParameters.java#L105-L106). This diff fixes this bug. Reviewed By: Yuhta Differential Revision: D56728664 fbshipit-source-id: c40cd3fc55eb067f21215d82634c640dbfe418ce
- Loading branch information
1 parent
6e253f7
commit 44e9ec1
Showing
2 changed files
with
18 additions
and
2 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