@malloydata/malloy 0.0.128-dev240309204213 → 0.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,6 @@ export declare class SnowflakeDialect extends Dialect {
22
22
  supportsQualify: boolean;
23
23
  supportsNesting: boolean;
24
24
  supportsPipelinesInViews: boolean;
25
- supportsArraysInData: boolean;
26
25
  quoteTablePath(tablePath: string): string;
27
26
  sqlGroupSetTable(groupSetCount: number): string;
28
27
  sqlAnyValue(groupSet: number, fieldName: string): string;
@@ -94,7 +94,6 @@ class SnowflakeDialect extends dialect_1.Dialect {
94
94
  this.supportsQualify = false;
95
95
  this.supportsNesting = true;
96
96
  this.supportsPipelinesInViews = false;
97
- this.supportsArraysInData = false;
98
97
  }
99
98
  // don't mess with the table pathing.
100
99
  quoteTablePath(tablePath) {
@@ -146,7 +145,7 @@ class SnowflakeDialect extends dialect_1.Dialect {
146
145
  // } else {
147
146
  // return `LEFT JOIN UNNEST(ARRAY((SELECT AS STRUCT value FROM unnest(${source}) value))) as ${alias}`;
148
147
  // }
149
- throw new Error('not implemented yet');
148
+ return `,LATERAL FLATTEN(INPUT => ${source}) AS ${alias}_1, LATERAL (SELECT ${alias}_1.INDEX, object_construct('value', ${alias}_1.value) as value ) as ${alias}`;
150
149
  }
151
150
  else {
152
151
  // have to have a non empty row or it treats it like an inner join :barf-emoji:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.128-dev240309204213",
3
+ "version": "0.0.128",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",