Skip to content
Merged
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 @@ -40,8 +40,10 @@ void temporaryLiteralInputsSurviveNativeCalls() throws Exception {
List<String> command = new ArrayList<>();
command.add(Path.of(System.getProperty("java.home"), "bin", "java").toString());
command.addAll(List.of(
"-Xms32m",
"-Xmx32m",
// The GC thread below forces collections. The heap must still hold the cleanables an optimized
// native library lets the loop create faster than the Cleaner thread releases them.
"-Xms256m",
"-Xmx256m",
"-Xbatch",
"-XX:-TieredCompilation",
"-XX:CompileThreshold=100",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@ void readsMissingColumnsWithCodegen() {
.mode(SaveMode.Append)
.save(output.toString());

Dataset<Row> data =
spark.read().format("vortex").load(output.toString()).orderBy("id");
// Only a merged schema has the second file's column.
Dataset<Row> data = spark.read()
.format("vortex")
.option("vortex.mergeSchema", "true")
.load(output.toString())
.orderBy("id");
assertTrue(plan(data).contains("Batched: true"), plan(data));
List<Row> rows = data.collectAsList();
assertEquals(2, rows.size());
Expand Down
Loading