JingsongLi commented on code in PR #1400:
URL: https://github.com/apache/incubator-paimon/pull/1400#discussion_r1234857143
##########
paimon-core/src/main/java/org/apache/paimon/operation/KeyValueFileStoreWrite.java:
##########
@@ -174,6 +175,11 @@ protected MergeTreeWriter createWriter(
restoreIncrement);
}
+ @Override
+ public void optimizeForBatch(boolean isBatch) {
Review Comment:
inStreamingMode(Boolean isStreamMode)
##########
paimon-core/src/main/java/org/apache/paimon/operation/KeyValueFileStoreWrite.java:
##########
@@ -161,7 +162,7 @@ protected MergeTreeWriter createWriter(
CompactManager compactManager =
createCompactManager(partition, bucket, compactStrategy,
compactExecutor, levels);
return new MergeTreeWriter(
- bufferSpillable(),
+ bufferSpillable() || forceSpillable,
Review Comment:
Add isStreaming to `options.writeBufferSpillable` method.
```
public boolean writeBufferSpillable(boolean usingObjectStore, boolean
isStreaming) {
return
options.getOptional(WRITE_BUFFER_SPILLABLE).orElse(usingObjectStore ||
isStreaming);
}
```
--
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]