@malloydata/malloy 0.0.94-dev231006230622 → 0.0.94-dev231011004826
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/dist/dialect/dialect.d.ts +1 -0
- package/dist/dialect/dialect.js +7 -0
- package/dist/dialect/standardsql/standardsql.d.ts +1 -0
- package/dist/dialect/standardsql/standardsql.js +1 -0
- package/dist/lang/lib/Malloy/MalloyLexer.js +845 -844
- package/dist/lang/test/literals.spec.js +1 -0
- package/dist/lang/test/parse.spec.js +1 -0
- package/dist/model/malloy_query.js +2 -2
- package/package.json +1 -1
|
@@ -269,6 +269,7 @@ describe('literals', () => {
|
|
|
269
269
|
const x = new test_translator_1.BetaExpression('"""x"""');
|
|
270
270
|
expect(x).toParse();
|
|
271
271
|
});
|
|
272
|
+
test('a string containing a tab', () => expect((0, test_translator_1.expr) `'\t'`).toParse());
|
|
272
273
|
});
|
|
273
274
|
});
|
|
274
275
|
//# sourceMappingURL=literals.spec.js.map
|
|
@@ -1476,7 +1476,7 @@ class QueryQuery extends QueryField {
|
|
|
1476
1476
|
for (const expr of e) {
|
|
1477
1477
|
if ((0, malloy_types_1.isFunctionCallFragment)(expr) &&
|
|
1478
1478
|
(0, malloy_types_1.expressionIsAnalytic)(expr.overload.returnType.expressionType) &&
|
|
1479
|
-
this.parent.dialect.
|
|
1479
|
+
this.parent.dialect.cantPartitionWindowFunctionsOnExpressions) {
|
|
1480
1480
|
// force the use of a lateral_join_bag
|
|
1481
1481
|
resultStruct.root().isComplexQuery = true;
|
|
1482
1482
|
resultStruct.root().queryUsesPartitioning = true;
|
|
@@ -2060,7 +2060,7 @@ class QueryQuery extends QueryField {
|
|
|
2060
2060
|
if (fi.fieldUsage.type === 'result') {
|
|
2061
2061
|
const exp = fi.getSQL();
|
|
2062
2062
|
if (isScalarField(fi.f)) {
|
|
2063
|
-
if (this.parent.dialect.
|
|
2063
|
+
if (this.parent.dialect.cantPartitionWindowFunctionsOnExpressions &&
|
|
2064
2064
|
this.rootResult.queryUsesPartitioning) {
|
|
2065
2065
|
// BigQuery can't partition aggregate function except when the field has no
|
|
2066
2066
|
// expression. Additionally it can't partition by floats. We stuff expressions
|