This is an automated email from the ASF dual-hosted git repository.
suvasude pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gobblin.git
The following commit(s) were added to refs/heads/master by this push:
new 6036c75 [GOBBLIN-1531] ad-hoc fix for NPE in hive registration (#3383)
6036c75 is described below
commit 6036c75f8a7dd2749bd943e5909c482d9462bb35
Author: Zihan Li <[email protected]>
AuthorDate: Thu Sep 2 11:34:13 2021 -0700
[GOBBLIN-1531] ad-hoc fix for NPE in hive registration (#3383)
---
.../src/main/java/org/apache/gobblin/hive/orc/HiveOrcSerDeManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/orc/HiveOrcSerDeManager.java
b/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/orc/HiveOrcSerDeManager.java
index eeed3ef..9a7376e 100644
---
a/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/orc/HiveOrcSerDeManager.java
+++
b/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/orc/HiveOrcSerDeManager.java
@@ -276,7 +276,7 @@ public class HiveOrcSerDeManager extends HiveSerDeManager {
props.getProp(AvroSerdeUtils.AvroTableProperties.SCHEMA_LITERAL.getPropName()));
if (!Strings.isNullOrEmpty(schemaString)) {
Schema avroSchema =
- new
Schema.Parser().parse(props.getProp(AvroSerdeUtils.AvroTableProperties.SCHEMA_LITERAL.getPropName()));
+ new Schema.Parser().parse(schemaString);
TypeDescription orcSchema =
AvroOrcSchemaConverter.getOrcSchema(avroSchema);
schema = TypeInfoUtils.getTypeInfoFromObjectInspector(
TypeDescriptionToObjectInspectorUtil.getObjectInspector(orcSchema));