Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class LanceArrowWriter extends ArrowReader {
private final int batchSize;

@GuardedBy("monitor")
private volatile boolean finished;
private volatile boolean finished = false;

private final AtomicLong totalBytesRead = new AtomicLong();
private com.lancedb.lance.spark.arrow.LanceArrowWriter arrowWriter = null;
Expand Down Expand Up @@ -70,8 +70,8 @@ void write(InternalRow row) {
}

void setFinished() {
loadToken.release();
finished = true;
loadToken.release();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.apache.spark.sql.types.DataTypes;
import org.apache.spark.sql.types.StructField;
import org.apache.spark.sql.types.StructType;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.util.Collections;
Expand All @@ -35,8 +34,6 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

// TODO: Flaky in CI, needs to fix
@Disabled
public class LanceArrowWriterTest {
@Test
public void test() throws Exception {
Expand Down