You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "waywtdcc (via GitHub)" <gi...@apache.org> on 2023/08/11 00:29:25 UTC

[GitHub] [incubator-paimon] waywtdcc commented on a diff in pull request #1696: [Spark][Java api]Support truncate table

waywtdcc commented on code in PR #1696:
URL: https://github.com/apache/incubator-paimon/pull/1696#discussion_r1290796498


##########
paimon-core/src/main/java/org/apache/paimon/table/AbstractFileStoreTable.java:
##########
@@ -82,6 +86,7 @@ public abstract class AbstractFileStoreTable implements FileStoreTable {
     protected final TableSchema tableSchema;
     protected final Lock.Factory lockFactory;
     @Nullable protected final MetastoreClient.Factory metastoreClientFactory;
+    private Set<Object> metaPaths = new HashSet<>(Arrays.asList("manifest", "schema"));

Review Comment:
   I think the truncate table should be a brand new table that does not contain historical data. For example, hudi directly deletes data files, which has much higher performance than [#1459](https://github.com/apache/incubator-paimon/pull/1459)  per data traversal



-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org