JingsongLi commented on code in PR #1400:
URL: https://github.com/apache/incubator-paimon/pull/1400#discussion_r1240992935
##########
paimon-core/src/main/java/org/apache/paimon/operation/FileStoreWrite.java:
##########
@@ -98,6 +98,15 @@ public interface FileStoreWrite<T> {
List<CommitMessage> prepareCommit(boolean waitCompaction, long
commitIdentifier)
throws Exception;
+ /**
+ * We detect whether it is in batch mode, if so, we do some optimization.
+ *
+ * @param isBatch whether in batch mode
+ */
+ default void isStreamingMode(boolean isBatch) {
Review Comment:
batch or streaming?
##########
paimon-core/src/main/java/org/apache/paimon/operation/KeyValueFileStoreWrite.java:
##########
@@ -161,7 +163,7 @@ protected MergeTreeWriter createWriter(
CompactManager compactManager =
createCompactManager(partition, bucket, compactStrategy,
compactExecutor, levels);
return new MergeTreeWriter(
- bufferSpillable(),
+ bufferSpillable() || isStreamingMode,
Review Comment:
revert
--
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]