@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.
@@ -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
@@ -923,4 +923,5 @@ describe('m3/m4 source query sentences', () => {
923
923
  `).toTranslate();
924
924
  });
925
925
  });
926
+ test('non breaking space in source', () => expect('source:\u00a0z\u00a0is\u00a0a').toParse());
926
927
  //# sourceMappingURL=parse.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.name === 'standardsql') {
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.name === 'standardsql' &&
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.94-dev231006230622",
3
+ "version": "0.0.94-dev231011004826",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",