@malloydata/malloy 0.0.24-dev230224184907 → 0.0.24-dev230228224434
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/connection_utils.js +10 -10
- package/dist/dialect/dialect.d.ts +2 -2
- package/dist/dialect/dialect.js +13 -13
- package/dist/dialect/dialect_map.d.ts +1 -1
- package/dist/dialect/duckdb.d.ts +3 -3
- package/dist/dialect/duckdb.js +44 -44
- package/dist/dialect/index.d.ts +6 -6
- package/dist/dialect/postgres.d.ts +3 -3
- package/dist/dialect/postgres.js +46 -46
- package/dist/dialect/standardsql.d.ts +4 -4
- package/dist/dialect/standardsql.js +51 -51
- package/dist/index.d.ts +10 -10
- package/dist/lang/ast/ast-utils.d.ts +1 -1
- package/dist/lang/ast/ast-utils.js +3 -3
- package/dist/lang/ast/elements/define-query.d.ts +3 -3
- package/dist/lang/ast/elements/define-query.js +6 -6
- package/dist/lang/ast/elements/define-source.d.ts +4 -4
- package/dist/lang/ast/elements/define-source.js +8 -8
- package/dist/lang/ast/elements/import-statement.d.ts +2 -2
- package/dist/lang/ast/elements/import-statement.js +7 -7
- package/dist/lang/ast/elements/pipeline-desc.d.ts +5 -5
- package/dist/lang/ast/elements/pipeline-desc.js +11 -11
- package/dist/lang/ast/elements/refined-source.d.ts +4 -4
- package/dist/lang/ast/elements/refined-source.js +6 -6
- package/dist/lang/ast/elements/source.d.ts +3 -3
- package/dist/lang/ast/elements/source.js +1 -1
- package/dist/lang/ast/error-factory.d.ts +1 -1
- package/dist/lang/ast/error-factory.js +15 -15
- package/dist/lang/ast/executors/index-executor.d.ts +7 -7
- package/dist/lang/ast/executors/index-executor.js +4 -4
- package/dist/lang/ast/executors/project-executor.d.ts +5 -5
- package/dist/lang/ast/executors/project-executor.js +2 -2
- package/dist/lang/ast/executors/reduce-executor.d.ts +8 -8
- package/dist/lang/ast/executors/reduce-executor.js +5 -5
- package/dist/lang/ast/expressions/apply.d.ts +2 -2
- package/dist/lang/ast/expressions/apply.js +1 -1
- package/dist/lang/ast/expressions/binary-boolean.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-boolean.js +6 -6
- package/dist/lang/ast/expressions/binary-numeric.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-numeric.js +2 -2
- package/dist/lang/ast/expressions/boolean.d.ts +4 -4
- package/dist/lang/ast/expressions/boolean.js +2 -2
- package/dist/lang/ast/expressions/constant-sub-expression.d.ts +4 -4
- package/dist/lang/ast/expressions/constant-sub-expression.js +12 -12
- package/dist/lang/ast/expressions/expr-add-sub.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-add-sub.js +1 -1
- package/dist/lang/ast/expressions/expr-aggregate-function.d.ts +5 -5
- package/dist/lang/ast/expressions/expr-aggregate-function.js +15 -15
- package/dist/lang/ast/expressions/expr-alternation-tree.d.ts +6 -6
- package/dist/lang/ast/expressions/expr-alternation-tree.js +6 -6
- package/dist/lang/ast/expressions/expr-asymmetric.d.ts +5 -5
- package/dist/lang/ast/expressions/expr-asymmetric.js +3 -3
- package/dist/lang/ast/expressions/expr-avg.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-avg.js +2 -2
- package/dist/lang/ast/expressions/expr-cast.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-cast.js +6 -6
- package/dist/lang/ast/expressions/expr-compare.d.ts +5 -5
- package/dist/lang/ast/expressions/expr-compare.js +9 -9
- package/dist/lang/ast/expressions/expr-count-distinct.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-count-distinct.js +1 -1
- package/dist/lang/ast/expressions/expr-count.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-count.js +10 -10
- package/dist/lang/ast/expressions/expr-filter.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-filter.js +13 -13
- package/dist/lang/ast/expressions/expr-func.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-func.js +8 -8
- package/dist/lang/ast/expressions/expr-granular-time.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-granular-time.js +17 -17
- package/dist/lang/ast/expressions/expr-id-reference.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-id-reference.js +11 -11
- package/dist/lang/ast/expressions/expr-logical-op.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-logical-op.js +1 -1
- package/dist/lang/ast/expressions/expr-max.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-max.js +1 -1
- package/dist/lang/ast/expressions/expr-min.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-min.js +1 -1
- package/dist/lang/ast/expressions/expr-minus.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-minus.js +5 -5
- package/dist/lang/ast/expressions/expr-mul-div.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-mul-div.js +1 -1
- package/dist/lang/ast/expressions/expr-not.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-not.js +3 -3
- package/dist/lang/ast/expressions/expr-now.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-now.js +8 -8
- package/dist/lang/ast/expressions/expr-null.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-null.js +4 -4
- package/dist/lang/ast/expressions/expr-number.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-number.js +2 -2
- package/dist/lang/ast/expressions/expr-parens.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-parens.js +3 -3
- package/dist/lang/ast/expressions/expr-regex.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-regex.js +4 -4
- package/dist/lang/ast/expressions/expr-string.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-string.js +8 -8
- package/dist/lang/ast/expressions/expr-sum.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-sum.js +2 -2
- package/dist/lang/ast/expressions/expr-time-extract.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-time-extract.js +30 -30
- package/dist/lang/ast/expressions/expr-time.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-time.js +10 -10
- package/dist/lang/ast/expressions/expr-ungroup.d.ts +6 -6
- package/dist/lang/ast/expressions/expr-ungroup.js +13 -13
- package/dist/lang/ast/expressions/for-range.d.ts +4 -4
- package/dist/lang/ast/expressions/for-range.js +17 -17
- package/dist/lang/ast/expressions/granular-literal.d.ts +4 -4
- package/dist/lang/ast/expressions/granular-literal.js +34 -34
- package/dist/lang/ast/expressions/partial-compare.d.ts +4 -4
- package/dist/lang/ast/expressions/partial-compare.js +4 -4
- package/dist/lang/ast/expressions/pick-when.d.ts +4 -4
- package/dist/lang/ast/expressions/pick-when.js +32 -32
- package/dist/lang/ast/expressions/range.d.ts +3 -3
- package/dist/lang/ast/expressions/range.js +20 -20
- package/dist/lang/ast/expressions/time-frame.d.ts +2 -2
- package/dist/lang/ast/expressions/time-frame.js +3 -3
- package/dist/lang/ast/expressions/top-by.d.ts +4 -4
- package/dist/lang/ast/expressions/top-by.js +5 -5
- package/dist/lang/ast/expressions/unary.d.ts +1 -1
- package/dist/lang/ast/expressions/unary.js +1 -1
- package/dist/lang/ast/expressions/utils.d.ts +2 -2
- package/dist/lang/ast/expressions/utils.js +6 -6
- package/dist/lang/ast/field-space/column-space-field.d.ts +3 -3
- package/dist/lang/ast/field-space/dynamic-space.d.ts +7 -7
- package/dist/lang/ast/field-space/dynamic-space.js +2 -2
- package/dist/lang/ast/field-space/field-definition-value.d.ts +5 -5
- package/dist/lang/ast/field-space/index-field-space.d.ts +3 -3
- package/dist/lang/ast/field-space/index-field-space.js +4 -4
- package/dist/lang/ast/field-space/join-space-field.d.ts +3 -3
- package/dist/lang/ast/field-space/project-field-space.d.ts +2 -2
- package/dist/lang/ast/field-space/project-field-space.js +5 -5
- package/dist/lang/ast/field-space/query-field-struct.d.ts +3 -3
- package/dist/lang/ast/field-space/query-field-struct.js +1 -1
- package/dist/lang/ast/field-space/query-space-field.d.ts +4 -4
- package/dist/lang/ast/field-space/query-space-field.js +1 -1
- package/dist/lang/ast/field-space/query-spaces.d.ts +11 -11
- package/dist/lang/ast/field-space/query-spaces.js +8 -8
- package/dist/lang/ast/field-space/reference-field.d.ts +5 -5
- package/dist/lang/ast/field-space/reference-field.js +1 -1
- package/dist/lang/ast/field-space/refined-space.d.ts +4 -4
- package/dist/lang/ast/field-space/refined-space.js +2 -2
- package/dist/lang/ast/field-space/rename-space-field.d.ts +3 -3
- package/dist/lang/ast/field-space/rename-space-field.js +2 -2
- package/dist/lang/ast/field-space/static-space.d.ts +7 -7
- package/dist/lang/ast/field-space/static-space.js +12 -12
- package/dist/lang/ast/field-space/struct-space-field-base.d.ts +4 -4
- package/dist/lang/ast/field-space/struct-space-field-base.js +1 -1
- package/dist/lang/ast/field-space/wild-space-field.d.ts +4 -4
- package/dist/lang/ast/field-space/wild-space-field.js +1 -1
- package/dist/lang/ast/fragtype-utils.d.ts +1 -1
- package/dist/lang/ast/fragtype-utils.js +15 -15
- package/dist/lang/ast/index.d.ts +90 -90
- package/dist/lang/ast/parameters/constant-parameter.d.ts +3 -3
- package/dist/lang/ast/parameters/constant-parameter.js +10 -10
- package/dist/lang/ast/parameters/has-parameter.d.ts +3 -3
- package/dist/lang/ast/parameters/has-parameter.js +7 -7
- package/dist/lang/ast/query-elements/anonymous-query.d.ts +3 -3
- package/dist/lang/ast/query-elements/anonymous-query.js +2 -2
- package/dist/lang/ast/query-elements/existing-query.d.ts +4 -4
- package/dist/lang/ast/query-elements/existing-query.js +10 -10
- package/dist/lang/ast/query-elements/full-query.d.ts +4 -4
- package/dist/lang/ast/query-elements/full-query.js +10 -10
- package/dist/lang/ast/query-elements/query-head-struct.d.ts +2 -2
- package/dist/lang/ast/query-elements/query-head-struct.js +2 -2
- package/dist/lang/ast/query-items/field-declaration.d.ts +6 -6
- package/dist/lang/ast/query-items/field-declaration.js +14 -14
- package/dist/lang/ast/query-items/field-references.d.ts +6 -6
- package/dist/lang/ast/query-items/field-references.js +9 -9
- package/dist/lang/ast/query-properties/aggregate.d.ts +2 -2
- package/dist/lang/ast/query-properties/aggregate.js +1 -1
- package/dist/lang/ast/query-properties/declare-fields.d.ts +2 -2
- package/dist/lang/ast/query-properties/declare-fields.js +1 -1
- package/dist/lang/ast/query-properties/dimmensions.d.ts +2 -2
- package/dist/lang/ast/query-properties/dimmensions.js +1 -1
- package/dist/lang/ast/query-properties/filters.d.ts +4 -4
- package/dist/lang/ast/query-properties/filters.js +16 -16
- package/dist/lang/ast/query-properties/group-by.d.ts +2 -2
- package/dist/lang/ast/query-properties/group-by.js +1 -1
- package/dist/lang/ast/query-properties/indexing.d.ts +3 -3
- package/dist/lang/ast/query-properties/indexing.js +3 -3
- package/dist/lang/ast/query-properties/joins.d.ts +6 -6
- package/dist/lang/ast/query-properties/joins.js +27 -27
- package/dist/lang/ast/query-properties/limit.d.ts +1 -1
- package/dist/lang/ast/query-properties/limit.js +1 -1
- package/dist/lang/ast/query-properties/measures.d.ts +2 -2
- package/dist/lang/ast/query-properties/measures.js +1 -1
- package/dist/lang/ast/query-properties/nest-reference.d.ts +2 -2
- package/dist/lang/ast/query-properties/nest-reference.js +1 -1
- package/dist/lang/ast/query-properties/nest.d.ts +7 -7
- package/dist/lang/ast/query-properties/nest.js +7 -7
- package/dist/lang/ast/query-properties/nests.d.ts +2 -2
- package/dist/lang/ast/query-properties/nests.js +1 -1
- package/dist/lang/ast/query-properties/ordering.d.ts +3 -3
- package/dist/lang/ast/query-properties/ordering.js +6 -6
- package/dist/lang/ast/query-properties/project-statement.d.ts +2 -2
- package/dist/lang/ast/query-properties/project-statement.js +1 -1
- package/dist/lang/ast/query-properties/qop-desc.d.ts +7 -7
- package/dist/lang/ast/query-properties/qop-desc.js +20 -20
- package/dist/lang/ast/query-properties/sampling.d.ts +2 -2
- package/dist/lang/ast/query-properties/sampling.js +1 -1
- package/dist/lang/ast/query-properties/top.d.ts +4 -4
- package/dist/lang/ast/query-properties/top.js +5 -5
- package/dist/lang/ast/source-properties/field-list-edit.d.ts +4 -4
- package/dist/lang/ast/source-properties/field-list-edit.js +2 -2
- package/dist/lang/ast/source-properties/primary-key.d.ts +2 -2
- package/dist/lang/ast/source-properties/primary-key.js +2 -2
- package/dist/lang/ast/source-properties/renames.d.ts +2 -2
- package/dist/lang/ast/source-properties/renames.js +3 -3
- package/dist/lang/ast/source-properties/turtles.d.ts +2 -2
- package/dist/lang/ast/source-properties/turtles.js +1 -1
- package/dist/lang/ast/sources/named-source.d.ts +4 -4
- package/dist/lang/ast/sources/named-source.js +5 -5
- package/dist/lang/ast/sources/query-source.d.ts +3 -3
- package/dist/lang/ast/sources/query-source.js +3 -3
- package/dist/lang/ast/sources/sql-source.d.ts +2 -2
- package/dist/lang/ast/sources/sql-source.js +2 -2
- package/dist/lang/ast/sources/table-source.d.ts +2 -2
- package/dist/lang/ast/sources/table-source.js +7 -7
- package/dist/lang/ast/space-seed.d.ts +2 -2
- package/dist/lang/ast/space-seed.js +1 -1
- package/dist/lang/ast/sql-elements/sql-statement.d.ts +4 -4
- package/dist/lang/ast/sql-elements/sql-statement.js +9 -9
- package/dist/lang/ast/sql-elements/sql-string.d.ts +3 -3
- package/dist/lang/ast/sql-elements/sql-string.js +6 -6
- package/dist/lang/ast/struct-utils.d.ts +2 -2
- package/dist/lang/ast/struct-utils.js +3 -3
- package/dist/lang/ast/time-utils.d.ts +6 -6
- package/dist/lang/ast/time-utils.js +46 -46
- package/dist/lang/ast/types/document-compile-result.d.ts +2 -2
- package/dist/lang/ast/types/executor.d.ts +3 -3
- package/dist/lang/ast/types/explore-desc.d.ts +2 -2
- package/dist/lang/ast/types/explore-desc.js +1 -1
- package/dist/lang/ast/types/explore-field.d.ts +3 -3
- package/dist/lang/ast/types/expr-result.d.ts +2 -2
- package/dist/lang/ast/types/expr-value.d.ts +2 -2
- package/dist/lang/ast/types/expression-def.d.ts +4 -4
- package/dist/lang/ast/types/expression-def.js +86 -86
- package/dist/lang/ast/types/field-collection-member.d.ts +3 -3
- package/dist/lang/ast/types/field-decl.d.ts +5 -5
- package/dist/lang/ast/types/field-space.d.ts +5 -5
- package/dist/lang/ast/types/field-space.js +1 -1
- package/dist/lang/ast/types/granular-result.d.ts +3 -3
- package/dist/lang/ast/types/granular-result.js +1 -1
- package/dist/lang/ast/types/lookup-result.d.ts +1 -1
- package/dist/lang/ast/types/malloy-element.d.ts +6 -6
- package/dist/lang/ast/types/malloy-element.js +49 -49
- package/dist/lang/ast/types/model-entry.d.ts +1 -1
- package/dist/lang/ast/types/name-space.d.ts +1 -1
- package/dist/lang/ast/types/nested-query.d.ts +2 -2
- package/dist/lang/ast/types/op-desc.d.ts +2 -2
- package/dist/lang/ast/types/query-comp.d.ts +1 -1
- package/dist/lang/ast/types/query-element.d.ts +3 -3
- package/dist/lang/ast/types/query-item.d.ts +4 -4
- package/dist/lang/ast/types/query-property.d.ts +15 -15
- package/dist/lang/ast/types/source-property.d.ts +8 -8
- package/dist/lang/ast/types/space-entry.d.ts +2 -2
- package/dist/lang/ast/types/space-field.d.ts +4 -4
- package/dist/lang/ast/types/space-field.js +4 -4
- package/dist/lang/ast/types/space-param.d.ts +4 -4
- package/dist/lang/ast/types/space-param.js +4 -4
- package/dist/lang/ast/types/time-result.d.ts +2 -2
- package/dist/lang/ast/types/turtle-headed-pipe.d.ts +2 -2
- package/dist/lang/ast/types/turtle-headed-pipe.js +1 -1
- package/dist/lang/ast/types/type-desc.d.ts +3 -3
- package/dist/lang/field-utils.d.ts +1 -1
- package/dist/lang/field-utils.js +4 -4
- package/dist/lang/index.d.ts +10 -10
- package/dist/lang/malloy-to-ast.d.ts +8 -8
- package/dist/lang/malloy-to-ast.js +68 -68
- package/dist/lang/parse-error-handler.d.ts +3 -3
- package/dist/lang/parse-error-handler.js +4 -4
- package/dist/lang/parse-log.d.ts +2 -2
- package/dist/lang/parse-log.js +1 -1
- package/dist/lang/parse-malloy.d.ts +7 -7
- package/dist/lang/parse-malloy.js +81 -81
- package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +2 -2
- package/dist/lang/parse-tree-walkers/document-completion-walker.js +38 -38
- package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +1 -1
- package/dist/lang/parse-tree-walkers/document-help-context-walker.js +14 -14
- package/dist/lang/parse-tree-walkers/document-highlight-walker.d.ts +3 -3
- package/dist/lang/parse-tree-walkers/document-highlight-walker.js +85 -85
- package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/document-symbol-walker.js +40 -40
- package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +3 -3
- package/dist/lang/parse-tree-walkers/explore-query-walker.js +3 -3
- package/dist/lang/parse-tree-walkers/find-external-references.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/find-external-references.js +2 -2
- package/dist/lang/reference-list.d.ts +1 -1
- package/dist/lang/test/document-help-context-walker.spec.js +9 -9
- package/dist/lang/test/document-symbol-walker.spec.js +32 -32
- package/dist/lang/test/field-symbols.spec.js +87 -87
- package/dist/lang/test/parse.spec.d.ts +1 -1
- package/dist/lang/test/parse.spec.js +768 -768
- package/dist/lang/test/test-translator.d.ts +6 -6
- package/dist/lang/test/test-translator.js +159 -159
- package/dist/lang/translate-response.d.ts +7 -7
- package/dist/lang/translate-response.js +1 -1
- package/dist/lang/zone.d.ts +5 -5
- package/dist/lang/zone.js +8 -8
- package/dist/malloy.d.ts +7 -7
- package/dist/malloy.js +192 -192
- package/dist/model/index.d.ts +2 -2
- package/dist/model/malloy_query.d.ts +12 -12
- package/dist/model/malloy_query.js +497 -502
- package/dist/model/malloy_types.d.ts +68 -68
- package/dist/model/malloy_types.js +102 -102
- package/dist/model/sql_block.d.ts +1 -1
- package/dist/model/sql_block.js +4 -4
- package/dist/model/utils.d.ts +1 -1
- package/dist/model/utils.js +10 -10
- package/dist/runtime_types.d.ts +2 -2
- package/package.json +4 -1
package/dist/lang/ast/index.d.ts
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
56
|
-
export * from
|
|
57
|
-
export * from
|
|
58
|
-
export * from
|
|
59
|
-
export * from
|
|
60
|
-
export * from
|
|
61
|
-
export * from
|
|
62
|
-
export * from
|
|
63
|
-
export * from
|
|
64
|
-
export * from
|
|
65
|
-
export * from
|
|
66
|
-
export * from
|
|
67
|
-
export * from
|
|
68
|
-
export * from
|
|
69
|
-
export * from
|
|
70
|
-
export * from
|
|
71
|
-
export * from
|
|
72
|
-
export * from
|
|
73
|
-
export * from
|
|
74
|
-
export * from
|
|
75
|
-
export * from
|
|
76
|
-
export * from
|
|
77
|
-
export * from
|
|
78
|
-
export * from
|
|
79
|
-
export * from
|
|
80
|
-
export * from
|
|
81
|
-
export * from
|
|
82
|
-
export * from
|
|
83
|
-
export * from
|
|
84
|
-
export * from
|
|
85
|
-
export * from
|
|
86
|
-
export * from
|
|
87
|
-
export * from
|
|
88
|
-
export * from
|
|
89
|
-
export * from
|
|
90
|
-
export * from
|
|
1
|
+
export * from './query-properties/nest';
|
|
2
|
+
export * from './elements/define-source';
|
|
3
|
+
export * from './elements/define-query';
|
|
4
|
+
export * from './elements/source';
|
|
5
|
+
export * from './elements/refined-source';
|
|
6
|
+
export * from './source-properties/field-list-edit';
|
|
7
|
+
export * from './source-properties/primary-key';
|
|
8
|
+
export * from './source-properties/renames';
|
|
9
|
+
export * from './source-properties/turtles';
|
|
10
|
+
export * from './expressions/apply';
|
|
11
|
+
export * from './expressions/binary-numeric';
|
|
12
|
+
export * from './expressions/boolean';
|
|
13
|
+
export * from './expressions/expr-add-sub';
|
|
14
|
+
export * from './expressions/expr-aggregate-function';
|
|
15
|
+
export * from './expressions/expr-alternation-tree';
|
|
16
|
+
export * from './expressions/expr-asymmetric';
|
|
17
|
+
export * from './expressions/expr-avg';
|
|
18
|
+
export * from './expressions/expr-cast';
|
|
19
|
+
export * from './expressions/expr-compare';
|
|
20
|
+
export * from './expressions/expr-count';
|
|
21
|
+
export * from './expressions/expr-count-distinct';
|
|
22
|
+
export * from './expressions/expr-filter';
|
|
23
|
+
export * from './expressions/expr-func';
|
|
24
|
+
export * from './expressions/expr-granular-time';
|
|
25
|
+
export * from './expressions/expr-id-reference';
|
|
26
|
+
export * from './expressions/expr-logical-op';
|
|
27
|
+
export * from './expressions/expr-max';
|
|
28
|
+
export * from './expressions/expr-min';
|
|
29
|
+
export * from './expressions/expr-minus';
|
|
30
|
+
export * from './expressions/expr-mul-div';
|
|
31
|
+
export * from './expressions/expr-not';
|
|
32
|
+
export * from './expressions/expr-now';
|
|
33
|
+
export * from './expressions/expr-null';
|
|
34
|
+
export * from './expressions/expr-number';
|
|
35
|
+
export * from './expressions/expr-parens';
|
|
36
|
+
export * from './expressions/expr-regex';
|
|
37
|
+
export * from './expressions/expr-string';
|
|
38
|
+
export * from './expressions/expr-sum';
|
|
39
|
+
export * from './expressions/expr-time-extract';
|
|
40
|
+
export * from './expressions/expr-ungroup';
|
|
41
|
+
export * from './expressions/for-range';
|
|
42
|
+
export * from './expressions/granular-literal';
|
|
43
|
+
export * from './expressions/partial-compare';
|
|
44
|
+
export * from './expressions/pick-when';
|
|
45
|
+
export * from './expressions/range';
|
|
46
|
+
export * from './expressions/time-frame';
|
|
47
|
+
export * from './expressions/top-by';
|
|
48
|
+
export * from './expressions/unary';
|
|
49
|
+
export * from './expressions/utils';
|
|
50
|
+
export * from './elements/import-statement';
|
|
51
|
+
export * from './query-properties/nest-reference';
|
|
52
|
+
export * from './parameters/has-parameter';
|
|
53
|
+
export * from './query-elements/anonymous-query';
|
|
54
|
+
export * from './query-elements/existing-query';
|
|
55
|
+
export * from './query-elements/full-query';
|
|
56
|
+
export * from './query-items/field-declaration';
|
|
57
|
+
export * from './query-items/field-references';
|
|
58
|
+
export * from './query-properties/aggregate';
|
|
59
|
+
export * from './query-properties/declare-fields';
|
|
60
|
+
export * from './query-properties/dimmensions';
|
|
61
|
+
export * from './query-properties/filters';
|
|
62
|
+
export * from './query-properties/group-by';
|
|
63
|
+
export * from './query-properties/indexing';
|
|
64
|
+
export * from './query-properties/joins';
|
|
65
|
+
export * from './query-properties/limit';
|
|
66
|
+
export * from './query-properties/measures';
|
|
67
|
+
export * from './query-properties/nests';
|
|
68
|
+
export * from './query-properties/ordering';
|
|
69
|
+
export * from './query-properties/project-statement';
|
|
70
|
+
export * from './query-properties/qop-desc';
|
|
71
|
+
export * from './query-properties/sampling';
|
|
72
|
+
export * from './query-properties/top';
|
|
73
|
+
export * from './sources/named-source';
|
|
74
|
+
export * from './sources/query-source';
|
|
75
|
+
export * from './sources/sql-source';
|
|
76
|
+
export * from './sources/table-source';
|
|
77
|
+
export * from './sql-elements/sql-statement';
|
|
78
|
+
export * from './sql-elements/sql-string';
|
|
79
|
+
export * from './types/comparison';
|
|
80
|
+
export * from './types/explore-desc';
|
|
81
|
+
export * from './types/source-property';
|
|
82
|
+
export * from './types/expression-def';
|
|
83
|
+
export * from './types/field-collection-member';
|
|
84
|
+
export * from './types/field-space';
|
|
85
|
+
export * from './types/malloy-element';
|
|
86
|
+
export * from './types/nested-query';
|
|
87
|
+
export * from './types/query-element';
|
|
88
|
+
export * from './types/query-item';
|
|
89
|
+
export * from './types/query-property';
|
|
90
|
+
export * from './types/turtle-headed-pipe';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Parameter } from
|
|
2
|
-
import { ConstantSubExpression } from
|
|
3
|
-
import { HasParameter } from
|
|
1
|
+
import { Parameter } from '../../../model/malloy_types';
|
|
2
|
+
import { ConstantSubExpression } from '../expressions/constant-sub-expression';
|
|
3
|
+
import { HasParameter } from './has-parameter';
|
|
4
4
|
export declare class ConstantParameter extends HasParameter {
|
|
5
5
|
readonly value: ConstantSubExpression;
|
|
6
6
|
constructor(name: string, value: ConstantSubExpression);
|
|
@@ -27,26 +27,26 @@ const malloy_types_1 = require("../../../model/malloy_types");
|
|
|
27
27
|
const has_parameter_1 = require("./has-parameter");
|
|
28
28
|
class ConstantParameter extends has_parameter_1.HasParameter {
|
|
29
29
|
constructor(name, value) {
|
|
30
|
-
super({ name,
|
|
30
|
+
super({ name, isCondition: false });
|
|
31
31
|
this.value = value;
|
|
32
|
-
this.has({
|
|
32
|
+
this.has({ value: value });
|
|
33
33
|
}
|
|
34
34
|
parameter() {
|
|
35
35
|
const cVal = this.value.constantValue();
|
|
36
36
|
if (!(0, malloy_types_1.isAtomicFieldType)(cVal.dataType)) {
|
|
37
37
|
this.log(`Unexpected expression type '${cVal.dataType}'`);
|
|
38
38
|
return {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
value: ['XXX-type-mismatch-error-XXX'],
|
|
40
|
+
type: 'string',
|
|
41
|
+
name: this.name,
|
|
42
|
+
constant: true,
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
value: cVal.value,
|
|
47
|
+
type: cVal.dataType,
|
|
48
|
+
name: this.name,
|
|
49
|
+
constant: true,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AtomicFieldType, Parameter } from
|
|
2
|
-
import { ConstantSubExpression } from
|
|
3
|
-
import { MalloyElement } from
|
|
1
|
+
import { AtomicFieldType, Parameter } from '../../../model/malloy_types';
|
|
2
|
+
import { ConstantSubExpression } from '../expressions/constant-sub-expression';
|
|
3
|
+
import { MalloyElement } from '../types/malloy-element';
|
|
4
4
|
interface HasInit {
|
|
5
5
|
name: string;
|
|
6
6
|
isCondition: boolean;
|
|
@@ -28,7 +28,7 @@ const malloy_element_1 = require("../types/malloy-element");
|
|
|
28
28
|
class HasParameter extends malloy_element_1.MalloyElement {
|
|
29
29
|
constructor(init) {
|
|
30
30
|
super();
|
|
31
|
-
this.elementType =
|
|
31
|
+
this.elementType = 'hasParameter';
|
|
32
32
|
this.name = init.name;
|
|
33
33
|
this.isCondition = init.isCondition;
|
|
34
34
|
if (init.type && (0, malloy_types_1.isAtomicFieldType)(init.type)) {
|
|
@@ -36,27 +36,27 @@ class HasParameter extends malloy_element_1.MalloyElement {
|
|
|
36
36
|
}
|
|
37
37
|
if (init.default) {
|
|
38
38
|
this.default = init.default;
|
|
39
|
-
this.has({
|
|
39
|
+
this.has({ default: this.default });
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
parameter() {
|
|
43
43
|
var _a, _b;
|
|
44
44
|
const name = this.name;
|
|
45
|
-
const type = this.type ||
|
|
45
|
+
const type = this.type || 'string';
|
|
46
46
|
if (this.isCondition) {
|
|
47
47
|
const cCond = ((_a = this.default) === null || _a === void 0 ? void 0 : _a.constantCondition(type).value) || null;
|
|
48
48
|
return {
|
|
49
49
|
type,
|
|
50
50
|
name,
|
|
51
|
-
|
|
51
|
+
condition: cCond,
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
const cVal = ((_b = this.default) === null || _b === void 0 ? void 0 : _b.constantValue().value) || null;
|
|
55
55
|
return {
|
|
56
|
-
|
|
56
|
+
value: cVal,
|
|
57
57
|
type,
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
name: this.name,
|
|
59
|
+
constant: false,
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ModelDataRequest } from
|
|
2
|
-
import { DocStatement, Document, MalloyElement } from
|
|
3
|
-
import { QueryElement } from
|
|
1
|
+
import { ModelDataRequest } from '../../translate-response';
|
|
2
|
+
import { DocStatement, Document, MalloyElement } from '../types/malloy-element';
|
|
3
|
+
import { QueryElement } from '../types/query-element';
|
|
4
4
|
export declare class AnonymousQuery extends MalloyElement implements DocStatement {
|
|
5
5
|
readonly theQuery: QueryElement;
|
|
6
6
|
elementType: string;
|
|
@@ -28,8 +28,8 @@ class AnonymousQuery extends malloy_element_1.MalloyElement {
|
|
|
28
28
|
constructor(theQuery) {
|
|
29
29
|
super();
|
|
30
30
|
this.theQuery = theQuery;
|
|
31
|
-
this.elementType =
|
|
32
|
-
this.has({
|
|
31
|
+
this.elementType = 'anonymousQuery';
|
|
32
|
+
this.has({ query: theQuery });
|
|
33
33
|
}
|
|
34
34
|
execute(doc) {
|
|
35
35
|
const modelQuery = this.theQuery.query();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Query } from
|
|
2
|
-
import { PipelineDesc } from
|
|
3
|
-
import { ModelEntryReference } from
|
|
4
|
-
import { QueryComp } from
|
|
1
|
+
import { Query } from '../../../model/malloy_types';
|
|
2
|
+
import { PipelineDesc } from '../elements/pipeline-desc';
|
|
3
|
+
import { ModelEntryReference } from '../types/malloy-element';
|
|
4
|
+
import { QueryComp } from '../types/query-comp';
|
|
5
5
|
export declare class ExistingQuery extends PipelineDesc {
|
|
6
6
|
_head?: ModelEntryReference;
|
|
7
7
|
set head(head: ModelEntryReference | undefined);
|
|
@@ -30,7 +30,7 @@ const query_head_struct_1 = require("./query-head-struct");
|
|
|
30
30
|
class ExistingQuery extends pipeline_desc_1.PipelineDesc {
|
|
31
31
|
set head(head) {
|
|
32
32
|
this._head = head;
|
|
33
|
-
this.has({
|
|
33
|
+
this.has({ head: head });
|
|
34
34
|
}
|
|
35
35
|
get head() {
|
|
36
36
|
return this._head;
|
|
@@ -43,33 +43,33 @@ class ExistingQuery extends pipeline_desc_1.PipelineDesc {
|
|
|
43
43
|
const seedQuery = queryEntry === null || queryEntry === void 0 ? void 0 : queryEntry.entry;
|
|
44
44
|
const oops = function () {
|
|
45
45
|
return {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
outputStruct: error_factory_1.ErrorFactory.structDef,
|
|
47
|
+
query: error_factory_1.ErrorFactory.query,
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
if (!seedQuery) {
|
|
51
51
|
this.log(`Reference to undefined query '${this.head}'`);
|
|
52
52
|
return oops();
|
|
53
53
|
}
|
|
54
|
-
if (seedQuery.type !==
|
|
54
|
+
if (seedQuery.type !== 'query') {
|
|
55
55
|
this.log(`Illegal reference to '${this.head}', query expected`);
|
|
56
56
|
return oops();
|
|
57
57
|
}
|
|
58
58
|
const queryHead = new query_head_struct_1.QueryHeadStruct(seedQuery.structRef);
|
|
59
|
-
this.has({
|
|
59
|
+
this.has({ queryHead: queryHead });
|
|
60
60
|
const exploreStruct = queryHead.structDef();
|
|
61
61
|
const exploreFS = new static_space_1.StaticSpace(exploreStruct);
|
|
62
62
|
const sourcePipe = this.refinePipeline(exploreFS, seedQuery);
|
|
63
63
|
const walkStruct = this.getOutputStruct(exploreStruct, sourcePipe.pipeline);
|
|
64
64
|
const appended = this.appendOps(sourcePipe.pipeline, new static_space_1.StaticSpace(walkStruct));
|
|
65
|
-
const destPipe = { ...sourcePipe,
|
|
65
|
+
const destPipe = { ...sourcePipe, pipeline: appended.opList };
|
|
66
66
|
const query = {
|
|
67
|
-
|
|
67
|
+
type: 'query',
|
|
68
68
|
...destPipe,
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
structRef: queryHead.structRef(),
|
|
70
|
+
location: this.location,
|
|
71
71
|
};
|
|
72
|
-
return {
|
|
72
|
+
return { outputStruct: appended.structDef, query };
|
|
73
73
|
}
|
|
74
74
|
query() {
|
|
75
75
|
return this.queryComp().query;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Query } from
|
|
2
|
-
import { Source } from
|
|
3
|
-
import { QueryComp } from
|
|
4
|
-
import { TurtleHeadedPipe } from
|
|
1
|
+
import { Query } from '../../../model/malloy_types';
|
|
2
|
+
import { Source } from '../elements/source';
|
|
3
|
+
import { QueryComp } from '../types/query-comp';
|
|
4
|
+
import { TurtleHeadedPipe } from '../types/turtle-headed-pipe';
|
|
5
5
|
export declare class FullQuery extends TurtleHeadedPipe {
|
|
6
6
|
readonly explore: Source;
|
|
7
7
|
constructor(explore: Source);
|
|
@@ -29,16 +29,16 @@ const static_space_1 = require("../field-space/static-space");
|
|
|
29
29
|
const turtle_headed_pipe_1 = require("../types/turtle-headed-pipe");
|
|
30
30
|
class FullQuery extends turtle_headed_pipe_1.TurtleHeadedPipe {
|
|
31
31
|
constructor(explore) {
|
|
32
|
-
super({
|
|
32
|
+
super({ explore: explore });
|
|
33
33
|
this.explore = explore;
|
|
34
34
|
}
|
|
35
35
|
queryComp() {
|
|
36
36
|
const structRef = this.explore.structRef();
|
|
37
37
|
const destQuery = {
|
|
38
|
-
|
|
38
|
+
type: 'query',
|
|
39
39
|
structRef,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
pipeline: [],
|
|
41
|
+
location: this.location,
|
|
42
42
|
};
|
|
43
43
|
const structDef = (0, malloy_types_1.refIsStructDef)(structRef)
|
|
44
44
|
? structRef
|
|
@@ -46,11 +46,11 @@ class FullQuery extends turtle_headed_pipe_1.TurtleHeadedPipe {
|
|
|
46
46
|
let pipeFs = new static_space_1.StaticSpace(structDef);
|
|
47
47
|
if (error_factory_1.ErrorFactory.isErrorStructDef(structDef)) {
|
|
48
48
|
return {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
49
|
+
outputStruct: structDef,
|
|
50
|
+
query: {
|
|
51
|
+
structRef: structRef,
|
|
52
|
+
pipeline: [],
|
|
53
|
+
},
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
if (this.turtleName) {
|
|
@@ -75,7 +75,7 @@ class FullQuery extends turtle_headed_pipe_1.TurtleHeadedPipe {
|
|
|
75
75
|
}
|
|
76
76
|
const appended = this.appendOps(destQuery.pipeline, pipeFs);
|
|
77
77
|
destQuery.pipeline = appended.opList;
|
|
78
|
-
return {
|
|
78
|
+
return { outputStruct: appended.structDef, query: destQuery };
|
|
79
79
|
}
|
|
80
80
|
query() {
|
|
81
81
|
return this.queryComp().query;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StructDef, StructRef } from
|
|
2
|
-
import { Source } from
|
|
1
|
+
import { StructDef, StructRef } from '../../../model/malloy_types';
|
|
2
|
+
import { Source } from '../elements/source';
|
|
3
3
|
export declare class QueryHeadStruct extends Source {
|
|
4
4
|
readonly fromRef: StructRef;
|
|
5
5
|
elementType: string;
|
|
@@ -30,7 +30,7 @@ class QueryHeadStruct extends source_1.Source {
|
|
|
30
30
|
constructor(fromRef) {
|
|
31
31
|
super();
|
|
32
32
|
this.fromRef = fromRef;
|
|
33
|
-
this.elementType =
|
|
33
|
+
this.elementType = 'internalOnlyQueryHead';
|
|
34
34
|
}
|
|
35
35
|
structRef() {
|
|
36
36
|
return this.fromRef;
|
|
@@ -40,7 +40,7 @@ class QueryHeadStruct extends source_1.Source {
|
|
|
40
40
|
return this.fromRef;
|
|
41
41
|
}
|
|
42
42
|
const ns = new named_source_1.NamedSource(this.fromRef);
|
|
43
|
-
this.has({
|
|
43
|
+
this.has({ exploreReference: ns });
|
|
44
44
|
return ns.structDef();
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Dialect } from
|
|
2
|
-
import { FieldTypeDef, StructDef } from
|
|
3
|
-
import { ExpressionDef } from
|
|
4
|
-
import { FieldName, FieldSpace } from
|
|
5
|
-
import { LookupResult } from
|
|
6
|
-
import { MalloyElement } from
|
|
1
|
+
import { Dialect } from '../../../dialect/dialect';
|
|
2
|
+
import { FieldTypeDef, StructDef } from '../../../model/malloy_types';
|
|
3
|
+
import { ExpressionDef } from '../types/expression-def';
|
|
4
|
+
import { FieldName, FieldSpace } from '../types/field-space';
|
|
5
|
+
import { LookupResult } from '../types/lookup-result';
|
|
6
|
+
import { MalloyElement } from '../types/malloy-element';
|
|
7
7
|
export declare class FieldDeclaration extends MalloyElement {
|
|
8
8
|
readonly expr: ExpressionDef;
|
|
9
9
|
readonly defineName: string;
|
|
@@ -30,11 +30,11 @@ const granular_result_1 = require("../types/granular-result");
|
|
|
30
30
|
const malloy_element_1 = require("../types/malloy-element");
|
|
31
31
|
class FieldDeclaration extends malloy_element_1.MalloyElement {
|
|
32
32
|
constructor(expr, defineName, exprSrc) {
|
|
33
|
-
super({
|
|
33
|
+
super({ expr: expr });
|
|
34
34
|
this.expr = expr;
|
|
35
35
|
this.defineName = defineName;
|
|
36
36
|
this.exprSrc = exprSrc;
|
|
37
|
-
this.elementType =
|
|
37
|
+
this.elementType = 'fieldDeclaration';
|
|
38
38
|
}
|
|
39
39
|
fieldDef(fs, exprName) {
|
|
40
40
|
/*
|
|
@@ -56,17 +56,17 @@ class FieldDeclaration extends malloy_element_1.MalloyElement {
|
|
|
56
56
|
catch (error) {
|
|
57
57
|
this.log(`Cannot define '${exprName}', ${error.message}`);
|
|
58
58
|
return {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
name: `error_defining_${exprName}`,
|
|
60
|
+
type: 'string',
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
const compressValue = (0, utils_1.compressExpr)(exprValue.value);
|
|
64
64
|
const retType = exprValue.dataType;
|
|
65
65
|
if ((0, malloy_types_1.isAtomicFieldType)(retType)) {
|
|
66
66
|
const template = {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
name: exprName,
|
|
68
|
+
type: retType,
|
|
69
|
+
location: this.location,
|
|
70
70
|
};
|
|
71
71
|
if (compressValue.length > 0) {
|
|
72
72
|
template.e = compressValue;
|
|
@@ -78,14 +78,14 @@ class FieldDeclaration extends malloy_element_1.MalloyElement {
|
|
|
78
78
|
template.code = this.exprSrc;
|
|
79
79
|
}
|
|
80
80
|
// TODO this should work for dates too
|
|
81
|
-
if ((0, granular_result_1.isGranularResult)(exprValue) && template.type ===
|
|
81
|
+
if ((0, granular_result_1.isGranularResult)(exprValue) && template.type === 'timestamp') {
|
|
82
82
|
template.timeframe = exprValue.timeframe;
|
|
83
83
|
}
|
|
84
84
|
return template;
|
|
85
85
|
}
|
|
86
86
|
const circularDef = exprFS instanceof DefSpace && exprFS.foundCircle;
|
|
87
87
|
if (!circularDef) {
|
|
88
|
-
if (exprValue.dataType
|
|
88
|
+
if (exprValue.dataType === 'unknown') {
|
|
89
89
|
this.log(`Cannot define '${exprName}', value has unknown type`);
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
@@ -94,8 +94,8 @@ class FieldDeclaration extends malloy_element_1.MalloyElement {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
return {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
name: `error_defining_${exprName}`,
|
|
98
|
+
type: 'string',
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -107,7 +107,7 @@ class DefSpace {
|
|
|
107
107
|
constructor(realFS, circular) {
|
|
108
108
|
this.realFS = realFS;
|
|
109
109
|
this.circular = circular;
|
|
110
|
-
this.type =
|
|
110
|
+
this.type = 'fieldSpace';
|
|
111
111
|
this.foundCircle = false;
|
|
112
112
|
}
|
|
113
113
|
structDef() {
|
|
@@ -120,8 +120,8 @@ class DefSpace {
|
|
|
120
120
|
if (symbol[0] && symbol[0].refString === this.circular.defineName) {
|
|
121
121
|
this.foundCircle = true;
|
|
122
122
|
return {
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
error: `Circular reference to '${this.circular.defineName}' in definition`,
|
|
124
|
+
found: undefined,
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
return this.realFS.lookup(symbol);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FieldDef } from
|
|
2
|
-
import { FieldName, FieldSpace } from
|
|
3
|
-
import { LookupResult } from
|
|
4
|
-
import { ListOf, MalloyElement } from
|
|
1
|
+
import { FieldDef } from '../../../model/malloy_types';
|
|
2
|
+
import { FieldName, FieldSpace } from '../types/field-space';
|
|
3
|
+
import { LookupResult } from '../types/lookup-result';
|
|
4
|
+
import { ListOf, MalloyElement } from '../types/malloy-element';
|
|
5
5
|
export declare class FieldReference extends ListOf<FieldName> {
|
|
6
6
|
elementType: string;
|
|
7
7
|
constructor(names: FieldName[]);
|
|
@@ -13,9 +13,9 @@ export declare class FieldReference extends ListOf<FieldName> {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class WildcardFieldReference extends MalloyElement {
|
|
15
15
|
readonly joinPath: FieldReference | undefined;
|
|
16
|
-
readonly star:
|
|
16
|
+
readonly star: '*' | '**';
|
|
17
17
|
elementType: string;
|
|
18
|
-
constructor(joinPath: FieldReference | undefined, star:
|
|
18
|
+
constructor(joinPath: FieldReference | undefined, star: '*' | '**');
|
|
19
19
|
getFieldDef(): FieldDef;
|
|
20
20
|
get refString(): string;
|
|
21
21
|
}
|