@malloydata/render 0.0.127 → 0.0.128-dev240311005120

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.
@@ -5112,7 +5112,6 @@ ${hackSplitComment}
5112
5112
  this.supportsQualify = false;
5113
5113
  this.supportsNesting = true;
5114
5114
  this.supportsPipelinesInViews = false;
5115
- this.supportsArraysInData = false;
5116
5115
  }
5117
5116
  // don't mess with the table pathing.
5118
5117
  quoteTablePath(tablePath) {
@@ -5154,7 +5153,7 @@ ${hackSplitComment}
5154
5153
  }
5155
5154
  sqlUnnestAlias(source3, alias, _fieldList, _needDistinctKey, isArray2, _isInNestedPipeline) {
5156
5155
  if (isArray2) {
5157
- throw new Error("not implemented yet");
5156
+ return `,LATERAL FLATTEN(INPUT => ${source3}) AS ${alias}_1, LATERAL (SELECT ${alias}_1.INDEX, object_construct('value', ${alias}_1.value) as value ) as ${alias}`;
5158
5157
  } else {
5159
5158
  return `LEFT JOIN LATERAL FLATTEN(INPUT => ifnull(${source3},[1])) AS ${alias}`;
5160
5159
  }