@malloydata/malloy 0.0.278 → 0.0.280
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/annotation.js +3 -4
- package/dist/api/asynchronous.js +21 -12
- package/dist/api/core.js +29 -20
- package/dist/api/index.js +17 -7
- package/dist/api/sessioned.js +20 -11
- package/dist/api/stateless.js +20 -11
- package/dist/api/util.js +6 -6
- package/dist/connection_utils.js +1 -2
- package/dist/dialect/dialect.js +3 -3
- package/dist/dialect/dialect_map.js +3 -4
- package/dist/dialect/functions/malloy_standard_functions.d.ts +1 -0
- package/dist/dialect/functions/malloy_standard_functions.js +9 -3
- package/dist/dialect/functions/util.d.ts +1 -1
- package/dist/dialect/functions/util.js +21 -22
- package/dist/dialect/trino/dialect_functions.js +18 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -8
- package/dist/lang/ast/ast-utils.js +1 -2
- package/dist/lang/ast/expressions/binary-boolean.js +17 -7
- package/dist/lang/ast/expressions/binary-numeric.js +17 -7
- package/dist/lang/ast/expressions/boolean.js +17 -7
- package/dist/lang/ast/expressions/case.js +17 -7
- package/dist/lang/ast/expressions/expr-aggregate-function.js +17 -7
- package/dist/lang/ast/expressions/expr-array-literal.js +17 -7
- package/dist/lang/ast/expressions/expr-coalesce.js +17 -7
- package/dist/lang/ast/expressions/expr-compare.js +17 -7
- package/dist/lang/ast/expressions/expr-count-distinct.js +17 -7
- package/dist/lang/ast/expressions/expr-func.js +17 -7
- package/dist/lang/ast/expressions/expr-granular-time.js +17 -7
- package/dist/lang/ast/expressions/expr-logical-op.js +17 -7
- package/dist/lang/ast/expressions/expr-max.js +17 -7
- package/dist/lang/ast/expressions/expr-min.js +17 -7
- package/dist/lang/ast/expressions/expr-minus.js +17 -7
- package/dist/lang/ast/expressions/expr-not.js +17 -7
- package/dist/lang/ast/expressions/expr-props.d.ts +36 -36
- package/dist/lang/ast/expressions/expr-props.js +17 -7
- package/dist/lang/ast/expressions/expr-record-literal.js +17 -7
- package/dist/lang/ast/expressions/expr-ungroup.js +17 -7
- package/dist/lang/ast/expressions/for-range.js +17 -7
- package/dist/lang/ast/expressions/pick-when.js +17 -7
- package/dist/lang/ast/field-space/dynamic-space.js +17 -7
- package/dist/lang/ast/field-space/include-utils.js +2 -3
- package/dist/lang/ast/field-space/query-spaces.js +17 -7
- package/dist/lang/ast/field-space/reference-field.js +17 -7
- package/dist/lang/ast/field-space/struct-space-field-base.js +17 -7
- package/dist/lang/ast/field-space/view-field.d.ts +31 -31
- package/dist/lang/ast/field-space/view-field.js +17 -7
- package/dist/lang/ast/query-items/field-declaration.js +17 -7
- package/dist/lang/ast/query-items/typecheck_utils.js +8 -9
- package/dist/lang/ast/query-properties/nest.js +17 -7
- package/dist/lang/ast/query-utils.js +3 -4
- package/dist/lang/ast/struct-utils.js +3 -4
- package/dist/lang/ast/time-utils.js +4 -5
- package/dist/lang/ast/typedesc-utils.js +7 -7
- package/dist/lang/ast/types/binary_operators.js +3 -4
- package/dist/lang/ast/types/expr-value.js +7 -8
- package/dist/lang/ast/types/expression-def.js +21 -11
- package/dist/lang/ast/types/field-collection-member.js +1 -2
- package/dist/lang/ast/types/field-prop-statement.js +1 -2
- package/dist/lang/ast/types/global-name-space.js +2 -2
- package/dist/lang/ast/types/granular-result.js +1 -2
- package/dist/lang/ast/types/malloy-element.js +3 -3
- package/dist/lang/ast/types/noteable.js +3 -4
- package/dist/lang/ast/types/query-element.js +1 -2
- package/dist/lang/ast/types/query-extend-property.js +1 -2
- package/dist/lang/ast/types/query-property.js +1 -2
- package/dist/lang/ast/types/source-property.js +1 -2
- package/dist/lang/ast/types/space-entry.js +2 -2
- package/dist/lang/ast/types/space-param.js +17 -7
- package/dist/lang/ast/view-elements/refine-utils.js +1 -2
- package/dist/lang/field-utils.js +2 -3
- package/dist/lang/lib/Malloy/MalloyLexer.js +17 -7
- package/dist/lang/lib/Malloy/MalloyParser.js +17 -7
- package/dist/lang/malloy-to-ast.js +17 -7
- package/dist/lang/malloy-to-stable-query.js +19 -9
- package/dist/lang/parse-log.js +2 -2
- package/dist/lang/parse-malloy.js +17 -7
- package/dist/lang/parse-tree-walkers/document-completion-walker.js +1 -2
- package/dist/lang/parse-tree-walkers/document-help-context-walker.js +1 -2
- package/dist/lang/parse-tree-walkers/document-symbol-walker.js +1 -2
- package/dist/lang/parse-tree-walkers/explore-query-walker.js +2 -2
- package/dist/lang/parse-tree-walkers/find-external-references.js +3 -4
- package/dist/lang/parse-tree-walkers/find-table-path-walker.js +1 -2
- package/dist/lang/parse-tree-walkers/model-annotation-walker.js +1 -2
- package/dist/lang/parse-utils.js +8 -9
- package/dist/lang/run-malloy-parser.js +1 -2
- package/dist/lang/test/expr-to-str.js +1 -2
- package/dist/lang/test/test-translator.js +18 -18
- package/dist/lang/translate-response.js +1 -2
- package/dist/lang/utils.js +6 -7
- package/dist/malloy.d.ts +0 -2
- package/dist/model/composite_source_utils.js +17 -18
- package/dist/model/filter_compilers.d.ts +1 -1
- package/dist/model/malloy_query.js +3 -3
- package/dist/model/malloy_types.d.ts +1 -3
- package/dist/model/malloy_types.js +64 -65
- package/dist/model/materialization/utils.js +2 -3
- package/dist/model/sql_block.js +2 -3
- package/dist/model/utils.js +10 -10
- package/dist/test/index.d.ts +0 -1
- package/dist/test/index.js +3 -4
- package/dist/to_stable.d.ts +1 -0
- package/dist/to_stable.js +41 -34
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
|
@@ -37,13 +37,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
37
37
|
}) : function(o, v) {
|
|
38
38
|
o["default"] = v;
|
|
39
39
|
});
|
|
40
|
-
var __importStar = (this && this.__importStar) || function (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
40
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
41
|
+
var ownKeys = function(o) {
|
|
42
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
43
|
+
var ar = [];
|
|
44
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
45
|
+
return ar;
|
|
46
|
+
};
|
|
47
|
+
return ownKeys(o);
|
|
48
|
+
};
|
|
49
|
+
return function (mod) {
|
|
50
|
+
if (mod && mod.__esModule) return mod;
|
|
51
|
+
var result = {};
|
|
52
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
53
|
+
__setModuleDefault(result, mod);
|
|
54
|
+
return result;
|
|
55
|
+
};
|
|
56
|
+
})();
|
|
47
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
58
|
exports.StructSpaceFieldBase = void 0;
|
|
49
59
|
const malloy_types_1 = require("../../../model/malloy_types");
|
|
@@ -10,81 +10,81 @@ export declare abstract class ViewField extends SpaceField {
|
|
|
10
10
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
11
11
|
requiredGroupBys: string[][] | undefined;
|
|
12
12
|
type: "string";
|
|
13
|
-
bucketFilter?: string
|
|
14
|
-
bucketOther?: string
|
|
13
|
+
bucketFilter?: string;
|
|
14
|
+
bucketOther?: string;
|
|
15
15
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
16
16
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
17
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
18
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
17
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
18
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
19
19
|
} | {
|
|
20
20
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
21
21
|
requiredGroupBys: string[][] | undefined;
|
|
22
22
|
type: "date";
|
|
23
|
-
timeframe?: import("../../../model/malloy_types").DateUnit
|
|
23
|
+
timeframe?: import("../../../model/malloy_types").DateUnit;
|
|
24
24
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
25
25
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
26
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
27
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
26
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
27
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
28
28
|
} | {
|
|
29
29
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
30
30
|
requiredGroupBys: string[][] | undefined;
|
|
31
31
|
type: "timestamp";
|
|
32
|
-
timeframe?: import("../../../model/malloy_types").TimestampUnit
|
|
32
|
+
timeframe?: import("../../../model/malloy_types").TimestampUnit;
|
|
33
33
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
34
34
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
35
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
36
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
35
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
36
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
37
37
|
} | {
|
|
38
38
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
39
39
|
requiredGroupBys: string[][] | undefined;
|
|
40
40
|
type: "number";
|
|
41
|
-
numberType?: "integer" | "float"
|
|
41
|
+
numberType?: "integer" | "float";
|
|
42
42
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
43
43
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
44
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
45
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
44
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
45
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
46
46
|
} | {
|
|
47
47
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
48
48
|
requiredGroupBys: string[][] | undefined;
|
|
49
49
|
type: "boolean";
|
|
50
50
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
51
51
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
52
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
53
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
52
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
53
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
54
54
|
} | {
|
|
55
55
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
56
56
|
requiredGroupBys: string[][] | undefined;
|
|
57
57
|
type: "json";
|
|
58
58
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
59
59
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
60
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
61
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
60
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
61
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
62
62
|
} | {
|
|
63
63
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
64
64
|
requiredGroupBys: string[][] | undefined;
|
|
65
65
|
type: "sql native";
|
|
66
|
-
rawType?: string
|
|
66
|
+
rawType?: string;
|
|
67
67
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
68
68
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
69
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
70
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
69
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
70
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
71
71
|
} | {
|
|
72
72
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
73
73
|
requiredGroupBys: string[][] | undefined;
|
|
74
74
|
type: "error";
|
|
75
75
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
76
76
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
77
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
78
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
77
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
78
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
79
79
|
} | {
|
|
80
80
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
81
81
|
requiredGroupBys: string[][] | undefined;
|
|
82
82
|
type: "array";
|
|
83
|
-
elementTypeDef: import("../../../model/malloy_types").
|
|
83
|
+
elementTypeDef: Exclude<import("../../../model/malloy_types").AtomicTypeDef, import("../../../model/malloy_types").RecordTypeDef>;
|
|
84
84
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
85
85
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
86
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
87
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
86
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
87
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
88
88
|
} | {
|
|
89
89
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
90
90
|
requiredGroupBys: string[][] | undefined;
|
|
@@ -92,8 +92,8 @@ export declare abstract class ViewField extends SpaceField {
|
|
|
92
92
|
fields: import("../../../model/malloy_types").FieldDef[];
|
|
93
93
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
94
94
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
95
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
96
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
95
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
96
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
97
97
|
} | {
|
|
98
98
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
99
99
|
requiredGroupBys: string[][] | undefined;
|
|
@@ -102,15 +102,15 @@ export declare abstract class ViewField extends SpaceField {
|
|
|
102
102
|
fields: import("../../../model/malloy_types").FieldDef[];
|
|
103
103
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
104
104
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
105
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
106
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
105
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
106
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
107
107
|
} | {
|
|
108
108
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
109
109
|
requiredGroupBys: string[][] | undefined;
|
|
110
110
|
type: import("../../../model/malloy_types").NonAtomicType;
|
|
111
111
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
112
112
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
113
|
-
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[]
|
|
114
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
113
|
+
requiresGroupBy?: import("../../../model/malloy_types").RequiredGroupBy[];
|
|
114
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
115
115
|
};
|
|
116
116
|
}
|
|
@@ -37,13 +37,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
37
37
|
}) : function(o, v) {
|
|
38
38
|
o["default"] = v;
|
|
39
39
|
});
|
|
40
|
-
var __importStar = (this && this.__importStar) || function (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
40
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
41
|
+
var ownKeys = function(o) {
|
|
42
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
43
|
+
var ar = [];
|
|
44
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
45
|
+
return ar;
|
|
46
|
+
};
|
|
47
|
+
return ownKeys(o);
|
|
48
|
+
};
|
|
49
|
+
return function (mod) {
|
|
50
|
+
if (mod && mod.__esModule) return mod;
|
|
51
|
+
var result = {};
|
|
52
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
53
|
+
__setModuleDefault(result, mod);
|
|
54
|
+
return result;
|
|
55
|
+
};
|
|
56
|
+
})();
|
|
47
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
58
|
exports.ViewField = void 0;
|
|
49
59
|
const TDU = __importStar(require("../typedesc-utils"));
|
|
@@ -37,13 +37,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
37
37
|
}) : function(o, v) {
|
|
38
38
|
o["default"] = v;
|
|
39
39
|
});
|
|
40
|
-
var __importStar = (this && this.__importStar) || function (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
40
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
41
|
+
var ownKeys = function(o) {
|
|
42
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
43
|
+
var ar = [];
|
|
44
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
45
|
+
return ar;
|
|
46
|
+
};
|
|
47
|
+
return ownKeys(o);
|
|
48
|
+
};
|
|
49
|
+
return function (mod) {
|
|
50
|
+
if (mod && mod.__esModule) return mod;
|
|
51
|
+
var result = {};
|
|
52
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
53
|
+
__setModuleDefault(result, mod);
|
|
54
|
+
return result;
|
|
55
|
+
};
|
|
56
|
+
})();
|
|
47
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
58
|
exports.FieldDefinitionValue = exports.DefSpace = exports.DimensionFieldDeclaration = exports.MeasureFieldDeclaration = exports.DeclareFieldDeclaration = exports.ProjectFieldDeclaration = exports.GroupByFieldDeclaration = exports.AggregateFieldDeclaration = exports.CalculateFieldDeclaration = exports.AtomicFieldDeclaration = void 0;
|
|
49
59
|
const malloy_types_1 = require("../../../model/malloy_types");
|
|
@@ -22,7 +22,14 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.typecheckProject = typecheckProject;
|
|
26
|
+
exports.typecheckIndex = typecheckIndex;
|
|
27
|
+
exports.typecheckDimension = typecheckDimension;
|
|
28
|
+
exports.typecheckMeasure = typecheckMeasure;
|
|
29
|
+
exports.typecheckDeclare = typecheckDeclare;
|
|
30
|
+
exports.typecheckCalculate = typecheckCalculate;
|
|
31
|
+
exports.typecheckAggregate = typecheckAggregate;
|
|
32
|
+
exports.typecheckGroupBy = typecheckGroupBy;
|
|
26
33
|
const model_1 = require("../../../model");
|
|
27
34
|
function typecheckProject(type, logTo) {
|
|
28
35
|
if (type.type === 'turtle' || !(0, model_1.expressionIsScalar)(type.expressionType)) {
|
|
@@ -50,7 +57,6 @@ function typecheckProject(type, logTo) {
|
|
|
50
57
|
logTo.logError(code, `Cannot use ${kind} field in a select operation, did you mean to use ${useInstead} operation instead?`);
|
|
51
58
|
}
|
|
52
59
|
}
|
|
53
|
-
exports.typecheckProject = typecheckProject;
|
|
54
60
|
function typecheckIndex(type, logTo) {
|
|
55
61
|
if (type.type === 'turtle' || !(0, model_1.expressionIsScalar)(type.expressionType)) {
|
|
56
62
|
let kind;
|
|
@@ -73,7 +79,6 @@ function typecheckIndex(type, logTo) {
|
|
|
73
79
|
logTo.logError(code, `Cannot use ${kind} field in an index operation`);
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
|
-
exports.typecheckIndex = typecheckIndex;
|
|
77
82
|
function typecheckDimension(type, logTo) {
|
|
78
83
|
if (!(0, model_1.expressionIsScalar)(type.expressionType)) {
|
|
79
84
|
if ((0, model_1.expressionIsAggregate)(type.expressionType)) {
|
|
@@ -87,7 +92,6 @@ function typecheckDimension(type, logTo) {
|
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
}
|
|
90
|
-
exports.typecheckDimension = typecheckDimension;
|
|
91
95
|
function typecheckMeasure(type, logTo) {
|
|
92
96
|
if (!(0, model_1.expressionIsAggregate)(type.expressionType)) {
|
|
93
97
|
if ((0, model_1.expressionIsScalar)(type.expressionType)) {
|
|
@@ -101,7 +105,6 @@ function typecheckMeasure(type, logTo) {
|
|
|
101
105
|
}
|
|
102
106
|
}
|
|
103
107
|
}
|
|
104
|
-
exports.typecheckMeasure = typecheckMeasure;
|
|
105
108
|
function typecheckDeclare(type, logTo) {
|
|
106
109
|
if (type.type === 'turtle') {
|
|
107
110
|
logTo.logError('view-in-declare', 'Views cannot be used in a declare block');
|
|
@@ -110,7 +113,6 @@ function typecheckDeclare(type, logTo) {
|
|
|
110
113
|
logTo.logError('analytic-in-declare', 'Analytic expressions can not be used in a declare block');
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
|
-
exports.typecheckDeclare = typecheckDeclare;
|
|
114
116
|
function typecheckCalculate(type, logTo) {
|
|
115
117
|
if (type.type === 'turtle' || !(0, model_1.expressionIsAnalytic)(type.expressionType)) {
|
|
116
118
|
let useInstead;
|
|
@@ -137,7 +139,6 @@ function typecheckCalculate(type, logTo) {
|
|
|
137
139
|
logTo.logError(code, `Cannot use ${kind} field in a calculate operation, did you mean to use ${useInstead} operation instead?`);
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
|
-
exports.typecheckCalculate = typecheckCalculate;
|
|
141
142
|
function typecheckAggregate(type, logTo) {
|
|
142
143
|
if (type.type === 'turtle' || !(0, model_1.expressionIsAggregate)(type.expressionType)) {
|
|
143
144
|
let useInstead;
|
|
@@ -164,7 +165,6 @@ function typecheckAggregate(type, logTo) {
|
|
|
164
165
|
logTo.logError(code, `Cannot use ${kind} field in an aggregate operation, did you mean to use ${useInstead} operation instead?`);
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
|
-
exports.typecheckAggregate = typecheckAggregate;
|
|
168
168
|
function typecheckGroupBy(type, logTo) {
|
|
169
169
|
if (type.type === 'turtle' || !(0, model_1.expressionIsScalar)(type.expressionType)) {
|
|
170
170
|
let useInstead;
|
|
@@ -191,5 +191,4 @@ function typecheckGroupBy(type, logTo) {
|
|
|
191
191
|
logTo.logError(code, `Cannot use ${kind} field in a group_by operation, did you mean to use ${useInstead} operation instead?`);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
exports.typecheckGroupBy = typecheckGroupBy;
|
|
195
194
|
//# sourceMappingURL=typecheck_utils.js.map
|
|
@@ -37,13 +37,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
37
37
|
}) : function(o, v) {
|
|
38
38
|
o["default"] = v;
|
|
39
39
|
});
|
|
40
|
-
var __importStar = (this && this.__importStar) || function (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
40
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
41
|
+
var ownKeys = function(o) {
|
|
42
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
43
|
+
var ar = [];
|
|
44
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
45
|
+
return ar;
|
|
46
|
+
};
|
|
47
|
+
return ownKeys(o);
|
|
48
|
+
};
|
|
49
|
+
return function (mod) {
|
|
50
|
+
if (mod && mod.__esModule) return mod;
|
|
51
|
+
var result = {};
|
|
52
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
53
|
+
__setModuleDefault(result, mod);
|
|
54
|
+
return result;
|
|
55
|
+
};
|
|
56
|
+
})();
|
|
47
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
58
|
exports.NestFieldDeclaration = void 0;
|
|
49
59
|
const model = __importStar(require("../../../model/malloy_types"));
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.detectAndRemovePartialStages = detectAndRemovePartialStages;
|
|
26
|
+
exports.unsatisfiedRequiredGroupBys = unsatisfiedRequiredGroupBys;
|
|
27
|
+
exports.validateRequiredGroupBys = validateRequiredGroupBys;
|
|
26
28
|
const model_1 = require("../../model");
|
|
27
29
|
// We don't want to ever generate actual 'partial' stages, so convert this
|
|
28
30
|
// into a reduce so the compiler doesn't explode
|
|
@@ -43,7 +45,6 @@ function detectAndRemovePartialStages(pipeline, logTo) {
|
|
|
43
45
|
}
|
|
44
46
|
return cleaned;
|
|
45
47
|
}
|
|
46
|
-
exports.detectAndRemovePartialStages = detectAndRemovePartialStages;
|
|
47
48
|
function unsatisfiedRequiredGroupBys(segment, requiredGroupBys) {
|
|
48
49
|
if (segment === undefined)
|
|
49
50
|
return [];
|
|
@@ -66,12 +67,10 @@ function unsatisfiedRequiredGroupBys(segment, requiredGroupBys) {
|
|
|
66
67
|
}
|
|
67
68
|
return result;
|
|
68
69
|
}
|
|
69
|
-
exports.unsatisfiedRequiredGroupBys = unsatisfiedRequiredGroupBys;
|
|
70
70
|
function validateRequiredGroupBys(segment, logTo, requiredGroupBys) {
|
|
71
71
|
const missing = unsatisfiedRequiredGroupBys(segment, requiredGroupBys);
|
|
72
72
|
for (const requiredGroupBy of missing) {
|
|
73
73
|
logTo.logError('missing-required-group-by', `Group by of \`${requiredGroupBy.join('.')}\` is required but not present`);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
exports.validateRequiredGroupBys = validateRequiredGroupBys;
|
|
77
76
|
//# sourceMappingURL=query-utils.js.map
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.opOutputStruct = opOutputStruct;
|
|
26
|
+
exports.getFinalStruct = getFinalStruct;
|
|
27
|
+
exports.getStructFieldDef = getStructFieldDef;
|
|
26
28
|
const util_1 = require("util");
|
|
27
29
|
const malloy_query_1 = require("../../model/malloy_query");
|
|
28
30
|
const malloy_types_1 = require("../../model/malloy_types");
|
|
@@ -55,16 +57,13 @@ function opOutputStruct(logTo, inputStruct, opDesc) {
|
|
|
55
57
|
}
|
|
56
58
|
return error_factory_1.ErrorFactory.structDef;
|
|
57
59
|
}
|
|
58
|
-
exports.opOutputStruct = opOutputStruct;
|
|
59
60
|
function getFinalStruct(logTo, walkStruct, pipeline) {
|
|
60
61
|
for (const modelQop of pipeline) {
|
|
61
62
|
walkStruct = opOutputStruct(logTo, walkStruct, modelQop);
|
|
62
63
|
}
|
|
63
64
|
return walkStruct;
|
|
64
65
|
}
|
|
65
|
-
exports.getFinalStruct = getFinalStruct;
|
|
66
66
|
function getStructFieldDef(s, fn) {
|
|
67
67
|
return s.fields.find(fld => (fld.as || fld.name) === fn);
|
|
68
68
|
}
|
|
69
|
-
exports.getStructFieldDef = getStructFieldDef;
|
|
70
69
|
//# sourceMappingURL=struct-utils.js.map
|
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.timeOffset = timeOffset;
|
|
26
|
+
exports.castTo = castTo;
|
|
27
|
+
exports.resolution = resolution;
|
|
28
|
+
exports.mkTimeResult = mkTimeResult;
|
|
26
29
|
const malloy_types_1 = require("../../model/malloy_types");
|
|
27
30
|
function timeOffset(timeType, from, op, n, timeframe) {
|
|
28
31
|
return {
|
|
@@ -35,7 +38,6 @@ function timeOffset(timeType, from, op, n, timeframe) {
|
|
|
35
38
|
units: timeframe,
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
|
-
exports.timeOffset = timeOffset;
|
|
39
41
|
function castTo(castType, from, fromType, safe = false) {
|
|
40
42
|
let cast;
|
|
41
43
|
if (typeof castType !== 'string') {
|
|
@@ -60,7 +62,6 @@ function castTo(castType, from, fromType, safe = false) {
|
|
|
60
62
|
}
|
|
61
63
|
return cast;
|
|
62
64
|
}
|
|
63
|
-
exports.castTo = castTo;
|
|
64
65
|
function resolution(timeframe) {
|
|
65
66
|
switch (timeframe) {
|
|
66
67
|
case 'hour':
|
|
@@ -72,7 +73,6 @@ function resolution(timeframe) {
|
|
|
72
73
|
}
|
|
73
74
|
return 'date';
|
|
74
75
|
}
|
|
75
|
-
exports.resolution = resolution;
|
|
76
76
|
function mkTimeResult(t, tt) {
|
|
77
77
|
if (tt) {
|
|
78
78
|
if (t.type === 'timestamp') {
|
|
@@ -84,5 +84,4 @@ function mkTimeResult(t, tt) {
|
|
|
84
84
|
}
|
|
85
85
|
return t;
|
|
86
86
|
}
|
|
87
|
-
exports.mkTimeResult = mkTimeResult;
|
|
88
87
|
//# sourceMappingURL=time-utils.js.map
|
|
@@ -22,7 +22,13 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.anyAtomicT = exports.aggregateBoolT = exports.viewT = exports.errorT = exports.boolT = exports.timestampT = exports.dateT = exports.stringT = exports.numberT = exports.nullT = void 0;
|
|
26
|
+
exports.any = any;
|
|
27
|
+
exports.eq = eq;
|
|
28
|
+
exports.typeIn = typeIn;
|
|
29
|
+
exports.typeEq = typeEq;
|
|
30
|
+
exports.inspect = inspect;
|
|
31
|
+
exports.atomicDef = atomicDef;
|
|
26
32
|
const model_1 = require("../../model");
|
|
27
33
|
function mkTypeDesc(
|
|
28
34
|
// The problem is that record and array, as currently defined, require a dialect
|
|
@@ -58,7 +64,6 @@ function any(check, from) {
|
|
|
58
64
|
}
|
|
59
65
|
return false;
|
|
60
66
|
}
|
|
61
|
-
exports.any = any;
|
|
62
67
|
/**
|
|
63
68
|
* Checks if a possibly undefined candidate matches a type
|
|
64
69
|
* @param good The real type
|
|
@@ -69,7 +74,6 @@ function eq(good, checkThis) {
|
|
|
69
74
|
model_1.TD.eq(good, checkThis) &&
|
|
70
75
|
good.expressionType === checkThis.expressionType);
|
|
71
76
|
}
|
|
72
|
-
exports.eq = eq;
|
|
73
77
|
/**
|
|
74
78
|
* Checks if a given type is in a list, ignoring aggregate
|
|
75
79
|
* @param check The type to check (can be undefined)
|
|
@@ -82,7 +86,6 @@ function typeIn(check, from) {
|
|
|
82
86
|
}
|
|
83
87
|
return false;
|
|
84
88
|
}
|
|
85
|
-
exports.typeIn = typeIn;
|
|
86
89
|
/**
|
|
87
90
|
* Checks if the base types, ignoring expressionType, are equal
|
|
88
91
|
* @param left Left type
|
|
@@ -95,7 +98,6 @@ function typeEq(left, right, nullOk = false, errorOk = true) {
|
|
|
95
98
|
const errorEq = errorOk && (left.type === 'error' || right.type === 'error');
|
|
96
99
|
return maybeEq || nullEq || errorEq;
|
|
97
100
|
}
|
|
98
|
-
exports.typeEq = typeEq;
|
|
99
101
|
/**
|
|
100
102
|
*
|
|
101
103
|
* For error messages, returns a comma seperated list of readable names
|
|
@@ -115,7 +117,6 @@ function inspect(...types) {
|
|
|
115
117
|
});
|
|
116
118
|
return strings.join(',');
|
|
117
119
|
}
|
|
118
|
-
exports.inspect = inspect;
|
|
119
120
|
/**
|
|
120
121
|
* Used when using a TypeDesc or TypeDesc-like interface to
|
|
121
122
|
* create a field, don't copy the non type fields.
|
|
@@ -154,5 +155,4 @@ function atomicDef(td) {
|
|
|
154
155
|
}
|
|
155
156
|
return { type: 'error' };
|
|
156
157
|
}
|
|
157
|
-
exports.atomicDef = atomicDef;
|
|
158
158
|
//# sourceMappingURL=typedesc-utils.js.map
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.getExprNode = getExprNode;
|
|
10
|
+
exports.isEquality = isEquality;
|
|
11
|
+
exports.isComparison = isComparison;
|
|
10
12
|
function getExprNode(mo) {
|
|
11
13
|
switch (mo) {
|
|
12
14
|
case '~':
|
|
@@ -16,13 +18,10 @@ function getExprNode(mo) {
|
|
|
16
18
|
}
|
|
17
19
|
return mo;
|
|
18
20
|
}
|
|
19
|
-
exports.getExprNode = getExprNode;
|
|
20
21
|
function isEquality(op) {
|
|
21
22
|
return op === '=' || op === '!=' || op === '~' || op === '!~';
|
|
22
23
|
}
|
|
23
|
-
exports.isEquality = isEquality;
|
|
24
24
|
function isComparison(op) {
|
|
25
25
|
return (isEquality(op) || op === '>=' || op === '<=' || op === '>' || op === '<');
|
|
26
26
|
}
|
|
27
|
-
exports.isComparison = isComparison;
|
|
28
27
|
//# sourceMappingURL=binary_operators.js.map
|
|
@@ -22,7 +22,13 @@
|
|
|
22
22
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.computedExprValue = computedExprValue;
|
|
26
|
+
exports.computedTimeResult = computedTimeResult;
|
|
27
|
+
exports.computedErrorExprValue = computedErrorExprValue;
|
|
28
|
+
exports.literalExprValue = literalExprValue;
|
|
29
|
+
exports.literalTimeResult = literalTimeResult;
|
|
30
|
+
exports.mergeGroupedBys = mergeGroupedBys;
|
|
31
|
+
exports.mergeUngroupings = mergeUngroupings;
|
|
26
32
|
const model_1 = require("../../../model");
|
|
27
33
|
const composite_source_utils_1 = require("../../../model/composite_source_utils");
|
|
28
34
|
function computedExprValue({ value, dataType, from, }) {
|
|
@@ -36,7 +42,6 @@ function computedExprValue({ value, dataType, from, }) {
|
|
|
36
42
|
requiresGroupBy: mergeGroupedBys(...from.map(e => e.requiresGroupBy)),
|
|
37
43
|
};
|
|
38
44
|
}
|
|
39
|
-
exports.computedExprValue = computedExprValue;
|
|
40
45
|
function computedTimeResult({ value, dataType, from, timeframe, }) {
|
|
41
46
|
const xv = computedExprValue({ value, dataType, from });
|
|
42
47
|
const y = {
|
|
@@ -53,7 +58,6 @@ function computedTimeResult({ value, dataType, from, timeframe, }) {
|
|
|
53
58
|
}
|
|
54
59
|
return y;
|
|
55
60
|
}
|
|
56
|
-
exports.computedTimeResult = computedTimeResult;
|
|
57
61
|
function computedErrorExprValue({ dataType, from, error, }) {
|
|
58
62
|
return computedExprValue({
|
|
59
63
|
dataType: dataType !== null && dataType !== void 0 ? dataType : { type: 'error' },
|
|
@@ -61,12 +65,10 @@ function computedErrorExprValue({ dataType, from, error, }) {
|
|
|
61
65
|
from,
|
|
62
66
|
});
|
|
63
67
|
}
|
|
64
|
-
exports.computedErrorExprValue = computedErrorExprValue;
|
|
65
68
|
function literalExprValue(options) {
|
|
66
69
|
// Makes literal, output, scalar because from is empty
|
|
67
70
|
return computedExprValue({ ...options, from: [] });
|
|
68
71
|
}
|
|
69
|
-
exports.literalExprValue = literalExprValue;
|
|
70
72
|
function literalTimeResult({ value, dataType, timeframe, }) {
|
|
71
73
|
const xv = computedExprValue({ value, dataType, from: [] });
|
|
72
74
|
const y = {
|
|
@@ -81,7 +83,6 @@ function literalTimeResult({ value, dataType, timeframe, }) {
|
|
|
81
83
|
}
|
|
82
84
|
return y;
|
|
83
85
|
}
|
|
84
|
-
exports.literalTimeResult = literalTimeResult;
|
|
85
86
|
function mergeGroupedBys(...groupByses) {
|
|
86
87
|
const result = [];
|
|
87
88
|
for (const groupBys of groupByses) {
|
|
@@ -93,7 +94,6 @@ function mergeGroupedBys(...groupByses) {
|
|
|
93
94
|
return undefined;
|
|
94
95
|
return result;
|
|
95
96
|
}
|
|
96
|
-
exports.mergeGroupedBys = mergeGroupedBys;
|
|
97
97
|
function mergeUngroupings(...usages) {
|
|
98
98
|
const result = [];
|
|
99
99
|
for (const usage of usages) {
|
|
@@ -105,5 +105,4 @@ function mergeUngroupings(...usages) {
|
|
|
105
105
|
return undefined;
|
|
106
106
|
return result;
|
|
107
107
|
}
|
|
108
|
-
exports.mergeUngroupings = mergeUngroupings;
|
|
109
108
|
//# sourceMappingURL=expr-value.js.map
|
|
@@ -37,15 +37,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
37
37
|
}) : function(o, v) {
|
|
38
38
|
o["default"] = v;
|
|
39
39
|
});
|
|
40
|
-
var __importStar = (this && this.__importStar) || function (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
40
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
41
|
+
var ownKeys = function(o) {
|
|
42
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
43
|
+
var ar = [];
|
|
44
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
45
|
+
return ar;
|
|
46
|
+
};
|
|
47
|
+
return ownKeys(o);
|
|
48
|
+
};
|
|
49
|
+
return function (mod) {
|
|
50
|
+
if (mod && mod.__esModule) return mod;
|
|
51
|
+
var result = {};
|
|
52
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
53
|
+
__setModuleDefault(result, mod);
|
|
54
|
+
return result;
|
|
55
|
+
};
|
|
56
|
+
})();
|
|
47
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
58
|
+
exports.ExprDuration = exports.ExpressionDef = exports.ATNodeType = void 0;
|
|
59
|
+
exports.getMorphicValue = getMorphicValue;
|
|
60
|
+
exports.applyBinary = applyBinary;
|
|
61
|
+
exports.checkFilterExpression = checkFilterExpression;
|
|
49
62
|
const malloy_types_1 = require("../../../model/malloy_types");
|
|
50
63
|
const TDU = __importStar(require("../typedesc-utils"));
|
|
51
64
|
const ast_utils_1 = require("../ast-utils");
|
|
@@ -208,7 +221,6 @@ function getMorphicValue(mv, mt) {
|
|
|
208
221
|
});
|
|
209
222
|
}
|
|
210
223
|
}
|
|
211
|
-
exports.getMorphicValue = getMorphicValue;
|
|
212
224
|
function timeCompare(left, lhs, op, rhs) {
|
|
213
225
|
const leftIsTime = (0, malloy_types_1.isTemporalType)(lhs.type);
|
|
214
226
|
const rightIsTime = (0, malloy_types_1.isTemporalType)(rhs.type);
|
|
@@ -453,7 +465,6 @@ function applyBinary(fs, left, op, right) {
|
|
|
453
465
|
}
|
|
454
466
|
return left.loggedErrorExpr('unexpected-binary-operator', `Cannot use ${op} operator here`);
|
|
455
467
|
}
|
|
456
|
-
exports.applyBinary = applyBinary;
|
|
457
468
|
function errorCascade(type, ...es) {
|
|
458
469
|
if (es.some(e => e.type === 'error')) {
|
|
459
470
|
return (0, expr_value_1.computedExprValue)({
|
|
@@ -513,5 +524,4 @@ function checkFilterExpression(logTo, ft, fexpr) {
|
|
|
513
524
|
logTo.logError('filter-expression-error', `Filter syntax error: ${err}`);
|
|
514
525
|
}
|
|
515
526
|
}
|
|
516
|
-
exports.checkFilterExpression = checkFilterExpression;
|
|
517
527
|
//# sourceMappingURL=expression-def.js.map
|