@malloydata/malloy 0.0.43-dev230616001905 → 0.0.43-dev230616201638

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/malloy.d.ts CHANGED
@@ -397,10 +397,6 @@ export declare class PreparedResult {
397
397
  */
398
398
  get resultExplore(): Explore;
399
399
  get sourceExplore(): Explore;
400
- /**
401
- * @return The query timezone.
402
- */
403
- get queryTimezone(): string | undefined;
404
400
  get _sourceExploreName(): string;
405
401
  get _sourceFilters(): FilterExpression[];
406
402
  }
@@ -504,6 +500,7 @@ export declare class Explore extends Entity {
504
500
  get filters(): FilterExpression[];
505
501
  get limit(): number | undefined;
506
502
  get structDef(): StructDef;
503
+ get queryTimezone(): string | undefined;
507
504
  toJSON(): SerializedExplore;
508
505
  static fromJSON(main_explore: SerializedExplore): Explore;
509
506
  }
package/dist/malloy.js CHANGED
@@ -224,7 +224,6 @@ class Malloy {
224
224
  // TODO feature-sql-block There is no source explore...
225
225
  sourceExplore: '',
226
226
  sourceFilters: [],
227
- queryTimezone: sqlStruct.queryTimezone,
228
227
  }, {
229
228
  name: 'empty_model',
230
229
  exports: [],
@@ -726,12 +725,6 @@ class PreparedResult {
726
725
  }
727
726
  throw new Error(`'${name} is not an explore`);
728
727
  }
729
- /**
730
- * @return The query timezone.
731
- */
732
- get queryTimezone() {
733
- return this.inner.queryTimezone;
734
- }
735
728
  get _sourceExploreName() {
736
729
  return this.inner.sourceExplore;
737
730
  }
@@ -1006,6 +999,9 @@ class Explore extends Entity {
1006
999
  get structDef() {
1007
1000
  return this._structDef;
1008
1001
  }
1002
+ get queryTimezone() {
1003
+ return this.structDef.queryTimezone;
1004
+ }
1009
1005
  toJSON() {
1010
1006
  var _a, _b;
1011
1007
  return {
@@ -1837,10 +1837,8 @@ class QueryQuery extends QueryField {
1837
1837
  structSource: { type: 'query_result' },
1838
1838
  resultMetadata: this.getResultMetadata(this.rootResult),
1839
1839
  type: 'struct',
1840
+ queryTimezone: resultStruct.getQueryInfo().queryTimezone,
1840
1841
  };
1841
- if ((0, malloy_types_1.isQuerySegment)(this.firstSegment) && this.firstSegment.queryTimezone) {
1842
- outputStruct.queryTimezone = this.firstSegment.queryTimezone;
1843
- }
1844
1842
  return outputStruct;
1845
1843
  }
1846
1844
  generateSQLJoinBlock(stageWriter, ji) {
@@ -590,7 +590,6 @@ export interface CompiledQuery extends DrillSource {
590
590
  malloy: string;
591
591
  queryName?: string | undefined;
592
592
  connectionName: string;
593
- queryTimezone?: string;
594
593
  }
595
594
  /** Result type for running a Malloy query. */
596
595
  export interface QueryResult extends CompiledQuery {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.43-dev230616001905",
3
+ "version": "0.0.43-dev230616201638",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",