@malloydata/malloy 0.0.436 → 0.0.437

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.
@@ -906,11 +906,20 @@ class QueryQuery extends query_node_1.QueryField {
906
906
  }
907
907
  // What a join contributes to the SELECT of a filtered join's subquery: every
908
908
  // column named outside the subquery, and the generated __distinct_key when
909
- // the join needed one.
909
+ // the join needed one. A field is packed under the column it reads, which
910
+ // is how references outside the subquery name it; a `rename:` leaves that
911
+ // different from the name the query knows the field by.
910
912
  joinProjectionFieldList(ji) {
911
913
  const packed = this.packedColumnsByJoin().get(ji.alias);
912
914
  const dialect = ji.queryStruct.dialect;
913
- const fieldList = (0, utils_1.getDialectFieldList)(ji.queryStruct.structDef, dialect).filter(d => packed === null || packed === void 0 ? void 0 : packed.has(d.rawName));
915
+ const fieldList = ji.queryStruct.structDef.fields
916
+ .filter(malloy_types_1.fieldIsIntrinsic)
917
+ .filter(f => packed === null || packed === void 0 ? void 0 : packed.has((0, malloy_types_1.activeName)(f)))
918
+ .map(f => ({
919
+ typeDef: f,
920
+ sqlExpression: dialect.sqlQuoteIdentifier(f.name),
921
+ rawName: f.name,
922
+ }));
914
923
  if (ji.makeUniqueKey) {
915
924
  fieldList.push({
916
925
  typeDef: { type: 'string' },
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MALLOY_VERSION = "0.0.436";
1
+ export declare const MALLOY_VERSION = "0.0.437";
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MALLOY_VERSION = void 0;
4
4
  // generated with 'generate-version-file' script; do not edit manually
5
- exports.MALLOY_VERSION = '0.0.436';
5
+ exports.MALLOY_VERSION = '0.0.437';
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.436",
3
+ "version": "0.0.437",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -51,9 +51,9 @@
51
51
  "generate-version-file": "VERSION=$(npm pkg get version --workspaces=false | tr -d \\\")\necho \"// generated with 'generate-version-file' script; do not edit manually\\nexport const MALLOY_VERSION = '$VERSION';\" > src/version.ts"
52
52
  },
53
53
  "dependencies": {
54
- "@malloydata/malloy-filter": "0.0.436",
55
- "@malloydata/malloy-interfaces": "0.0.436",
56
- "@malloydata/malloy-tag": "0.0.436",
54
+ "@malloydata/malloy-filter": "0.0.437",
55
+ "@malloydata/malloy-interfaces": "0.0.437",
56
+ "@malloydata/malloy-tag": "0.0.437",
57
57
  "@noble/hashes": "^1.8.0",
58
58
  "antlr4ts": "^0.5.0-alpha.4",
59
59
  "assert": "^2.0.0",