aokolnychyi 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_r322123216
########## 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() Review comment: What about simply constructing `TableIdentifier`? For example, `new TableIdentifier("unpartitioned_table")`? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org