hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject [2/3] hive git commit: HIVE-12717 : Enabled to accept quoting of all character backslash qooting mechanism to json_tuple UDTF (Cazen Lee, reviewed by Sergey Shelukhin)
Date Mon, 04 Jan 2016 20:13:38 GMT
HIVE-12717 : Enabled to accept quoting of all character backslash qooting mechanism to json_tuple
UDTF (Cazen Lee, reviewed by Sergey Shelukhin)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/31c188ac
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/31c188ac
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/31c188ac

Branch: refs/heads/branch-2.0
Commit: 31c188acd3956a031bf56658ce83867a757df641
Parents: c861bbe
Author: Sergey Shelukhin <sershe@apache.org>
Authored: Mon Jan 4 12:12:36 2016 -0800
Committer: Sergey Shelukhin <sershe@apache.org>
Committed: Mon Jan 4 12:12:46 2016 -0800

----------------------------------------------------------------------
 .../apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/31c188ac/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java
index b710015..5fa62a2 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java
@@ -57,6 +57,8 @@ public class GenericUDTFJSONTuple extends GenericUDTF {
   static {
     // Allows for unescaped ASCII control characters in JSON values
     JSON_FACTORY.enable(Feature.ALLOW_UNQUOTED_CONTROL_CHARS);
+    // Enabled to accept quoting of all character backslash qooting mechanism
+    JSON_FACTORY.enable(Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER);
   }
   private static final ObjectMapper MAPPER = new ObjectMapper(JSON_FACTORY);
   private static final JavaType MAP_TYPE = TypeFactory.fromClass(Map.class);


Mime
View raw message