This is an automated email from the ASF dual-hosted git repository.

mblow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git

commit eb38c399d391af8c726400b532c3678347503006
Merge: b9976ee321 1fc8cbb17b
Author: Michael Blow <[email protected]>
AuthorDate: Thu Sep 21 11:50:49 2023 -0400

    Merge branch 'gerrit/trinity' into 'master'
    
    Change-Id: I7ad553442540fa98493601de3de933a09ccd85f2

 .../operators/LSMPrimaryUpsertOperatorNodePushable.java        | 10 +++++++---
 .../operators/LSMSecondaryUpsertOperatorNodePushable.java      |  5 +++++
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --cc 
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMPrimaryUpsertOperatorNodePushable.java
index 6b9d3ebaf2,3b8ee68370..113a40abf4
--- 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMPrimaryUpsertOperatorNodePushable.java
+++ 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/LSMPrimaryUpsertOperatorNodePushable.java
@@@ -342,8 -282,9 +342,10 @@@ public class LSMPrimaryUpsertOperatorNo
  
                  @Override
                  public void frameCompleted() throws HyracksDataException {
-                     //TODO: mixed-frame vs frame-per-storage-partition
-                     appender.write(writer, true);
+                     if (appender.getTupleCount() > 0) {
++                        //TODO: mixed-frame vs frame-per-storage-partition
+                         appender.write(writer, true);
+                     }
                      callback.frameCompleted();
                  }
  

Reply via email to