You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/09/09 09:01:28 UTC

[GitHub] [incubator-iceberg] chenjunjiedada commented on a change in pull request #461: Add a unit test for testing import as hive table for importSparkTable

chenjunjiedada commented on a change in pull request #461: Add a unit test for testing import as hive table for importSparkTable
URL: https://github.com/apache/incubator-iceberg/pull/461#discussion_r322133165
 
 

 ##########
 File path: spark/src/test/java/org/apache/iceberg/spark/source/TestSparkTableUtil.java
 ##########
 @@ -162,4 +163,33 @@ public void testImportUnpartitionedTable() throws Exception {
     long count = spark.read().format("iceberg").load(location.toString()).count();
     Assert.assertEquals("three values ", 3, count);
   }
+
+  @Test
+  public void testImportAsHiveTable() throws Exception {
+    spark.table(qualifiedTableName).write().mode("overwrite").format("parquet")
+            .saveAsTable("unpartitioned_table");
+    TableIdentifier source = spark.sessionState().sqlParser()
+            .parseTableIdentifier("unpartitioned_table");
+
+    HiveCatalog catalog = new HiveCatalog(spark.sparkContext().hadoopConfiguration());
 
 Review comment:
   Got it. Thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org