@malloydata/malloy 0.0.22-dev230126015148 → 0.0.22-dev230202171033
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/lang/ast/ast-main.d.ts +18 -815
- package/dist/lang/ast/ast-main.js +106 -3241
- package/dist/lang/ast/ast-utils.d.ts +10 -0
- package/dist/lang/ast/ast-utils.js +42 -0
- package/dist/lang/ast/elements/define-explore.d.ts +17 -0
- package/dist/lang/ast/elements/define-explore.js +79 -0
- package/dist/lang/ast/elements/define-query.d.ts +14 -0
- package/dist/lang/ast/elements/define-query.js +56 -0
- package/dist/lang/ast/elements/mallobj.d.ts +12 -0
- package/dist/lang/ast/elements/mallobj.js +53 -0
- package/dist/lang/ast/elements/pipeline-desc.d.ts +28 -0
- package/dist/lang/ast/elements/pipeline-desc.js +102 -0
- package/dist/lang/ast/elements/refined-explore.d.ts +15 -0
- package/dist/lang/ast/elements/refined-explore.js +121 -0
- package/dist/lang/ast/error-factory.d.ts +9 -0
- package/dist/lang/ast/error-factory.js +61 -0
- package/dist/lang/ast/executors/index-executor.d.ts +18 -0
- package/dist/lang/ast/executors/index-executor.js +96 -0
- package/dist/lang/ast/executors/project-executor.d.ts +10 -0
- package/dist/lang/ast/executors/project-executor.js +68 -0
- package/dist/lang/ast/executors/reduce-executor.d.ts +20 -0
- package/dist/lang/ast/executors/reduce-executor.js +149 -0
- package/dist/lang/ast/explore-properties/field-list-edit.d.ts +8 -0
- package/dist/lang/ast/explore-properties/field-list-edit.js +36 -0
- package/dist/lang/ast/explore-properties/primary-key.d.ts +7 -0
- package/dist/lang/ast/{apply-expr.js → explore-properties/primary-key.js} +9 -8
- package/dist/lang/ast/explore-properties/renames.d.ts +11 -0
- package/dist/lang/ast/explore-properties/renames.js +43 -0
- package/dist/lang/ast/explore-properties/turtles.d.ts +5 -0
- package/dist/lang/ast/explore-properties/turtles.js +33 -0
- package/dist/lang/ast/expressions/apply.d.ts +8 -0
- package/dist/lang/ast/expressions/apply.js +37 -0
- package/dist/lang/ast/expressions/binary-boolean.d.ts +12 -0
- package/dist/lang/ast/expressions/binary-boolean.js +54 -0
- package/dist/lang/ast/expressions/binary-numeric.d.ts +11 -0
- package/dist/lang/ast/expressions/binary-numeric.js +42 -0
- package/dist/lang/ast/expressions/boolean.d.ts +8 -0
- package/dist/lang/ast/expressions/boolean.js +39 -0
- package/dist/lang/ast/expressions/constant-sub-expression.d.ts +16 -0
- package/dist/lang/ast/expressions/constant-sub-expression.js +98 -0
- package/dist/lang/ast/expressions/expr-add-sub.d.ts +4 -0
- package/dist/lang/ast/expressions/expr-add-sub.js +34 -0
- package/dist/lang/ast/expressions/expr-aggregate-function.d.ts +15 -0
- package/dist/lang/ast/expressions/expr-aggregate-function.js +99 -0
- package/dist/lang/ast/expressions/expr-alternation-tree.d.ts +11 -0
- package/dist/lang/ast/expressions/expr-alternation-tree.js +54 -0
- package/dist/lang/ast/expressions/expr-asymmetric.d.ts +10 -0
- package/dist/lang/ast/expressions/expr-asymmetric.js +27 -0
- package/dist/lang/ast/expressions/expr-avg.d.ts +6 -0
- package/dist/lang/ast/expressions/expr-avg.js +34 -0
- package/dist/lang/ast/expressions/expr-case.d.ts +11 -0
- package/dist/lang/ast/expressions/expr-case.js +84 -0
- package/dist/lang/ast/expressions/expr-cast.d.ts +13 -0
- package/dist/lang/ast/expressions/expr-cast.js +29 -0
- package/dist/lang/ast/expressions/expr-compare.d.ts +10 -0
- package/dist/lang/ast/expressions/expr-compare.js +48 -0
- package/dist/lang/ast/expressions/expr-count-distinct.d.ts +6 -0
- package/dist/lang/ast/expressions/expr-count-distinct.js +35 -0
- package/dist/lang/ast/expressions/expr-count.d.ts +11 -0
- package/dist/lang/ast/expressions/expr-count.js +57 -0
- package/dist/lang/ast/expressions/expr-filter.d.ts +12 -0
- package/dist/lang/ast/expressions/expr-filter.js +69 -0
- package/dist/lang/ast/expressions/expr-func.d.ts +10 -0
- package/dist/lang/ast/expressions/expr-func.js +63 -0
- package/dist/lang/ast/expressions/expr-granular-time.d.ts +24 -0
- package/dist/lang/ast/expressions/expr-granular-time.js +117 -0
- package/dist/lang/ast/expressions/expr-id-reference.d.ts +12 -0
- package/dist/lang/ast/expressions/expr-id-reference.js +76 -0
- package/dist/lang/ast/expressions/expr-logical-op.d.ts +9 -0
- package/dist/lang/ast/expressions/expr-logical-op.js +36 -0
- package/dist/lang/ast/expressions/expr-max.d.ts +9 -0
- package/dist/lang/ast/expressions/expr-max.js +16 -0
- package/dist/lang/ast/expressions/expr-min.d.ts +9 -0
- package/dist/lang/ast/expressions/expr-min.js +16 -0
- package/dist/lang/ast/expressions/expr-minus.d.ts +9 -0
- package/dist/lang/ast/expressions/expr-minus.js +48 -0
- package/dist/lang/ast/expressions/expr-mul-div.d.ts +4 -0
- package/dist/lang/ast/expressions/expr-mul-div.js +34 -0
- package/dist/lang/ast/expressions/expr-not.d.ts +10 -0
- package/dist/lang/ast/expressions/expr-not.js +49 -0
- package/dist/lang/ast/expressions/expr-now.d.ts +7 -0
- package/dist/lang/ast/expressions/expr-now.js +46 -0
- package/dist/lang/ast/expressions/expr-null.d.ts +6 -0
- package/dist/lang/ast/expressions/expr-null.js +41 -0
- package/dist/lang/ast/expressions/expr-number.d.ts +10 -0
- package/dist/lang/ast/expressions/expr-number.js +42 -0
- package/dist/lang/ast/expressions/expr-parens.d.ts +10 -0
- package/dist/lang/ast/expressions/expr-parens.js +42 -0
- package/dist/lang/ast/expressions/expr-regex.d.ts +8 -0
- package/dist/lang/ast/expressions/expr-regex.js +42 -0
- package/dist/lang/ast/expressions/expr-string.d.ts +9 -0
- package/dist/lang/ast/expressions/expr-string.js +50 -0
- package/dist/lang/ast/expressions/expr-sum.d.ts +6 -0
- package/dist/lang/ast/expressions/expr-sum.js +12 -0
- package/dist/lang/ast/expressions/expr-time-extract.d.ts +13 -0
- package/dist/lang/ast/expressions/expr-time-extract.js +117 -0
- package/dist/lang/ast/expressions/expr-time.d.ts +11 -0
- package/dist/lang/ast/expressions/expr-time.js +62 -0
- package/dist/lang/ast/expressions/expr-ungroup.d.ts +14 -0
- package/dist/lang/ast/expressions/expr-ungroup.js +83 -0
- package/dist/lang/ast/expressions/for-range.d.ts +19 -0
- package/dist/lang/ast/expressions/for-range.js +101 -0
- package/dist/lang/ast/expressions/granular-literal.d.ts +20 -0
- package/dist/lang/ast/expressions/granular-literal.js +148 -0
- package/dist/lang/ast/expressions/partial-compare.d.ts +14 -0
- package/dist/lang/ast/expressions/partial-compare.js +50 -0
- package/dist/lang/ast/expressions/pick-when.d.ts +19 -0
- package/dist/lang/ast/expressions/pick-when.js +156 -0
- package/dist/lang/ast/expressions/range.d.ts +12 -0
- package/dist/lang/ast/expressions/range.js +80 -0
- package/dist/lang/ast/expressions/time-frame.d.ts +7 -0
- package/dist/lang/ast/expressions/time-frame.js +40 -0
- package/dist/lang/ast/expressions/top-by.d.ts +10 -0
- package/dist/lang/ast/expressions/top-by.js +51 -0
- package/dist/lang/ast/expressions/unary.d.ts +5 -0
- package/dist/lang/ast/expressions/unary.js +34 -0
- package/dist/lang/ast/expressions/utils.d.ts +15 -0
- package/dist/lang/ast/expressions/utils.js +106 -0
- package/dist/lang/ast/expressions/when-clause.d.ts +10 -0
- package/dist/lang/ast/expressions/when-clause.js +17 -0
- package/dist/lang/ast/fragtype-utils.d.ts +39 -0
- package/dist/lang/ast/fragtype-utils.js +100 -0
- package/dist/lang/ast/import-elements/import-statement.d.ts +9 -0
- package/dist/lang/ast/import-elements/import-statement.js +78 -0
- package/dist/lang/ast/index.d.ts +94 -3
- package/dist/lang/ast/index.js +94 -3
- package/dist/lang/ast/json-elements/json-element.d.ts +6 -0
- package/dist/lang/ast/json-elements/json-element.js +41 -0
- package/dist/lang/ast/json-elements/json-struct-def.d.ts +10 -0
- package/dist/lang/ast/json-elements/json-struct-def.js +48 -0
- package/dist/lang/ast/nesting/nest-reference.d.ts +7 -0
- package/dist/lang/ast/nesting/nest-reference.js +35 -0
- package/dist/lang/ast/parameters/constant-parameter.d.ts +8 -0
- package/dist/lang/ast/parameters/constant-parameter.js +54 -0
- package/dist/lang/ast/parameters/has-parameter.d.ts +19 -0
- package/dist/lang/ast/parameters/has-parameter.js +64 -0
- package/dist/lang/ast/query-elements/anonymous-query.d.ts +9 -0
- package/dist/lang/ast/query-elements/anonymous-query.js +41 -0
- package/dist/lang/ast/query-elements/existing-query.d.ts +11 -0
- package/dist/lang/ast/query-elements/existing-query.js +79 -0
- package/dist/lang/ast/query-elements/full-query.d.ts +10 -0
- package/dist/lang/ast/query-elements/full-query.js +85 -0
- package/dist/lang/ast/query-elements/query-head-struct.d.ts +9 -0
- package/dist/lang/ast/query-elements/query-head-struct.js +48 -0
- package/dist/lang/ast/query-items/field-declaration.d.ts +31 -0
- package/dist/lang/ast/query-items/field-declaration.js +137 -0
- package/dist/lang/ast/query-items/field-references.d.ts +25 -0
- package/dist/lang/ast/query-items/field-references.js +80 -0
- package/dist/lang/ast/query-properties/aggregate.d.ts +5 -0
- package/dist/lang/ast/query-properties/aggregate.js +39 -0
- package/dist/lang/ast/query-properties/declare-fields.d.ts +5 -0
- package/dist/lang/ast/query-properties/declare-fields.js +33 -0
- package/dist/lang/ast/query-properties/dimmensions.d.ts +5 -0
- package/dist/lang/ast/query-properties/dimmensions.js +36 -0
- package/dist/lang/ast/query-properties/filters.d.ts +18 -0
- package/dist/lang/ast/query-properties/filters.js +89 -0
- package/dist/lang/ast/query-properties/group-by.d.ts +5 -0
- package/dist/lang/ast/query-properties/group-by.js +39 -0
- package/dist/lang/ast/query-properties/indexing.d.ts +10 -0
- package/dist/lang/ast/query-properties/indexing.js +39 -0
- package/dist/lang/ast/query-properties/joins.d.ts +36 -0
- package/dist/lang/ast/query-properties/joins.js +143 -0
- package/dist/lang/ast/query-properties/limit.d.ts +6 -0
- package/dist/lang/ast/query-properties/limit.js +35 -0
- package/dist/lang/ast/query-properties/measures.d.ts +5 -0
- package/dist/lang/ast/query-properties/measures.js +36 -0
- package/dist/lang/ast/query-properties/nests.d.ts +5 -0
- package/dist/lang/ast/query-properties/nests.js +33 -0
- package/dist/lang/ast/query-properties/ordering.d.ts +15 -0
- package/dist/lang/ast/query-properties/ordering.js +66 -0
- package/dist/lang/ast/query-properties/project-statement.d.ts +5 -0
- package/dist/lang/ast/query-properties/project-statement.js +33 -0
- package/dist/lang/ast/query-properties/qop-desc.d.ts +17 -0
- package/dist/lang/ast/query-properties/qop-desc.js +123 -0
- package/dist/lang/ast/query-properties/sampling.d.ts +8 -0
- package/dist/lang/ast/query-properties/sampling.js +38 -0
- package/dist/lang/ast/query-properties/top.d.ts +13 -0
- package/dist/lang/ast/query-properties/top.js +60 -0
- package/dist/lang/ast/result-spaces/index-field-space.d.ts +10 -0
- package/dist/lang/ast/result-spaces/index-field-space.js +57 -0
- package/dist/lang/ast/result-spaces/project-field-space.d.ts +6 -0
- package/dist/lang/ast/result-spaces/project-field-space.js +51 -0
- package/dist/lang/ast/result-spaces/reduce-field-space.d.ts +7 -0
- package/dist/lang/ast/result-spaces/reduce-field-space.js +37 -0
- package/dist/lang/ast/sources/named-source.d.ts +19 -0
- package/dist/lang/ast/sources/named-source.js +147 -0
- package/dist/lang/ast/sources/query-source.d.ts +9 -0
- package/dist/lang/ast/sources/query-source.js +41 -0
- package/dist/lang/ast/sources/sql-source.d.ts +7 -0
- package/dist/lang/ast/sources/sql-source.js +54 -0
- package/dist/lang/ast/sources/table-source.d.ts +8 -0
- package/dist/lang/ast/sources/table-source.js +60 -0
- package/dist/lang/ast/space-fields/column-space-field.d.ts +9 -0
- package/dist/lang/ast/space-fields/column-space-field.js +40 -0
- package/dist/lang/ast/space-fields/join-space-field.d.ts +8 -0
- package/dist/lang/ast/space-fields/join-space-field.js +35 -0
- package/dist/lang/ast/space-fields/query-field-struct.d.ts +10 -0
- package/dist/lang/ast/space-fields/query-field-struct.js +46 -0
- package/dist/lang/ast/space-fields/query-space-field.d.ts +11 -0
- package/dist/lang/ast/space-fields/query-space-field.js +37 -0
- package/dist/lang/ast/space-fields/reference-field.d.ts +11 -0
- package/dist/lang/ast/space-fields/reference-field.js +45 -0
- package/dist/lang/ast/space-fields/rename-space-field.d.ts +11 -0
- package/dist/lang/ast/space-fields/rename-space-field.js +50 -0
- package/dist/lang/ast/space-fields/wild-space-field.d.ts +10 -0
- package/dist/lang/ast/space-fields/wild-space-field.js +40 -0
- package/dist/lang/ast/space-parameters/abstract-parameter.d.ts +10 -0
- package/dist/lang/ast/space-parameters/abstract-parameter.js +41 -0
- package/dist/lang/ast/space-parameters/defined-parameter.d.ts +9 -0
- package/dist/lang/ast/space-parameters/defined-parameter.js +40 -0
- package/dist/lang/ast/space-seed.d.ts +17 -0
- package/dist/lang/ast/space-seed.js +59 -0
- package/dist/lang/ast/sql-elements/sql-statement.d.ts +19 -0
- package/dist/lang/ast/sql-elements/sql-statement.js +80 -0
- package/dist/lang/ast/sql-elements/sql-string.d.ts +12 -0
- package/dist/lang/ast/sql-elements/sql-string.js +60 -0
- package/dist/lang/ast/static-space.d.ts +33 -0
- package/dist/lang/ast/static-space.js +167 -0
- package/dist/lang/ast/struct-utils.d.ts +4 -0
- package/dist/lang/ast/struct-utils.js +48 -0
- package/dist/lang/ast/time-utils.d.ts +5 -2
- package/dist/lang/ast/time-utils.js +37 -1
- package/dist/lang/ast/types/comparison.d.ts +11 -0
- package/dist/lang/ast/types/comparison.js +41 -0
- package/dist/lang/ast/types/compart-types.d.ts +10 -0
- package/dist/lang/ast/types/compart-types.js +37 -0
- package/dist/lang/ast/types/document-compile-result.d.ts +8 -0
- package/dist/lang/ast/types/document-compile-result.js +25 -0
- package/dist/lang/ast/types/equality.d.ts +7 -0
- package/dist/lang/ast/types/equality.js +37 -0
- package/dist/lang/ast/types/executor.d.ts +9 -0
- package/dist/lang/ast/types/executor.js +25 -0
- package/dist/lang/ast/types/explore-desc.d.ts +5 -0
- package/dist/lang/ast/types/explore-desc.js +33 -0
- package/dist/lang/ast/types/explore-field.d.ts +5 -0
- package/dist/lang/ast/types/explore-field.js +32 -0
- package/dist/lang/ast/types/explore-property.d.ts +10 -0
- package/dist/lang/ast/types/explore-property.js +43 -0
- package/dist/lang/ast/types/expr-result.d.ts +5 -0
- package/dist/lang/ast/types/expr-result.js +25 -0
- package/dist/lang/ast/types/expr-value.d.ts +3 -0
- package/dist/lang/ast/types/expr-value.js +25 -0
- package/dist/lang/ast/types/expression-def.d.ts +69 -0
- package/dist/lang/ast/types/expression-def.js +346 -0
- package/dist/lang/ast/types/expression-value-type.d.ts +2 -0
- package/dist/lang/ast/types/expression-value-type.js +25 -0
- package/dist/lang/ast/types/field-collection-member.d.ts +5 -0
- package/dist/lang/ast/types/field-collection-member.js +34 -0
- package/dist/lang/ast/types/field-decl.d.ts +7 -0
- package/dist/lang/ast/types/field-decl.js +37 -0
- package/dist/lang/ast/types/field-map.d.ts +2 -0
- package/dist/lang/ast/types/field-map.js +25 -0
- package/dist/lang/ast/types/field-space.d.ts +26 -0
- package/dist/lang/ast/types/field-space.js +48 -0
- package/dist/lang/ast/types/field-type.d.ts +6 -0
- package/dist/lang/ast/types/field-type.js +25 -0
- package/dist/lang/ast/types/field-value-type.d.ts +3 -0
- package/dist/lang/ast/types/field-value-type.js +25 -0
- package/dist/lang/ast/types/frag-type.d.ts +6 -0
- package/dist/lang/ast/types/frag-type.js +25 -0
- package/dist/lang/ast/types/granular-result.d.ts +7 -0
- package/dist/lang/ast/types/granular-result.js +11 -0
- package/dist/lang/ast/types/lookup-result.d.ts +10 -0
- package/dist/lang/ast/types/lookup-result.js +25 -0
- package/dist/lang/ast/types/malloy-element.d.ts +105 -0
- package/dist/lang/ast/types/malloy-element.js +398 -0
- package/dist/lang/ast/types/model-entry.d.ts +6 -0
- package/dist/lang/ast/types/model-entry.js +25 -0
- package/dist/lang/ast/types/name-space.d.ts +5 -0
- package/dist/lang/ast/types/name-space.js +25 -0
- package/dist/lang/ast/types/nested-query.d.ts +3 -0
- package/dist/lang/ast/types/nested-query.js +25 -0
- package/dist/lang/ast/types/op-desc.d.ts +6 -0
- package/dist/lang/ast/types/op-desc.js +25 -0
- package/dist/lang/ast/types/query-comp.d.ts +5 -0
- package/dist/lang/ast/types/query-comp.js +25 -0
- package/dist/lang/ast/types/query-element.d.ts +5 -0
- package/dist/lang/ast/types/query-element.js +32 -0
- package/dist/lang/ast/types/query-item.d.ts +5 -0
- package/dist/lang/ast/types/query-item.js +25 -0
- package/dist/lang/ast/types/query-property.d.ts +17 -0
- package/dist/lang/ast/types/query-property.js +55 -0
- package/dist/lang/ast/types/space-entry.d.ts +5 -0
- package/dist/lang/ast/types/space-entry.js +29 -0
- package/dist/lang/ast/types/space-field.d.ts +10 -0
- package/dist/lang/ast/types/space-field.js +48 -0
- package/dist/lang/ast/types/space-param.d.ts +6 -0
- package/dist/lang/ast/types/space-param.js +34 -0
- package/dist/lang/ast/types/stage-field-type.d.ts +1 -0
- package/dist/lang/ast/types/stage-field-type.js +25 -0
- package/dist/lang/ast/types/time-result.d.ts +6 -0
- package/dist/lang/ast/types/time-result.js +25 -0
- package/dist/lang/ast/types/turtle-headed-pipe.d.ts +7 -0
- package/dist/lang/ast/types/turtle-headed-pipe.js +37 -0
- package/dist/lang/space-field.d.ts +4 -1
- package/dist/lang/space-field.js +4 -3
- package/dist/lang/test/field-symbols.spec.js +25 -21
- package/dist/lang/test/parse.spec.js +4 -3
- package/dist/lang/test/test-translator.d.ts +3 -1
- package/package.json +1 -1
- package/dist/lang/ast/apply-expr.d.ts +0 -3
- package/dist/lang/ast/ast-expr.d.ts +0 -206
- package/dist/lang/ast/ast-expr.js +0 -781
- package/dist/lang/ast/ast-time-expr.d.ts +0 -69
- package/dist/lang/ast/ast-time-expr.js +0 -389
- package/dist/lang/ast/ast-types.d.ts +0 -83
- package/dist/lang/ast/ast-types.js +0 -225
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { StructDef, NamedModelObject, ModelDef, Query, FieldDef, PipeSegment, TurtleDef, DocumentLocation } from "../../model/malloy_types";
|
|
2
|
-
import { MalloyElement
|
|
2
|
+
import { MalloyElement } from "../ast";
|
|
3
|
+
import { NameSpace } from "../ast/types/name-space";
|
|
4
|
+
import { ModelEntry } from "../ast/types/model-entry";
|
|
3
5
|
import { MalloyTranslator, TranslateResponse } from "../parse-malloy";
|
|
4
6
|
export declare function pretty(thing: any): string;
|
|
5
7
|
export declare const aTableDef: StructDef;
|
package/package.json
CHANGED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { By, ExpressionType } from "../../model/malloy_types";
|
|
2
|
-
import { BinaryBoolean, ExpressionDef, ExprCompare, FieldName, FieldReference, FieldSpace, Filter, MalloyElement } from "./ast-main";
|
|
3
|
-
import { ExprValue, FieldValueType, FragType } from "./ast-types";
|
|
4
|
-
export declare class ExprString extends ExpressionDef {
|
|
5
|
-
elementType: string;
|
|
6
|
-
value: string;
|
|
7
|
-
constructor(src: string);
|
|
8
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
9
|
-
}
|
|
10
|
-
export declare class ExprNumber extends ExpressionDef {
|
|
11
|
-
readonly n: string;
|
|
12
|
-
elementType: string;
|
|
13
|
-
constructor(n: string);
|
|
14
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
15
|
-
constantExpression(): ExprValue;
|
|
16
|
-
}
|
|
17
|
-
export declare class ExprRegEx extends ExpressionDef {
|
|
18
|
-
readonly regex: string;
|
|
19
|
-
elementType: string;
|
|
20
|
-
constructor(regex: string);
|
|
21
|
-
getExpression(): ExprValue;
|
|
22
|
-
}
|
|
23
|
-
declare abstract class Unary extends ExpressionDef {
|
|
24
|
-
readonly expr: ExpressionDef;
|
|
25
|
-
constructor(expr: ExpressionDef);
|
|
26
|
-
}
|
|
27
|
-
export declare class ExprNot extends Unary {
|
|
28
|
-
elementType: string;
|
|
29
|
-
legalChildTypes: FragType[];
|
|
30
|
-
constructor(expr: ExpressionDef);
|
|
31
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
32
|
-
}
|
|
33
|
-
export declare class Boolean extends ExpressionDef {
|
|
34
|
-
readonly value: "true" | "false";
|
|
35
|
-
elementType: string;
|
|
36
|
-
constructor(value: "true" | "false");
|
|
37
|
-
getExpression(): ExprValue;
|
|
38
|
-
}
|
|
39
|
-
export declare class ExprLogicalOp extends BinaryBoolean<"and" | "or"> {
|
|
40
|
-
elementType: string;
|
|
41
|
-
legalChildTypes: (FragType | {
|
|
42
|
-
aggregate: boolean;
|
|
43
|
-
dataType: FieldValueType;
|
|
44
|
-
expressionType: ExpressionType;
|
|
45
|
-
})[];
|
|
46
|
-
}
|
|
47
|
-
export declare class ExprIdReference extends ExpressionDef {
|
|
48
|
-
readonly fieldReference: FieldReference;
|
|
49
|
-
elementType: string;
|
|
50
|
-
constructor(fieldReference: FieldReference);
|
|
51
|
-
get refString(): string;
|
|
52
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
53
|
-
apply(fs: FieldSpace, op: string, expr: ExpressionDef): ExprValue;
|
|
54
|
-
}
|
|
55
|
-
export declare class ExprNULL extends ExpressionDef {
|
|
56
|
-
elementType: string;
|
|
57
|
-
getExpression(): ExprValue;
|
|
58
|
-
}
|
|
59
|
-
export declare class ExprParens extends ExpressionDef {
|
|
60
|
-
readonly expr: ExpressionDef;
|
|
61
|
-
elementType: string;
|
|
62
|
-
constructor(expr: ExpressionDef);
|
|
63
|
-
requestExpression(fs: FieldSpace): ExprValue | undefined;
|
|
64
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
65
|
-
}
|
|
66
|
-
export declare class ExprMinus extends ExpressionDef {
|
|
67
|
-
readonly expr: ExpressionDef;
|
|
68
|
-
elementType: string;
|
|
69
|
-
constructor(expr: ExpressionDef);
|
|
70
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
71
|
-
}
|
|
72
|
-
export declare abstract class BinaryNumeric<opType extends string> extends ExpressionDef {
|
|
73
|
-
readonly left: ExpressionDef;
|
|
74
|
-
readonly op: opType;
|
|
75
|
-
readonly right: ExpressionDef;
|
|
76
|
-
elementType: string;
|
|
77
|
-
constructor(left: ExpressionDef, op: opType, right: ExpressionDef);
|
|
78
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
79
|
-
}
|
|
80
|
-
export declare class ExprAddSub extends BinaryNumeric<"+" | "-"> {
|
|
81
|
-
elementType: string;
|
|
82
|
-
}
|
|
83
|
-
export declare class ExprMulDiv extends BinaryNumeric<"*" | "/" | "%"> {
|
|
84
|
-
elementType: string;
|
|
85
|
-
}
|
|
86
|
-
export declare class ExprAlternationTree extends BinaryBoolean<"|" | "&"> {
|
|
87
|
-
elementType: string;
|
|
88
|
-
constructor(left: ExpressionDef, op: "|" | "&", right: ExpressionDef);
|
|
89
|
-
apply(fs: FieldSpace, applyOp: string, expr: ExpressionDef): ExprValue;
|
|
90
|
-
requestExpression(_fs: FieldSpace): ExprValue | undefined;
|
|
91
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
92
|
-
}
|
|
93
|
-
declare abstract class ExprAggregateFunction extends ExpressionDef {
|
|
94
|
-
readonly func: string;
|
|
95
|
-
elementType: string;
|
|
96
|
-
source?: FieldReference;
|
|
97
|
-
expr?: ExpressionDef;
|
|
98
|
-
legalChildTypes: FragType[];
|
|
99
|
-
constructor(func: string, expr?: ExpressionDef);
|
|
100
|
-
returns(_forExpression: ExprValue): FieldValueType;
|
|
101
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
102
|
-
}
|
|
103
|
-
export declare class ExprMin extends ExprAggregateFunction {
|
|
104
|
-
legalChildTypes: FragType[];
|
|
105
|
-
constructor(expr: ExpressionDef);
|
|
106
|
-
returns(forExpression: ExprValue): FieldValueType;
|
|
107
|
-
}
|
|
108
|
-
export declare class ExprMax extends ExprAggregateFunction {
|
|
109
|
-
legalChildTypes: FragType[];
|
|
110
|
-
constructor(expr: ExpressionDef);
|
|
111
|
-
returns(forExpression: ExprValue): FieldValueType;
|
|
112
|
-
}
|
|
113
|
-
export declare class ExprCountDistinct extends ExprAggregateFunction {
|
|
114
|
-
legalChildTypes: FragType[];
|
|
115
|
-
constructor(expr: ExpressionDef);
|
|
116
|
-
}
|
|
117
|
-
declare abstract class ExprAsymmetric extends ExprAggregateFunction {
|
|
118
|
-
readonly func: "sum" | "avg";
|
|
119
|
-
readonly expr: ExpressionDef | undefined;
|
|
120
|
-
readonly source?: FieldReference | undefined;
|
|
121
|
-
constructor(func: "sum" | "avg", expr: ExpressionDef | undefined, source?: FieldReference | undefined);
|
|
122
|
-
defaultFieldName(): undefined | string;
|
|
123
|
-
}
|
|
124
|
-
export declare class ExprCount extends ExprAggregateFunction {
|
|
125
|
-
readonly source?: FieldReference | undefined;
|
|
126
|
-
elementType: string;
|
|
127
|
-
constructor(source?: FieldReference | undefined);
|
|
128
|
-
defaultFieldName(): string | undefined;
|
|
129
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
130
|
-
}
|
|
131
|
-
export declare class ExprAvg extends ExprAsymmetric {
|
|
132
|
-
constructor(expr: ExpressionDef | undefined, source?: FieldReference);
|
|
133
|
-
}
|
|
134
|
-
export declare class ExprSum extends ExprAsymmetric {
|
|
135
|
-
constructor(expr: ExpressionDef | undefined, source?: FieldReference);
|
|
136
|
-
}
|
|
137
|
-
export declare class ExprUngroup extends ExpressionDef {
|
|
138
|
-
readonly control: "all" | "exclude";
|
|
139
|
-
readonly expr: ExpressionDef;
|
|
140
|
-
readonly fields: FieldName[];
|
|
141
|
-
legalChildTypes: FragType[];
|
|
142
|
-
elementType: string;
|
|
143
|
-
constructor(control: "all" | "exclude", expr: ExpressionDef, fields: FieldName[]);
|
|
144
|
-
returns(_forExpression: ExprValue): FieldValueType;
|
|
145
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
146
|
-
}
|
|
147
|
-
export declare class WhenClause extends ExpressionDef {
|
|
148
|
-
readonly whenThis: ExpressionDef;
|
|
149
|
-
readonly thenThis: ExpressionDef;
|
|
150
|
-
elementType: string;
|
|
151
|
-
constructor(whenThis: ExpressionDef, thenThis: ExpressionDef);
|
|
152
|
-
getExpression(_fs: FieldSpace): ExprValue;
|
|
153
|
-
}
|
|
154
|
-
export declare class ExprCase extends ExpressionDef {
|
|
155
|
-
readonly when: WhenClause[];
|
|
156
|
-
readonly elseClause?: ExpressionDef | undefined;
|
|
157
|
-
elementType: string;
|
|
158
|
-
constructor(when: WhenClause[], elseClause?: ExpressionDef | undefined);
|
|
159
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
160
|
-
}
|
|
161
|
-
export declare class ExprFilter extends ExpressionDef {
|
|
162
|
-
readonly expr: ExpressionDef;
|
|
163
|
-
readonly filter: Filter;
|
|
164
|
-
elementType: string;
|
|
165
|
-
legalChildTypes: FragType[];
|
|
166
|
-
constructor(expr: ExpressionDef, filter: Filter);
|
|
167
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
168
|
-
}
|
|
169
|
-
declare type CastType = "string" | "number" | "boolean" | "date" | "timestamp";
|
|
170
|
-
export declare function isCastType(t: string): t is CastType;
|
|
171
|
-
export declare class ExprCast extends ExpressionDef {
|
|
172
|
-
readonly expr: ExpressionDef;
|
|
173
|
-
readonly castType: CastType;
|
|
174
|
-
readonly safe: boolean;
|
|
175
|
-
elementType: string;
|
|
176
|
-
constructor(expr: ExpressionDef, castType: CastType, safe?: boolean);
|
|
177
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
178
|
-
}
|
|
179
|
-
export declare class TopBy extends MalloyElement {
|
|
180
|
-
readonly by: string | ExpressionDef;
|
|
181
|
-
elementType: string;
|
|
182
|
-
constructor(by: string | ExpressionDef);
|
|
183
|
-
getBy(fs: FieldSpace): By;
|
|
184
|
-
}
|
|
185
|
-
export declare class PickWhen extends MalloyElement {
|
|
186
|
-
readonly pick: ExpressionDef | undefined;
|
|
187
|
-
readonly when: ExpressionDef;
|
|
188
|
-
elementType: string;
|
|
189
|
-
constructor(pick: ExpressionDef | undefined, when: ExpressionDef);
|
|
190
|
-
}
|
|
191
|
-
export declare class Pick extends ExpressionDef {
|
|
192
|
-
readonly choices: PickWhen[];
|
|
193
|
-
readonly elsePick?: ExpressionDef | undefined;
|
|
194
|
-
elementType: string;
|
|
195
|
-
constructor(choices: PickWhen[], elsePick?: ExpressionDef | undefined);
|
|
196
|
-
requestExpression(fs: FieldSpace): ExprValue | undefined;
|
|
197
|
-
apply(fs: FieldSpace, op: string, expr: ExpressionDef): ExprValue;
|
|
198
|
-
getExpression(fs: FieldSpace): ExprValue;
|
|
199
|
-
}
|
|
200
|
-
export declare class Apply extends ExprCompare {
|
|
201
|
-
readonly left: ExpressionDef;
|
|
202
|
-
readonly right: ExpressionDef;
|
|
203
|
-
elementType: string;
|
|
204
|
-
constructor(left: ExpressionDef, right: ExpressionDef);
|
|
205
|
-
}
|
|
206
|
-
export {};
|