@malloydata/malloy 0.0.215 → 0.0.216-dev241118202522
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/dialect/functions/util.d.ts +8 -8
- package/dist/dialect/functions/util.js +15 -7
- package/dist/lang/ast/ast-utils.js +2 -0
- package/dist/lang/ast/expressions/expr-aggregate-function.js +1 -0
- package/dist/lang/ast/expressions/expr-compare.js +7 -14
- package/dist/lang/ast/expressions/expr-count-distinct.js +1 -0
- package/dist/lang/ast/expressions/expr-count.js +3 -0
- package/dist/lang/ast/expressions/expr-func.js +3 -0
- package/dist/lang/ast/expressions/expr-id-reference.js +10 -1
- package/dist/lang/ast/expressions/expr-now.js +2 -0
- package/dist/lang/ast/expressions/expr-ungroup.js +1 -0
- package/dist/lang/ast/field-space/dynamic-space.d.ts +1 -3
- package/dist/lang/ast/field-space/dynamic-space.js +11 -15
- package/dist/lang/ast/field-space/query-spaces.d.ts +19 -0
- package/dist/lang/ast/field-space/query-spaces.js +104 -12
- package/dist/lang/ast/field-space/reference-field.js +7 -1
- package/dist/lang/ast/field-space/refined-space.d.ts +1 -0
- package/dist/lang/ast/field-space/refined-space.js +9 -6
- package/dist/lang/ast/field-space/struct-space-field-base.js +4 -0
- package/dist/lang/ast/index.d.ts +1 -0
- package/dist/lang/ast/index.js +1 -0
- package/dist/lang/ast/query-builders/index-builder.js +1 -1
- package/dist/lang/ast/query-builders/reduce-builder.d.ts +2 -1
- package/dist/lang/ast/query-builders/reduce-builder.js +9 -5
- package/dist/lang/ast/query-elements/query-base.js +16 -3
- package/dist/lang/ast/query-items/field-declaration.js +3 -0
- package/dist/lang/ast/query-properties/filters.d.ts +3 -0
- package/dist/lang/ast/query-properties/filters.js +42 -26
- package/dist/lang/ast/query-properties/nest.d.ts +1 -0
- package/dist/lang/ast/query-properties/nest.js +5 -1
- package/dist/lang/ast/source-elements/composite-source.d.ts +16 -0
- package/dist/lang/ast/source-elements/composite-source.js +75 -0
- package/dist/lang/ast/source-elements/source.d.ts +2 -2
- package/dist/lang/ast/source-properties/join.js +2 -0
- package/dist/lang/ast/source-query-elements/sq-compose.d.ts +13 -0
- package/dist/lang/ast/source-query-elements/sq-compose.js +48 -0
- package/dist/lang/ast/typedesc-utils.js +7 -1
- package/dist/lang/ast/types/expr-value.js +4 -0
- package/dist/lang/ast/types/expression-def.js +4 -5
- package/dist/lang/ast/types/query-builder.d.ts +2 -1
- package/dist/lang/ast/types/space-field.js +14 -1
- package/dist/lang/ast/types/space-param.js +3 -0
- package/dist/lang/ast/view-elements/reference-view.js +1 -0
- package/dist/lang/ast/view-elements/refine-utils.js +2 -0
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +113 -112
- package/dist/lang/lib/Malloy/MalloyLexer.js +1149 -1143
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +126 -112
- package/dist/lang/lib/Malloy/MalloyParser.js +1380 -1282
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +13 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +8 -0
- package/dist/lang/malloy-to-ast.d.ts +1 -0
- package/dist/lang/malloy-to-ast.js +5 -0
- package/dist/lang/parse-log.d.ts +10 -1
- package/dist/lang/parse-log.js +7 -0
- package/dist/lang/test/composite-field-usage.spec.d.ts +1 -0
- package/dist/lang/test/composite-field-usage.spec.js +155 -0
- package/dist/lang/test/parse-expects.d.ts +2 -1
- package/dist/lang/test/parse-expects.js +36 -0
- package/dist/lang/test/source.spec.js +9 -0
- package/dist/lang/test/test-translator.d.ts +3 -1
- package/dist/lang/test/test-translator.js +15 -4
- package/dist/lang/utils.d.ts +1 -0
- package/dist/lang/utils.js +5 -1
- package/dist/model/composite_source_utils.d.ts +65 -0
- package/dist/model/composite_source_utils.js +279 -0
- package/dist/model/malloy_query.d.ts +3 -3
- package/dist/model/malloy_query.js +13 -6
- package/dist/model/malloy_types.d.ts +19 -2
- package/dist/model/malloy_types.js +15 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -52,118 +52,119 @@ export declare class MalloyParser extends Parser {
|
|
|
52
52
|
static readonly CAST = 41;
|
|
53
53
|
static readonly CONDITION = 42;
|
|
54
54
|
static readonly COUNT = 43;
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
118
|
-
static readonly
|
|
119
|
-
static readonly
|
|
120
|
-
static readonly
|
|
121
|
-
static readonly
|
|
122
|
-
static readonly
|
|
123
|
-
static readonly
|
|
124
|
-
static readonly
|
|
125
|
-
static readonly
|
|
126
|
-
static readonly
|
|
127
|
-
static readonly
|
|
128
|
-
static readonly
|
|
129
|
-
static readonly
|
|
130
|
-
static readonly
|
|
131
|
-
static readonly
|
|
132
|
-
static readonly
|
|
133
|
-
static readonly
|
|
134
|
-
static readonly
|
|
135
|
-
static readonly
|
|
136
|
-
static readonly
|
|
137
|
-
static readonly
|
|
138
|
-
static readonly
|
|
139
|
-
static readonly
|
|
140
|
-
static readonly
|
|
141
|
-
static readonly
|
|
142
|
-
static readonly
|
|
143
|
-
static readonly
|
|
144
|
-
static readonly
|
|
145
|
-
static readonly
|
|
146
|
-
static readonly
|
|
147
|
-
static readonly
|
|
148
|
-
static readonly
|
|
149
|
-
static readonly
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
158
|
-
static readonly
|
|
159
|
-
static readonly
|
|
160
|
-
static readonly
|
|
161
|
-
static readonly
|
|
162
|
-
static readonly
|
|
163
|
-
static readonly
|
|
164
|
-
static readonly
|
|
165
|
-
static readonly
|
|
166
|
-
static readonly
|
|
55
|
+
static readonly COMPOSE = 44;
|
|
56
|
+
static readonly DATE = 45;
|
|
57
|
+
static readonly DAY = 46;
|
|
58
|
+
static readonly DESC = 47;
|
|
59
|
+
static readonly DISTINCT = 48;
|
|
60
|
+
static readonly ELSE = 49;
|
|
61
|
+
static readonly END = 50;
|
|
62
|
+
static readonly EXCLUDE = 51;
|
|
63
|
+
static readonly EXTEND = 52;
|
|
64
|
+
static readonly FALSE = 53;
|
|
65
|
+
static readonly FULL = 54;
|
|
66
|
+
static readonly FOR = 55;
|
|
67
|
+
static readonly FROM = 56;
|
|
68
|
+
static readonly HAS = 57;
|
|
69
|
+
static readonly HOUR = 58;
|
|
70
|
+
static readonly IMPORT = 59;
|
|
71
|
+
static readonly INNER = 60;
|
|
72
|
+
static readonly IS = 61;
|
|
73
|
+
static readonly IN = 62;
|
|
74
|
+
static readonly JSON = 63;
|
|
75
|
+
static readonly LAST = 64;
|
|
76
|
+
static readonly LEFT = 65;
|
|
77
|
+
static readonly LIKE = 66;
|
|
78
|
+
static readonly MAX = 67;
|
|
79
|
+
static readonly MIN = 68;
|
|
80
|
+
static readonly MINUTE = 69;
|
|
81
|
+
static readonly MONTH = 70;
|
|
82
|
+
static readonly NOT = 71;
|
|
83
|
+
static readonly NOW = 72;
|
|
84
|
+
static readonly NULL = 73;
|
|
85
|
+
static readonly NUMBER = 74;
|
|
86
|
+
static readonly ON = 75;
|
|
87
|
+
static readonly OR = 76;
|
|
88
|
+
static readonly PICK = 77;
|
|
89
|
+
static readonly QUARTER = 78;
|
|
90
|
+
static readonly RIGHT = 79;
|
|
91
|
+
static readonly SECOND = 80;
|
|
92
|
+
static readonly STRING = 81;
|
|
93
|
+
static readonly SOURCE_KW = 82;
|
|
94
|
+
static readonly SUM = 83;
|
|
95
|
+
static readonly SQL = 84;
|
|
96
|
+
static readonly TABLE = 85;
|
|
97
|
+
static readonly THEN = 86;
|
|
98
|
+
static readonly THIS = 87;
|
|
99
|
+
static readonly TIMESTAMP = 88;
|
|
100
|
+
static readonly TO = 89;
|
|
101
|
+
static readonly TRUE = 90;
|
|
102
|
+
static readonly TURTLE = 91;
|
|
103
|
+
static readonly WEEK = 92;
|
|
104
|
+
static readonly WHEN = 93;
|
|
105
|
+
static readonly WITH = 94;
|
|
106
|
+
static readonly YEAR = 95;
|
|
107
|
+
static readonly UNGROUPED = 96;
|
|
108
|
+
static readonly STRING_ESCAPE = 97;
|
|
109
|
+
static readonly HACKY_REGEX = 98;
|
|
110
|
+
static readonly SQ_STRING = 99;
|
|
111
|
+
static readonly DQ_STRING = 100;
|
|
112
|
+
static readonly BQ_STRING = 101;
|
|
113
|
+
static readonly DOC_ANNOTATION = 102;
|
|
114
|
+
static readonly ANNOTATION = 103;
|
|
115
|
+
static readonly AMPER = 104;
|
|
116
|
+
static readonly ARROW = 105;
|
|
117
|
+
static readonly FAT_ARROW = 106;
|
|
118
|
+
static readonly OPAREN = 107;
|
|
119
|
+
static readonly CPAREN = 108;
|
|
120
|
+
static readonly OBRACK = 109;
|
|
121
|
+
static readonly CBRACK = 110;
|
|
122
|
+
static readonly OCURLY = 111;
|
|
123
|
+
static readonly CCURLY = 112;
|
|
124
|
+
static readonly DOUBLECOLON = 113;
|
|
125
|
+
static readonly TRIPLECOLON = 114;
|
|
126
|
+
static readonly EXCLAM = 115;
|
|
127
|
+
static readonly COLON = 116;
|
|
128
|
+
static readonly COMMA = 117;
|
|
129
|
+
static readonly DOT = 118;
|
|
130
|
+
static readonly LT = 119;
|
|
131
|
+
static readonly GT = 120;
|
|
132
|
+
static readonly EQ = 121;
|
|
133
|
+
static readonly NE = 122;
|
|
134
|
+
static readonly LTE = 123;
|
|
135
|
+
static readonly GTE = 124;
|
|
136
|
+
static readonly PLUS = 125;
|
|
137
|
+
static readonly MINUS = 126;
|
|
138
|
+
static readonly STAR = 127;
|
|
139
|
+
static readonly STARSTAR = 128;
|
|
140
|
+
static readonly SLASH = 129;
|
|
141
|
+
static readonly BAR = 130;
|
|
142
|
+
static readonly SEMI = 131;
|
|
143
|
+
static readonly NOT_MATCH = 132;
|
|
144
|
+
static readonly MATCH = 133;
|
|
145
|
+
static readonly PERCENT = 134;
|
|
146
|
+
static readonly DOUBLE_QMARK = 135;
|
|
147
|
+
static readonly QMARK = 136;
|
|
148
|
+
static readonly LITERAL_TIMESTAMP = 137;
|
|
149
|
+
static readonly LITERAL_HOUR = 138;
|
|
150
|
+
static readonly LITERAL_DAY = 139;
|
|
151
|
+
static readonly LITERAL_QUARTER = 140;
|
|
152
|
+
static readonly LITERAL_MONTH = 141;
|
|
153
|
+
static readonly LITERAL_WEEK = 142;
|
|
154
|
+
static readonly LITERAL_YEAR = 143;
|
|
155
|
+
static readonly IDENTIFIER = 144;
|
|
156
|
+
static readonly PERCENT_LITERAL = 145;
|
|
157
|
+
static readonly NUMERIC_LITERAL = 146;
|
|
158
|
+
static readonly INTEGER_LITERAL = 147;
|
|
159
|
+
static readonly BLOCK_COMMENT = 148;
|
|
160
|
+
static readonly COMMENT_TO_EOL = 149;
|
|
161
|
+
static readonly WHITE_SPACE = 150;
|
|
162
|
+
static readonly SQL_BEGIN = 151;
|
|
163
|
+
static readonly CLOSE_CODE = 152;
|
|
164
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 153;
|
|
165
|
+
static readonly UNEXPECTED_CHAR = 154;
|
|
166
|
+
static readonly OPEN_CODE = 155;
|
|
167
|
+
static readonly SQL_END = 156;
|
|
167
168
|
static readonly RULE_malloyDocument = 0;
|
|
168
169
|
static readonly RULE_closeCurly = 1;
|
|
169
170
|
static readonly RULE_malloyStatement = 2;
|
|
@@ -1164,6 +1165,19 @@ export declare class SQParensContext extends SqExprContext {
|
|
|
1164
1165
|
exitRule(listener: MalloyParserListener): void;
|
|
1165
1166
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1166
1167
|
}
|
|
1168
|
+
export declare class SQComposeContext extends SqExprContext {
|
|
1169
|
+
COMPOSE(): TerminalNode;
|
|
1170
|
+
OPAREN(): TerminalNode;
|
|
1171
|
+
CPAREN(): TerminalNode;
|
|
1172
|
+
sqExpr(): SqExprContext[];
|
|
1173
|
+
sqExpr(i: number): SqExprContext;
|
|
1174
|
+
COMMA(): TerminalNode[];
|
|
1175
|
+
COMMA(i: number): TerminalNode;
|
|
1176
|
+
constructor(ctx: SqExprContext);
|
|
1177
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1178
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1179
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1180
|
+
}
|
|
1167
1181
|
export declare class SQRefinedQueryContext extends SqExprContext {
|
|
1168
1182
|
sqExpr(): SqExprContext;
|
|
1169
1183
|
PLUS(): TerminalNode;
|