@malloydata/malloy 0.0.43-dev230615191614 → 0.0.43-dev230616164521
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/index.d.ts +1 -1
- package/dist/malloy.d.ts +0 -4
- package/dist/malloy.js +0 -7
- package/dist/model/malloy_query.js +1 -3
- package/dist/model/malloy_types.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { QueryDataRow, Fragment, StructDef, StructRelationship, NamedStructDefs, MalloyQueryData, AtomicFieldType as AtomicFieldTypeInner, DateUnit, ExtractUnit, TimestampUnit, TimeFieldType, QueryData, FieldTypeDef, Expr, DialectFragment, TimeValue, FilterExpression, SQLBlock, FieldDef, FilteredAliasedName, PipeSegment, QueryFieldDef, TurtleDef, SearchValueMapResult, SearchIndexResult, ModelDef, Query, QueryRunStats, NamedQuery, NamedModelObject, ExpressionType, FunctionDef, FunctionOverloadDef, FunctionParameterDef, ExpressionValueType, TypeDesc, FieldValueType, ExpressionTypeDesc, FunctionParamTypeDesc, DocumentLocation, DocumentRange, DocumentPosition, } from './model';
|
|
1
|
+
export type { QueryDataRow, Fragment, StructDef, StructRelationship, NamedStructDefs, MalloyQueryData, AtomicFieldType as AtomicFieldTypeInner, DateUnit, ExtractUnit, TimestampUnit, TimeFieldType, QueryData, FieldTypeDef, Expr, DialectFragment, TimeValue, FilterExpression, SQLBlock, FieldAtomicDef, FieldDef, FilteredAliasedName, PipeSegment, QueryFieldDef, TurtleDef, SearchValueMapResult, SearchIndexResult, ModelDef, Query, QueryRunStats, NamedQuery, NamedModelObject, ExpressionType, FunctionDef, FunctionOverloadDef, FunctionParameterDef, ExpressionValueType, TypeDesc, FieldValueType, ExpressionTypeDesc, FunctionParamTypeDesc, DocumentLocation, DocumentRange, DocumentPosition, } from './model';
|
|
2
2
|
export { Segment, isFilteredAliasedName, flattenQuery, expressionIsCalculation, } from './model';
|
|
3
3
|
export { HighlightType, MalloyTranslator, } from './lang';
|
|
4
4
|
export type { LogMessage, TranslateResponse } from './lang';
|
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
|
}
|
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
|
}
|
|
@@ -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 {
|