szehon-ho commented on code in PR #6889:
URL: https://github.com/apache/iceberg/pull/6889#discussion_r1116322789
##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/SparkTableUtil.java:
##########
@@ -534,7 +534,7 @@ private static void importUnpartitionedSparkTable(
.createDataset(Lists.transform(files, f ->
f.path().toString()), Encoders.STRING())
.toDF("file_path");
Dataset<Row> existingFiles =
- loadMetadataTable(spark, targetTable, MetadataTableType.ENTRIES);
+ loadMetadataTable(spark, targetTable,
MetadataTableType.ENTRIES).filter("status!=2");
Review Comment:
@dramaticlly sorry for all the nit pick comments, but can we do "status !=
2" for readability (spaces between).
Ref: Javadoc for Dataset.filter():
https://spark.apache.org/docs/2.4.1/api/java/org/apache/spark/sql/Dataset.html#filter-org.apache.spark.sql.Column-
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]