chenjunjiedada commented on a change in pull request #830:
URL: https://github.com/apache/iceberg/pull/830#discussion_r432282766
##########
File path:
spark/src/test/java/org/apache/iceberg/spark/source/TestSparkTableUtil.java
##########
@@ -199,4 +204,41 @@ public void testImportAsHiveTable() throws Exception {
long count2 = spark.read().format("iceberg").load(DB_NAME +
".test_partitioned_table").count();
Assert.assertEquals("three values ", 3, count2);
}
+
+ @Test
+ public void testImportWithIncompatibleSchema() throws Exception {
+ spark.table(qualifiedTableName).write().mode("overwrite").format("parquet")
+ .saveAsTable("original_table");
+
+ // The field is different so that it will project with name mapping
Review comment:
Done.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]