@narrative.io/data-collaboration-sdk-ts 2.43.0 → 2.44.0
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.
- package/build/nql/NqlBuilder.js +3 -0
- package/package.json +1 -1
package/build/nql/NqlBuilder.js
CHANGED
|
@@ -122,6 +122,8 @@ function compileTableRefs(tables) {
|
|
|
122
122
|
return aliased("narrative.rosetta_stone", table.as, false);
|
|
123
123
|
case "raw_table":
|
|
124
124
|
return aliased(table.nql, table.as, false);
|
|
125
|
+
case "placeholder":
|
|
126
|
+
return compilePlaceholder(table);
|
|
125
127
|
default:
|
|
126
128
|
throw new Error("unreachable");
|
|
127
129
|
}
|
|
@@ -358,6 +360,7 @@ export function compilePlaceholder(n) {
|
|
|
358
360
|
case "boolean_literal":
|
|
359
361
|
case "timestamp_literal":
|
|
360
362
|
case "column":
|
|
363
|
+
case "table":
|
|
361
364
|
return `{{${n.identifier}}}`;
|
|
362
365
|
default:
|
|
363
366
|
throw new Error("unsupported placeholder");
|