You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gobblin.apache.org by ap...@apache.org on 2021/07/15 23:09:46 UTC

[gobblin] branch master updated: [GOBBLIN-1484] Fix typo in HiveMetadataWriter (#3332)

This is an automated email from the ASF dual-hosted git repository.

aplex 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 9ed315a  [GOBBLIN-1484] Fix typo in HiveMetadataWriter (#3332)
9ed315a is described below

commit 9ed315aab6e08b964e1ab1043d6c814ac30984f5
Author: Zihan Li <zi...@linkedin.com>
AuthorDate: Thu Jul 15 16:09:37 2021 -0700

    [GOBBLIN-1484] Fix typo in HiveMetadataWriter (#3332)
    
    Two separate PRs modified the same file, as a result build on the master
    branch got broken. This fix should address it.
---
 .../main/java/org/apache/gobblin/hive/writer/HiveMetadataWriter.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/writer/HiveMetadataWriter.java b/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/writer/HiveMetadataWriter.java
index 55fcd2b..88adce0 100644
--- a/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/writer/HiveMetadataWriter.java
+++ b/gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/writer/HiveMetadataWriter.java
@@ -299,8 +299,8 @@ public class HiveMetadataWriter implements MetadataWriter {
 
   private String fetchSchemaFromTable(String dbName, String tableName) throws IOException {
     String tableKey = tableNameJoiner.join(dbName, tableName);
-    if (lastestSchemaMap.containsKey(tableKey)) {
-      return lastestSchemaMap.get(tableKey);
+    if (latestSchemaMap.containsKey(tableKey)) {
+      return latestSchemaMap.get(tableKey);
     }
     Optional<HiveTable> table = hiveRegister.getTable(dbName, tableName);
     return table.isPresent()? table.get().getSerDeProps().getProp(