@narrative.io/data-collaboration-sdk-ts 0.0.154 → 0.0.155
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 +10 -1
- package/package.json +1 -1
package/build/nql/NqlBuilder.js
CHANGED
|
@@ -200,7 +200,16 @@ export function compileExpression(n) {
|
|
|
200
200
|
return unreachable(n);
|
|
201
201
|
}
|
|
202
202
|
function compileAttributeRef(column, as) {
|
|
203
|
-
|
|
203
|
+
const segments = column.split(".");
|
|
204
|
+
const quotedSegments = segments.reduce((acc, segment, index) => {
|
|
205
|
+
if (index === 0) {
|
|
206
|
+
return `${acc}${quote(segment)}`;
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return `${acc}.${quote(segment)}`;
|
|
210
|
+
}
|
|
211
|
+
}, "");
|
|
212
|
+
return aliased(`narrative.rosetta_stone.${quotedSegments}`, as);
|
|
204
213
|
}
|
|
205
214
|
function compileBetween(operand, lower, upper, as) {
|
|
206
215
|
const operandNql = compileExpression(operand);
|