@malloydata/malloy 0.0.279 → 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.ExprMax = 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.ExprMin = 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.ExprMinus = void 0;
|
|
49
59
|
const ast_utils_1 = require("../ast-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.ExprNot = void 0;
|
|
49
59
|
const TDU = __importStar(require("../typedesc-utils"));
|
|
@@ -14,109 +14,109 @@ export declare class ExprProps extends ExpressionDef {
|
|
|
14
14
|
getGroupedBys(fs: FieldSpace, expr: ExprValue, groupedBys: GroupedBy[]): {
|
|
15
15
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
16
16
|
type: "string";
|
|
17
|
-
bucketFilter?: string
|
|
18
|
-
bucketOther?: string
|
|
17
|
+
bucketFilter?: string;
|
|
18
|
+
bucketOther?: string;
|
|
19
19
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
20
20
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
21
21
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
22
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
22
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
23
23
|
value: import("../../../model/malloy_types").Expr;
|
|
24
24
|
morphic?: {
|
|
25
25
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
} | {
|
|
28
28
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
29
29
|
type: "date";
|
|
30
|
-
timeframe?: import("../../../model/malloy_types").DateUnit
|
|
30
|
+
timeframe?: import("../../../model/malloy_types").DateUnit;
|
|
31
31
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
32
32
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
33
33
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
34
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
34
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
35
35
|
value: import("../../../model/malloy_types").Expr;
|
|
36
36
|
morphic?: {
|
|
37
37
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
} | {
|
|
40
40
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
41
41
|
type: "timestamp";
|
|
42
|
-
timeframe?: import("../../../model/malloy_types").TimestampUnit
|
|
42
|
+
timeframe?: import("../../../model/malloy_types").TimestampUnit;
|
|
43
43
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
44
44
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
45
45
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
46
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
46
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
47
47
|
value: import("../../../model/malloy_types").Expr;
|
|
48
48
|
morphic?: {
|
|
49
49
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
50
|
-
}
|
|
50
|
+
};
|
|
51
51
|
} | {
|
|
52
52
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
53
53
|
type: "number";
|
|
54
|
-
numberType?: "integer" | "float"
|
|
54
|
+
numberType?: "integer" | "float";
|
|
55
55
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
56
56
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
57
57
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
58
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
58
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
59
59
|
value: import("../../../model/malloy_types").Expr;
|
|
60
60
|
morphic?: {
|
|
61
61
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
62
|
-
}
|
|
62
|
+
};
|
|
63
63
|
} | {
|
|
64
64
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
65
65
|
type: "boolean";
|
|
66
66
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
67
67
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
68
68
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
69
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
69
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
70
70
|
value: import("../../../model/malloy_types").Expr;
|
|
71
71
|
morphic?: {
|
|
72
72
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
73
|
-
}
|
|
73
|
+
};
|
|
74
74
|
} | {
|
|
75
75
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
76
76
|
type: "json";
|
|
77
77
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
78
78
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
79
79
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
80
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
80
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
81
81
|
value: import("../../../model/malloy_types").Expr;
|
|
82
82
|
morphic?: {
|
|
83
83
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
84
|
-
}
|
|
84
|
+
};
|
|
85
85
|
} | {
|
|
86
86
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
87
87
|
type: "sql native";
|
|
88
|
-
rawType?: string
|
|
88
|
+
rawType?: string;
|
|
89
89
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
90
90
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
91
91
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
92
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
92
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
93
93
|
value: import("../../../model/malloy_types").Expr;
|
|
94
94
|
morphic?: {
|
|
95
95
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
96
|
-
}
|
|
96
|
+
};
|
|
97
97
|
} | {
|
|
98
98
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
99
99
|
type: "error";
|
|
100
100
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
101
101
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
102
102
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
103
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
103
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
104
104
|
value: import("../../../model/malloy_types").Expr;
|
|
105
105
|
morphic?: {
|
|
106
106
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
107
|
-
}
|
|
107
|
+
};
|
|
108
108
|
} | {
|
|
109
109
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
110
110
|
type: "array";
|
|
111
|
-
elementTypeDef: import("../../../model/malloy_types").
|
|
111
|
+
elementTypeDef: Exclude<import("../../../model/malloy_types").AtomicTypeDef, import("../../../model/malloy_types").RecordTypeDef>;
|
|
112
112
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
113
113
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
114
114
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
115
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
115
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
116
116
|
value: import("../../../model/malloy_types").Expr;
|
|
117
117
|
morphic?: {
|
|
118
118
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
} | {
|
|
121
121
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
122
122
|
type: "record";
|
|
@@ -124,11 +124,11 @@ export declare class ExprProps extends ExpressionDef {
|
|
|
124
124
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
125
125
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
126
126
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
127
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
127
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
128
128
|
value: import("../../../model/malloy_types").Expr;
|
|
129
129
|
morphic?: {
|
|
130
130
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
131
|
-
}
|
|
131
|
+
};
|
|
132
132
|
} | {
|
|
133
133
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
134
134
|
type: "array";
|
|
@@ -137,22 +137,22 @@ export declare class ExprProps extends ExpressionDef {
|
|
|
137
137
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
138
138
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
139
139
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
140
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
140
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
141
141
|
value: import("../../../model/malloy_types").Expr;
|
|
142
142
|
morphic?: {
|
|
143
143
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
144
|
-
}
|
|
144
|
+
};
|
|
145
145
|
} | {
|
|
146
146
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
147
147
|
type: import("../../../model/malloy_types").NonAtomicType;
|
|
148
148
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
149
149
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
150
150
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
151
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
151
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
152
152
|
value: import("../../../model/malloy_types").Expr;
|
|
153
153
|
morphic?: {
|
|
154
154
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
155
|
-
}
|
|
155
|
+
};
|
|
156
156
|
} | {
|
|
157
157
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
158
158
|
type: "date";
|
|
@@ -160,22 +160,22 @@ export declare class ExprProps extends ExpressionDef {
|
|
|
160
160
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
161
161
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
162
162
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
163
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
163
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
164
164
|
value: import("../../../model/malloy_types").Expr;
|
|
165
165
|
morphic?: {
|
|
166
166
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
167
|
-
}
|
|
167
|
+
};
|
|
168
168
|
} | {
|
|
169
169
|
requiresGroupBy: import("../../../model/malloy_types").RequiredGroupBy[] | undefined;
|
|
170
170
|
type: "timestamp";
|
|
171
|
-
timeframe?: import("../../../model/malloy_types").TimestampUnit
|
|
171
|
+
timeframe?: import("../../../model/malloy_types").TimestampUnit;
|
|
172
172
|
expressionType: import("../../../model/malloy_types").ExpressionType;
|
|
173
173
|
evalSpace: import("../../../model/malloy_types").EvalSpace;
|
|
174
174
|
fieldUsage: import("../../../model/malloy_types").FieldUsage[];
|
|
175
|
-
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[]
|
|
175
|
+
ungroupings?: import("../../../model/malloy_types").AggregateUngrouping[];
|
|
176
176
|
value: import("../../../model/malloy_types").Expr;
|
|
177
177
|
morphic?: {
|
|
178
178
|
[x: string]: import("../../../model/malloy_types").Expr;
|
|
179
|
-
}
|
|
179
|
+
};
|
|
180
180
|
};
|
|
181
181
|
}
|
|
@@ -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.ExprProps = void 0;
|
|
49
59
|
const malloy_types_1 = require("../../../model/malloy_types");
|
|
@@ -21,13 +21,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
21
21
|
}) : function(o, v) {
|
|
22
22
|
o["default"] = v;
|
|
23
23
|
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
31
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
42
|
exports.RecordLiteral = exports.RecordElement = void 0;
|
|
33
43
|
const model_1 = require("../../../model");
|
|
@@ -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.ExprUngroup = void 0;
|
|
49
59
|
const malloy_types_1 = require("../../../model/malloy_types");
|
|
@@ -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.ForRange = void 0;
|
|
49
59
|
const ast_utils_1 = require("../ast-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.PickWhen = exports.Pick = 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.DynamicSpace = void 0;
|
|
49
59
|
const model = __importStar(require("../../../model/malloy_types"));
|
|
@@ -6,7 +6,8 @@
|
|
|
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.getIncludeStateForJoin = getIncludeStateForJoin;
|
|
10
|
+
exports.processIncludeList = processIncludeList;
|
|
10
11
|
const malloy_types_1 = require("../../../model/malloy_types");
|
|
11
12
|
const include_item_1 = require("../source-query-elements/include-item");
|
|
12
13
|
const field_references_1 = require("../query-items/field-references");
|
|
@@ -45,7 +46,6 @@ function getIncludeStateForJoin(joinPath, state) {
|
|
|
45
46
|
fieldsToInclude: undefined,
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
exports.getIncludeStateForJoin = getIncludeStateForJoin;
|
|
49
49
|
function getOrCreateIncludeStateForJoin(joinPath, state, from, logTo) {
|
|
50
50
|
const joinState = state.joins.find(s => (0, composite_source_utils_1.pathEq)(s.path, joinPath));
|
|
51
51
|
if (joinState !== undefined)
|
|
@@ -254,5 +254,4 @@ function processIncludeList(includeItems, from) {
|
|
|
254
254
|
// TODO: make renames that would replace an excluded field don't do that
|
|
255
255
|
return state;
|
|
256
256
|
}
|
|
257
|
-
exports.processIncludeList = processIncludeList;
|
|
258
257
|
//# sourceMappingURL=include-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.ReduceFieldSpace = exports.QuerySpace = exports.QueryOperationSpace = void 0;
|
|
49
59
|
const model = __importStar(require("../../../model/malloy_types"));
|
|
@@ -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.ReferenceField = void 0;
|
|
49
59
|
const malloy_types_1 = require("../../../model/malloy_types");
|