Skip to content

Commit

Permalink
Fixup ordering in parquet join test
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Sep 10, 2024
1 parent b31e5d7 commit f5835f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/duckdb-wasm/test/filesystem.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function testFilesystem(
SELECT students.matrnr, vorlesungen.titel
FROM parquet_scan('studenten.parquet') students
INNER JOIN parquet_scan('hoeren.parquet') hoeren ON (students.matrnr = hoeren.matrnr)
INNER JOIN parquet_scan('vorlesungen.parquet') vorlesungen ON (vorlesungen.vorlnr = hoeren.vorlnr);
INNER JOIN parquet_scan('vorlesungen.parquet') vorlesungen ON (vorlesungen.vorlnr = hoeren.vorlnr) ORDER BY ALL;
`);
const batches = [];
for await (const batch of result) {
Expand All @@ -105,18 +105,18 @@ export function testFilesystem(
});
}
expect(flat).toEqual([
{ matrnr: 25403, titel: 'Glaube und Wissen' },
{ matrnr: 26120, titel: 'Grundzüge' },
{ matrnr: 27550, titel: 'Grundzüge' },
{ matrnr: 27550, titel: 'Logik' },
{ matrnr: 28106, titel: 'Ethik' },
{ matrnr: 28106, titel: 'Wissenschaftstheorie' },
{ matrnr: 28106, titel: 'Bioethik' },
{ matrnr: 28106, titel: 'Der Wiener Kreis' },
{ matrnr: 29120, titel: 'Grundzüge' },
{ matrnr: 28106, titel: 'Ethik' },
{ matrnr: 28106, titel: 'Wissenschaftstheorie' },
{ matrnr: 29120, titel: 'Ethik' },
{ matrnr: 29120, titel: 'Grundzüge' },
{ matrnr: 29120, titel: 'Mäeutik' },
{ matrnr: 29555, titel: 'Glaube und Wissen' },
{ matrnr: 25403, titel: 'Glaube und Wissen' },
]);
});
});
Expand Down

0 comments on commit f5835f8

Please sign in to comment.