atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shweth...@apache.org
Subject [3/3] incubator-atlas git commit: ATLAS-933 Test failure: HiveHookIT.testInsertIntoTable (shwethags)
Date Wed, 22 Jun 2016 06:02:05 GMT
ATLAS-933 Test failure: HiveHookIT.testInsertIntoTable (shwethags)


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/92c80ad1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/92c80ad1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/92c80ad1

Branch: refs/heads/0.7-incubating
Commit: 92c80ad1592ad4764d91b7f36150d3857246b6de
Parents: ee8a215
Author: Shwetha GS <sshivalingamurthy@hortonworks.com>
Authored: Wed Jun 22 11:28:16 2016 +0530
Committer: Shwetha GS <sshivalingamurthy@hortonworks.com>
Committed: Wed Jun 22 11:28:16 2016 +0530

----------------------------------------------------------------------
 .../java/org/apache/atlas/hive/hook/HiveHookIT.java    | 13 ++++---------
 release-log.txt                                        |  1 +
 2 files changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/92c80ad1/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
----------------------------------------------------------------------
diff --git a/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java b/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
index c6a7965..2464646 100755
--- a/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
+++ b/addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
@@ -28,7 +28,6 @@ import org.apache.atlas.fs.model.FSDataTypes;
 import org.apache.atlas.hive.bridge.HiveMetaStoreBridge;
 import org.apache.atlas.hive.model.HiveDataModelGenerator;
 import org.apache.atlas.hive.model.HiveDataTypes;
-import org.apache.atlas.hive.rewrite.HiveASTRewriter;
 import org.apache.atlas.typesystem.Referenceable;
 import org.apache.atlas.typesystem.Struct;
 import org.apache.atlas.typesystem.persistence.Id;
@@ -63,7 +62,6 @@ import java.text.ParseException;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
-import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.SortedMap;
@@ -73,7 +71,6 @@ import static org.apache.atlas.AtlasClient.NAME;
 import static org.apache.atlas.hive.hook.HiveHook.entityComparator;
 import static org.apache.atlas.hive.hook.HiveHook.getProcessQualifiedName;
 import static org.apache.atlas.hive.hook.HiveHook.lower;
-import static org.apache.atlas.hive.hook.HiveHook.normalize;
 import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.assertNotNull;
 import static org.testng.Assert.assertTrue;
@@ -526,14 +523,12 @@ public class HiveHookIT {
     public void testInsertIntoTable() throws Exception {
         String tableName = createTable();
         String insertTableName = createTable();
-        String query =
-                "insert into " + insertTableName + " select id, name from " + tableName;
-
-        runCommand(query);
+        assertTableIsRegistered(DEFAULT_DB, tableName);
+        assertTableIsRegistered(DEFAULT_DB, insertTableName);
 
-        String inputTableId = assertTableIsRegistered(DEFAULT_DB, tableName);
-        String opTableId = assertTableIsRegistered(DEFAULT_DB, insertTableName);
+        String query = "insert into " + insertTableName + " select id, name from " + tableName;
 
+        runCommand(query);
         List<Entity> inputs = getInputs(tableName, Entity.Type.TABLE);
         List<Entity> outputs = getOutputs(insertTableName, Entity.Type.TABLE);
         ((WriteEntity)outputs.get(0)).setWriteType(WriteEntity.WriteType.INSERT);

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/92c80ad1/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 54a733c..b14238f 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -31,6 +31,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file
(dosset
 ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via
shwethags)
 
 ALL CHANGES:
+ATLAS-933 Test failure: HiveHookIT.testInsertIntoTable (shwethags)
 ATLAS-856 Lazy-load type cache provider (dkantor via shwethags)
 ATLAS-931 Delete entities fails when hard delete is configured (dkantor via sumasai)
 ATLAS-932 UI: 'create tag' button does not work (mneethiraj via sumasai)


Mime
View raw message