Skip to content

Commit

Permalink
except duckdb
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoy-googly-moogly committed Nov 29, 2024
1 parent 2e51edd commit 80c7c18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/malloy/src/dialect/duckdb/duckdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,11 @@ export class DuckDBDialect extends PostgresBase {
return `DATE_SUB('${df.units}', ${lVal}, ${rVal})`;
}

sqlLiteralArray(lit: ArrayLiteralNode): string {
const array = lit.kids.values.map(val => val.sql);
return '[' + array.join(',') + ']';
}

sqlLiteralRecord(lit: RecordLiteralNode): string {
const pairs = Object.entries(lit.kids).map(
([propName, propVal]) =>
Expand Down

0 comments on commit 80c7c18

Please sign in to comment.