@malloydata/malloy
Advanced tools
Comparing version 0.0.225-dev250110175536 to 0.0.225-dev250111002123
@@ -148,3 +148,3 @@ "use strict"; | ||
if (isArray) { | ||
return `,LATERAL FLATTEN(INPUT => ${source}) AS ${alias}_1, LATERAL (SELECT ${alias}_1.INDEX, object_construct('value', ${alias}_1.value) as value ) as ${as}`; | ||
return `LEFT JOIN lateral flatten(input => ${source}) as ${as}`; | ||
} | ||
@@ -201,5 +201,7 @@ else { | ||
} | ||
else if (parentType === 'array[scalar]' || | ||
parentType === 'array[record]') { | ||
const arrayRef = `"${parentAlias}".value:${sqlName}`; | ||
else if (parentType.startsWith('array')) { | ||
let arrayRef = `"${parentAlias}".value`; | ||
if (parentType === 'array[record]') { | ||
arrayRef += `:${sqlName}`; | ||
} | ||
switch (childType) { | ||
@@ -206,0 +208,0 @@ case 'record': |
{ | ||
"name": "@malloydata/malloy", | ||
"version": "0.0.225-dev250110175536", | ||
"version": "0.0.225-dev250111002123", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "exports": { |
79009
3245147