vtlengine 1.0.3rc3__py3-none-any.whl → 1.1__py3-none-any.whl
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.
Potentially problematic release.
This version of vtlengine might be problematic. Click here for more details.
- vtlengine/API/_InternalApi.py +288 -61
- vtlengine/API/__init__.py +269 -71
- vtlengine/API/data/schema/json_schema_2.1.json +116 -0
- vtlengine/AST/ASTComment.py +56 -0
- vtlengine/AST/ASTConstructor.py +76 -22
- vtlengine/AST/ASTConstructorModules/Expr.py +238 -120
- vtlengine/AST/ASTConstructorModules/ExprComponents.py +126 -61
- vtlengine/AST/ASTConstructorModules/Terminals.py +97 -42
- vtlengine/AST/ASTConstructorModules/__init__.py +50 -0
- vtlengine/AST/ASTEncoders.py +5 -1
- vtlengine/AST/ASTString.py +608 -0
- vtlengine/AST/ASTTemplate.py +28 -2
- vtlengine/AST/DAG/__init__.py +10 -4
- vtlengine/AST/Grammar/lexer.py +0 -1
- vtlengine/AST/Grammar/parser.py +185 -440
- vtlengine/AST/VtlVisitor.py +0 -1
- vtlengine/AST/__init__.py +127 -14
- vtlengine/DataTypes/TimeHandling.py +50 -15
- vtlengine/DataTypes/__init__.py +79 -7
- vtlengine/Exceptions/__init__.py +3 -5
- vtlengine/Exceptions/messages.py +74 -105
- vtlengine/Interpreter/__init__.py +136 -46
- vtlengine/Model/__init__.py +14 -11
- vtlengine/Operators/Aggregation.py +17 -9
- vtlengine/Operators/Analytic.py +64 -20
- vtlengine/Operators/Assignment.py +0 -1
- vtlengine/Operators/CastOperator.py +44 -44
- vtlengine/Operators/Clause.py +16 -10
- vtlengine/Operators/Comparison.py +20 -12
- vtlengine/Operators/Conditional.py +47 -15
- vtlengine/Operators/General.py +9 -4
- vtlengine/Operators/HROperators.py +4 -14
- vtlengine/Operators/Join.py +15 -14
- vtlengine/Operators/Numeric.py +32 -26
- vtlengine/Operators/RoleSetter.py +6 -2
- vtlengine/Operators/Set.py +12 -8
- vtlengine/Operators/String.py +9 -9
- vtlengine/Operators/Time.py +145 -124
- vtlengine/Operators/Validation.py +10 -4
- vtlengine/Operators/__init__.py +56 -69
- vtlengine/Utils/__init__.py +55 -1
- vtlengine/__extras_check.py +17 -0
- vtlengine/__init__.py +2 -2
- vtlengine/files/output/__init__.py +2 -1
- vtlengine/files/output/_time_period_representation.py +2 -1
- vtlengine/files/parser/__init__.py +52 -46
- vtlengine/files/parser/_time_checking.py +4 -4
- {vtlengine-1.0.3rc3.dist-info → vtlengine-1.1.dist-info}/METADATA +21 -17
- vtlengine-1.1.dist-info/RECORD +61 -0
- {vtlengine-1.0.3rc3.dist-info → vtlengine-1.1.dist-info}/WHEEL +1 -1
- vtlengine/DataTypes/NumericTypesHandling.py +0 -38
- vtlengine-1.0.3rc3.dist-info/RECORD +0 -58
- {vtlengine-1.0.3rc3.dist-info → vtlengine-1.1.dist-info}/LICENSE.md +0 -0
vtlengine/Exceptions/messages.py
CHANGED
|
@@ -10,26 +10,32 @@ All exceptions exposed by the Vtl engine.
|
|
|
10
10
|
centralised_messages = {
|
|
11
11
|
# Input Validation errors
|
|
12
12
|
"0-1-2-1": "Invalid json structure because additional properties have been supplied "
|
|
13
|
-
|
|
13
|
+
"on file {filename}.",
|
|
14
14
|
"0-1-2-2": "Errors found on file {filename}: {errors}",
|
|
15
15
|
"0-1-2-3": "Component {component} is duplicated.",
|
|
16
16
|
"0-1-2-4": "Invalid json structure because {err} on file {filename}.",
|
|
17
17
|
"0-1-2-5": "File {file} must be encoded in utf-8 (without BOM).",
|
|
18
|
-
#
|
|
18
|
+
# Run SDMX errors
|
|
19
|
+
"0-1-3-1": "Expected exactly one input dataset in the whole script, found: {number_datasets}",
|
|
20
|
+
"0-1-3-2": "SDMX Dataset {schema} requires to have a Schema object defined as structure",
|
|
21
|
+
"0-1-3-3": "If no mappings are provided, only one dataset is allowed.",
|
|
22
|
+
"0-1-3-4": "Dataset {short_urn} not found in mapping dictionary.",
|
|
23
|
+
"0-1-3-5": "Dataset {dataset_name} not found in the input datasets.",
|
|
24
|
+
"0-1-3-6": "Input name {missing} not found in the input datasets.",
|
|
19
25
|
# JSON Schema validations
|
|
26
|
+
"0-3-1-1": "Dataset {dataset} is not valid according to JSON schema",
|
|
20
27
|
# Infer Data Structure errors
|
|
21
|
-
# "0-1-1-1": "A csv file or a dataframe is required.",
|
|
22
28
|
"0-1-1-2": "The provided {source} must have data to can infer the data structure.",
|
|
23
29
|
"0-1-1-3": "Can not infer data structure: {errors}.",
|
|
24
30
|
"0-1-1-4": "On Dataset {name} loading: An identifier cannot have null values, found null "
|
|
25
|
-
|
|
31
|
+
"values on {null_identifier}.",
|
|
26
32
|
"0-1-1-5": "On Dataset {name} loading: Datasets without identifiers must have 0 or "
|
|
27
|
-
|
|
33
|
+
"1 datapoints.",
|
|
28
34
|
"0-1-1-6": "Duplicated records. Combination of identifiers are repeated.",
|
|
29
35
|
"0-1-1-7": "G1 - The provided CSV file is empty.",
|
|
30
36
|
"0-1-1-8": "The following identifiers {ids} were not found , review file {file}.",
|
|
31
37
|
"0-1-1-9": "You have a problem related with commas, review rfc4180 standard, review file "
|
|
32
|
-
|
|
38
|
+
"{file}.",
|
|
33
39
|
"0-1-1-10": "On Dataset {name} loading: Component {comp_name} is missing in Datapoints.",
|
|
34
40
|
"0-1-1-11": "Wrong data in the file for this scalardataset {name}.",
|
|
35
41
|
"0-1-1-12": "On Dataset {name} loading: not possible to cast column {column} to {type}.",
|
|
@@ -38,74 +44,43 @@ centralised_messages = {
|
|
|
38
44
|
"0-1-0-1": " Trying to redefine input datasets {dataset}.", # Semantic Error
|
|
39
45
|
# ------------Operators-------------
|
|
40
46
|
# General Semantic errors
|
|
41
|
-
# "1-1-1-1": "At op {op}. Unable to validate types.",
|
|
42
47
|
"1-1-1-1": "Invalid implicit cast from {type_1} to {type_2}.",
|
|
43
48
|
"1-1-1-2": "Invalid implicit cast from {type_1} and {type_2} to {type_check}.",
|
|
44
49
|
"1-1-1-3": "At op {op}: {entity} {name} cannot be promoted to {target_type}.",
|
|
45
|
-
# "1-1-1-2": "At op {op}: Component {comp_name} type must be '{type_1}', found '{type_2}'.",
|
|
46
|
-
# "1-1-1-3": "At op {op}: Invalid data type for Component {comp_name} and Scalar
|
|
47
|
-
# {scalar_name}.",
|
|
48
50
|
"1-1-1-4": "At op {op}: Operation not allowed for multimeasure datasets.",
|
|
49
|
-
# "1-1-1-5": "At op {op}: Invalid data type {type} for Scalar {scalar_name}.",
|
|
50
|
-
# TODO: Deprecated not in use, delete this.
|
|
51
|
-
# "1-1-1-6": "At op {op}: Internal error: Not same parents.",
|
|
52
|
-
# "1-1-1-7": "At op {op}: Invalid data type {type} for Component {name}.",
|
|
53
51
|
"1-1-1-8": "At op {op}: Invalid Dataset {name}, no measures defined.",
|
|
54
52
|
"1-1-1-9": "At op {op}: Invalid Dataset {name}, all measures must have the same type: {type}.",
|
|
55
53
|
"1-1-1-10": "Component {comp_name} not found in Dataset {dataset_name}.",
|
|
56
|
-
# "1-1-1-11": "At op {op}: Identifier {name} is specified more than once.",
|
|
57
|
-
# "1-1-1-12": "At op {op}: Different scalar types for component {comp_name} and set
|
|
58
|
-
# {set_name}.",
|
|
59
54
|
"1-1-1-13": "At op {op}: Component {comp_name} role must be '{role_1}', found '{role_2}'.",
|
|
60
|
-
# "1-1-1-14": "At op {op}: Dataset {name} type must be '{type_1}'.",
|
|
61
55
|
"1-1-1-15": "At op {op}: Datasets {name_1} and {name_2} does not contain the same number of "
|
|
62
|
-
|
|
56
|
+
"{type}.",
|
|
63
57
|
"1-1-1-16": "Found structure not nullable and null values.",
|
|
64
|
-
# "1-1-1-17": "At op {op}: Problem with nullability for this components {name_1} and {name_2}.",
|
|
65
|
-
# "1-1-1-18": "No {type} {value} found.",
|
|
66
|
-
# "1-1-1-19": "At op {op}: Invalid data type for Scalar {scalar_name_1} and Scalar
|
|
67
|
-
# {scalar_name_2}.",
|
|
68
58
|
"1-1-1-20": "At op {op}: Only applies to datasets, instead of this a Scalar was provided.",
|
|
69
|
-
# General Interpreter errors
|
|
70
|
-
# "2-1-1-1": "At op {op}: Unable to evaluate.",
|
|
71
|
-
# "2-1-1-2": "At op {op}: Dataset {name} is empty.",
|
|
72
|
-
# TODO: Review this message, for unpivot for example we can't raise this error,
|
|
73
|
-
# because we can have a empty dataset
|
|
74
|
-
# "2-1-1-3": "At op {op}: No rules have results.",
|
|
75
59
|
# Aggregate errors
|
|
76
|
-
# TODO: Use error message 1-1-1-8
|
|
77
|
-
# "1-1-2-1": "At op {op}: No measures found to aggregate.",
|
|
78
60
|
"1-1-2-2": "At op {op}: Only Identifiers are allowed for grouping, "
|
|
79
|
-
|
|
61
|
+
"found {id_name} - {id_type}.",
|
|
80
62
|
"1-1-2-3": "Having component output type must be boolean, found {type}.",
|
|
81
|
-
# "1-1-2-4": "At op {op}: Component {id_name} not found in dataset",
|
|
82
63
|
# Analytic errors
|
|
83
|
-
# TODO: Use error message 1-1-1-8
|
|
84
|
-
# "1-1-3-1": "At op {op}: No measures found to analyse.",
|
|
85
64
|
"1-1-3-2": "At op {op}: Only Identifiers are allowed for partitioning, "
|
|
86
|
-
|
|
65
|
+
"found {id_name} - {id_type}.",
|
|
87
66
|
# Cast errors
|
|
88
67
|
"1-1-5-1": "Type {type_1}, cannot be cast to {type_2}.",
|
|
89
68
|
"1-1-5-3": "Impossible to cast from type {type_1} to {type_2}, without providing a mask.",
|
|
90
69
|
"1-1-5-4": "Invalid mask to cast from type {type_1} to {type_2}.",
|
|
91
70
|
"1-1-5-5": "A mask can't be provided to cast from type {type_1} to {type_2}. Mask provided: "
|
|
92
|
-
|
|
71
|
+
"{mask_value}.",
|
|
93
72
|
"2-1-5-1": "Impossible to cast {value} from type {type_1} to {type_2}.",
|
|
94
73
|
# Clause errors
|
|
95
|
-
# "1-1-6-1": "At op {op}: Component {comp_name} not found in dataset {dataset_name}.",
|
|
96
74
|
"1-1-6-2": "At op {op}: The identifier {name} in dataset {dataset} could not be included "
|
|
97
|
-
|
|
98
|
-
# TODO: This is not possible at all, as calc clause adds a new column and
|
|
99
|
-
# identifiers are still unique
|
|
100
|
-
# "1-1-6-3": "Found duplicated values on identifiers after Calc clause.",
|
|
75
|
+
"in the {op} op.",
|
|
101
76
|
"1-1-6-4": "At op {op}: Alias symbol cannot have the name of a component symbol: "
|
|
102
|
-
|
|
77
|
+
"{symbol_name} - {comp_name}.",
|
|
103
78
|
"1-1-6-5": "At op {op}: Scalar values are not allowed at sub operator, found {name}.",
|
|
104
79
|
"1-1-6-6": "Membership is not allowed inside a clause, found {dataset_name}#{comp_name}.",
|
|
105
80
|
"1-1-6-7": "Cannot use component {comp_name} as it was generated in another calc expression.",
|
|
106
81
|
# all the components used in calccomp must belong to the operand dataset
|
|
107
82
|
"1-1-6-8": "Cannot use component {comp_name} for rename, it is already in the dataset "
|
|
108
|
-
|
|
83
|
+
"{dataset_name}.",
|
|
109
84
|
# it is the same error that 1-1-8-1 AND similar but not the same 1-3-1
|
|
110
85
|
"1-1-6-9": "At op {op}: The following components are repeated: {from_components}.",
|
|
111
86
|
"1-1-6-10": "At op {op}: Component {operand} in dataset {dataset_name} is not an identifier",
|
|
@@ -113,28 +88,27 @@ centralised_messages = {
|
|
|
113
88
|
# it is the same as the one that appears in joins, but are differents kinds of failures
|
|
114
89
|
"1-1-6-12": "At op {op}: Not allowed to drop the last element.",
|
|
115
90
|
"1-1-6-13": "At op {op}: Not allowed to overwrite an identifier: {comp_name}",
|
|
116
|
-
# "1-1-6-15": "At op {op}: Component {comp_name} already exists in dataset {dataset_name}",
|
|
117
91
|
# Comparison errors
|
|
118
92
|
"1-1-7-1": "At op {op}: Value in {left_name} of type {left_type} is not comparable to value "
|
|
119
|
-
|
|
93
|
+
"{right_name} of type {right_type}.",
|
|
120
94
|
# Conditional errors
|
|
121
95
|
"1-1-9-1": "At op {op}: The evaluation condition must result in a Boolean "
|
|
122
|
-
|
|
96
|
+
"expression, found '{type}'.",
|
|
123
97
|
"1-1-9-3": "At op {op}: Then clause {then_name} and else clause {else_name}, both must be "
|
|
124
|
-
|
|
98
|
+
"Scalars.",
|
|
125
99
|
"1-1-9-4": "At op {op}: The condition dataset {name} must contain an unique measure.",
|
|
126
100
|
"1-1-9-5": "At op {op}: The condition dataset Measure must be a Boolean, found '{type}'.",
|
|
127
101
|
"1-1-9-6": "At op {op}: Then-else datasets have different number of identifiers compared "
|
|
128
|
-
|
|
102
|
+
"with condition dataset.",
|
|
129
103
|
"1-1-9-9": "At op {op}: {clause} component {clause_name} role must be {role_1}, found "
|
|
130
|
-
|
|
104
|
+
"{role_2}.",
|
|
131
105
|
"1-1-9-10": "At op {op}: {clause} dataset have different number of identifiers compared with "
|
|
132
|
-
|
|
106
|
+
"condition dataset.",
|
|
133
107
|
"1-1-9-11": "At op {op}: Condition component {name} must be Boolean, found {type}.",
|
|
134
108
|
"1-1-9-12": "At op {op}: then clause {then_symbol} and else clause {else_symbol}, both must "
|
|
135
|
-
|
|
109
|
+
"be Datasets or at least one of them a Scalar.",
|
|
136
110
|
"1-1-9-13": "At op {op}: then {then} and else {else_clause} datasets must contain the same "
|
|
137
|
-
|
|
111
|
+
"number of components.",
|
|
138
112
|
"2-1-9-1": "At op {op}: Condition operators must have the same operator type.",
|
|
139
113
|
"2-1-9-2": "At op {op}: Condition {name} it's not a boolean.",
|
|
140
114
|
"2-1-9-3": "At op {op}: All then and else operands must be scalars.",
|
|
@@ -146,68 +120,66 @@ centralised_messages = {
|
|
|
146
120
|
"1-1-10-1": "At op {op}: The {op_type} operand must have exactly one measure of type {me_type}",
|
|
147
121
|
"1-1-10-2": "At op {op}: Number of variable has to be equal between the call and signature.",
|
|
148
122
|
"1-1-10-3": "At op {op}: Name in the call {found} has to be equal to variable rule in "
|
|
149
|
-
|
|
123
|
+
"signature {expected}.",
|
|
150
124
|
"1-1-10-4": "At op {op}: When a hierarchical ruleset is defined for value domain, it is "
|
|
151
|
-
|
|
125
|
+
"necessary to specify the component with the rule clause on call.",
|
|
152
126
|
"1-1-10-5": "No rules to analyze on Hierarchy Roll-up as rules have no = operator.",
|
|
153
127
|
"1-1-10-6": "At op {op}: Name in the call {found} has to be equal to variable condition in "
|
|
154
|
-
|
|
128
|
+
"signature {expected} .",
|
|
155
129
|
"1-1-10-7": "Not found component {comp_name} on signature.",
|
|
156
130
|
"1-1-10-8": "At op {op}: Measures involved have to be numerical, other types found {found}.",
|
|
157
131
|
"1-1-10-9": "Invalid signature for the ruleset {ruleset}. On variables, condComp and "
|
|
158
|
-
|
|
132
|
+
"ruleComp must be the same",
|
|
159
133
|
# General Operators
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
# "2-1-12-1": "At op {op}: Create a null measure without a scalar type is not allowed. "
|
|
163
|
-
# "Please use cast operator.",
|
|
134
|
+
"2-1-12-1": "At op {op}: Create a null measure without a scalar type is not allowed."
|
|
135
|
+
"Please use cast operator.",
|
|
164
136
|
# Join Operators
|
|
165
137
|
"1-1-13-1": "At op {op}: Duplicated alias {duplicates}.",
|
|
166
138
|
"1-1-13-2": "At op {op}: Missing mandatory aliasing.",
|
|
167
139
|
"1-1-13-3": "At op {op}: Join conflict with duplicated names for column {name} from original "
|
|
168
|
-
|
|
140
|
+
"datasets.",
|
|
169
141
|
"1-1-13-4": "At op {op}: Using clause, using={using_names}, does not define all the "
|
|
170
|
-
|
|
142
|
+
"identifiers, of non reference dataset {dataset}.",
|
|
171
143
|
"1-1-13-5": "At op {op}: Invalid subcase B1, All the datasets must share as identifiers the "
|
|
172
|
-
|
|
144
|
+
"using ones.",
|
|
173
145
|
# not in use but we keep for later, in use 1-1-13-4
|
|
174
146
|
"1-1-13-6": "At op {op}: Invalid subcase B2, All the declared using components "
|
|
175
|
-
|
|
176
|
-
|
|
147
|
+
"'{using_components}' must be present as components in the reference dataset "
|
|
148
|
+
"'{reference}'.",
|
|
177
149
|
"1-1-13-7": "At op {op}: Invalid subcase B2, All the non reference datasets must share as "
|
|
178
|
-
|
|
150
|
+
"identifiers the using ones.",
|
|
179
151
|
"1-1-13-8": "At op {op}: No available using clause.",
|
|
180
152
|
"1-1-13-9": "Ambiguity for this variable {comp_name} inside a join clause.",
|
|
181
153
|
"1-1-13-10": "The join operator does not perform scalar/component operations.",
|
|
182
154
|
"1-1-13-11": "At op {op}: Invalid subcase A, {dataset_reference} should be a superset but "
|
|
183
|
-
|
|
155
|
+
"{component} not found.",
|
|
184
156
|
# inner_join and left join
|
|
185
157
|
"1-1-13-12": "At op {op}: Invalid subcase A. There are different identifiers for the provided "
|
|
186
|
-
|
|
158
|
+
"datasets",
|
|
187
159
|
# full_join
|
|
188
160
|
"1-1-13-13": "At op {op}: Invalid subcase A. There are not same number of identifiers for the "
|
|
189
|
-
|
|
161
|
+
"provided datasets",
|
|
190
162
|
# full_join
|
|
191
163
|
"1-1-13-14": "Cannot perform a join over a Dataset Without Identifiers: {name}.",
|
|
192
164
|
"1-1-13-15": "At op {op}: {comp_name} has to be a Measure for all the provided datasets inside "
|
|
193
|
-
|
|
165
|
+
"the join",
|
|
194
166
|
"1-1-13-16": "At op {op}: Invalid use, please review : {msg}.",
|
|
195
167
|
"1-1-13-17": "At op {op}: {comp_name} not present in the dataset(result from join VDS) at the "
|
|
196
|
-
|
|
168
|
+
"time it is called",
|
|
197
169
|
# Operators general errors
|
|
198
170
|
"1-1-14-1": "At op {op}: Measure names don't match: {left} - {right}.",
|
|
199
171
|
"1-1-14-3": "At op {op}: Invalid scalar types for identifiers at DataSet {dataset}. One {type} "
|
|
200
|
-
|
|
172
|
+
"identifier expected, {count} found.",
|
|
201
173
|
"1-1-14-5": "At op {op}: {names} with type/s {types} is not compatible with {op}",
|
|
202
174
|
"1-1-14-6": "At op {op}: {comp_name} with type {comp_type} and scalar_set with type "
|
|
203
|
-
|
|
175
|
+
"{scalar_type} is not compatible with {op}",
|
|
204
176
|
# "1-1-14-8": "At op {op}: Operation not allowed for multimeasure datasets.",
|
|
205
177
|
"1-1-14-9": "At op {op}: {names} with type/s {types} is not compatible with {op} on datasets "
|
|
206
|
-
|
|
178
|
+
"{datasets}.",
|
|
207
179
|
# Numeric Operators
|
|
208
180
|
"1-1-15-8": "At op {op}: {op} operator cannot have a {comp_type} as parameter.",
|
|
209
181
|
"2-1-15-1": "At op {op}: Component {comp_name} from dataset {dataset_name} contains negative "
|
|
210
|
-
|
|
182
|
+
"values.",
|
|
211
183
|
"2-1-15-2": "At op {op}: Value {value} could not be negative.",
|
|
212
184
|
"2-1-15-3": "At op {op}: Base value {value} could not be less or equal 0.",
|
|
213
185
|
"2-1-15-4": "At op {op}: Invalid values in Component {name}.",
|
|
@@ -216,9 +188,9 @@ centralised_messages = {
|
|
|
216
188
|
"2-1-15-7": "At op {op}: {op} operator cannot be a dataset.",
|
|
217
189
|
# Set Operators
|
|
218
190
|
"1-1-17-1": "At op {op}: Datasets {dataset_1} and {dataset_2} have different number of "
|
|
219
|
-
|
|
191
|
+
"components",
|
|
220
192
|
# String Operators
|
|
221
|
-
|
|
193
|
+
"1-1-18-1": "At op {op}: Invalid Dataset {name}. Dataset with one measure expected.",
|
|
222
194
|
"1-1-18-2": "At op {op}: Composition of DataSet and Component is not allowed.",
|
|
223
195
|
"1-1-18-3": "At op {op}: Invalid parameter position: {pos}.",
|
|
224
196
|
"1-1-18-4": "At op {op}: {param_type} parameter should be {correct_type}.",
|
|
@@ -230,51 +202,50 @@ centralised_messages = {
|
|
|
230
202
|
"1-1-19-2": "At op {op}: Unknown date type for {op}.",
|
|
231
203
|
"1-1-19-3": "At op {op}: Invalid {param} for {op}.",
|
|
232
204
|
"1-1-19-4": "At op {op}: Invalid values {value_1} and {value_2}, periodIndTo parameter must be "
|
|
233
|
-
|
|
205
|
+
"a larger duration value than periodIndFrom parameter.",
|
|
234
206
|
"1-1-19-5": "At op {op}: periodIndTo parameter must be a larger duration value than the values "
|
|
235
|
-
|
|
207
|
+
"to aggregate.",
|
|
236
208
|
"1-1-19-6": "At op {op}: Time type used in the component {comp} is not supported.",
|
|
237
209
|
"1-1-19-7": "At op {op}: can be applied only on Data Sets (of time series) and returns a Data "
|
|
238
|
-
|
|
210
|
+
"Set (of time series).",
|
|
239
211
|
# flow_to_stock, stock_to_flow
|
|
240
212
|
"1-1-19-8": "At op {op}: {op} can only be applied to a {comp_type}",
|
|
241
213
|
"1-1-19-9": "At op {op}: {op} can only be applied to a {comp_type} with a {param}",
|
|
242
214
|
# New Unary time operators
|
|
243
215
|
"1-1-19-10": "{op} can only be applied to operands with data type as Date or Time Period",
|
|
216
|
+
"1-1-19-11": "The time aggregation operand has to be "
|
|
217
|
+
"defined if not used inside an aggregation.",
|
|
244
218
|
# Other time operators
|
|
245
219
|
"2-1-19-1": "At op {op}: Invalid values {value_1} and {value_2} for duration, "
|
|
246
|
-
|
|
247
|
-
|
|
220
|
+
"periodIndTo parameter must be a larger duration value than the "
|
|
221
|
+
"values to aggregate.",
|
|
248
222
|
"2-1-19-2": "Invalid period indicator {period}.",
|
|
249
223
|
"2-1-19-3": "Only same period indicator allowed for both parameters ({period1} != {period2}).",
|
|
250
224
|
"2-1-19-4": "Date setter, ({value} > {date}). Cannot set date1 with a value higher than date2.",
|
|
251
225
|
"2-1-19-5": "Date setter, ({value} < {date}). Cannot set date2 with a value lower than date1.",
|
|
252
226
|
"2-1-19-6": "Invalid period format, must be YYYY-(L)NNN: {period_format}",
|
|
253
227
|
"2-1-19-7": "Period Number must be between 1 and {periods} for period indicator "
|
|
254
|
-
|
|
228
|
+
"{period_indicator}.",
|
|
255
229
|
"2-1-19-8": "Invalid date format, must be YYYY-MM-DD: {date}",
|
|
256
230
|
"2-1-19-9": "Invalid day {day} for year {year}.",
|
|
257
231
|
"2-1-19-10": "Invalid year {year}, must be between 1900 and 9999.",
|
|
258
232
|
"2-1-19-11": "{op} operator is not compatible with time values",
|
|
259
|
-
"2-1-19-12": "At op {op}: Invalid param type {type} for param {name}, "
|
|
260
|
-
"expected {expected}.",
|
|
233
|
+
"2-1-19-12": "At op {op}: Invalid param type {type} for param {name}, expected {expected}.",
|
|
261
234
|
"2-1-19-13": "At op {op}: Invalid param data_type {type} for param {name}, "
|
|
262
|
-
|
|
235
|
+
"expected {expected}.",
|
|
263
236
|
"2-1-19-14": "At op {op}: Invalid dataset {name}, requires at least one Date/Time_Period "
|
|
264
|
-
|
|
265
|
-
"2-1-19-15": "{op} can only be applied according to the
|
|
266
|
-
"2-1-19-16": "{op} can only be
|
|
267
|
-
"2-1-19-17": "{op} can only be positive numbers",
|
|
237
|
+
"measure.",
|
|
238
|
+
"2-1-19-15": "{op} can only be applied according to the iso 8601 format mask",
|
|
239
|
+
"2-1-19-16": "{op} can only be positive numbers",
|
|
268
240
|
# ----------- Interpreter Common ------
|
|
269
241
|
"2-3-1": "{comp_type} {comp_name} not found.",
|
|
270
242
|
"2-3-2": "{op_type} cannot be used with {node_op} operators.",
|
|
271
|
-
# "2-3-3": "Internal error: Not able to categorize {value}.",
|
|
272
243
|
"2-3-4": "{op} operator must have a {comp}",
|
|
273
244
|
"2-3-5": "Expected {param_type}, got {type_name} on UDO {op}, parameter {param_name}",
|
|
274
245
|
"2-3-6": "Dataset {dataset_name} not found, please check input datastructures",
|
|
275
246
|
"2-3-9": "{comp_type} {comp_name} not found in {param}.",
|
|
276
247
|
"2-3-10": "No {comp_type} have been defined.",
|
|
277
|
-
|
|
248
|
+
"2-3-11": "{pos} operand must be a dataset.",
|
|
278
249
|
# ---------Semantic Analyzer Common----
|
|
279
250
|
"1-3-1": "Please don't use twice {alias} like var_to.",
|
|
280
251
|
"1-3-3": "Overwriting a dataset/variable is not allowed, trying it with {varId_value}.",
|
|
@@ -285,7 +256,6 @@ centralised_messages = {
|
|
|
285
256
|
"1-3-10": "Not valid set declaration, mixed scalar types {scalar_1} and {scalar_2}.",
|
|
286
257
|
"1-3-12": "Default arguments cannot be followed by non-default arguments.",
|
|
287
258
|
"1-3-15": "Missing datastructure definition for required input Dataset {input}.",
|
|
288
|
-
# "1-3-16": "Component {name} not found.",
|
|
289
259
|
"1-3-17": "Operations without output assigned are not available.",
|
|
290
260
|
"1-3-19": "No {node_type} {node_value} found.",
|
|
291
261
|
"1-3-20": "RuleComp of Hierarchical Ruleset can only be an identifier, {name} is a {role}.",
|
|
@@ -293,13 +263,13 @@ centralised_messages = {
|
|
|
293
263
|
"1-3-22": "Unable to categorize {node_value}.",
|
|
294
264
|
"1-3-23": "Missing value domain '{name}' definition, please provide an structure.",
|
|
295
265
|
"1-3-24": "Internal error on Analytic operators inside a calc, No partition or "
|
|
296
|
-
|
|
266
|
+
"order symbol found.",
|
|
297
267
|
"1-3-26": "Value domain {name} not found.",
|
|
298
268
|
"1-3-27": "Dataset without identifiers are not allowed in {op} operator.",
|
|
299
269
|
"1-3-28": "At op {op}: invalid number of parameters: received {received}, expected at "
|
|
300
|
-
|
|
270
|
+
"least: {expected}",
|
|
301
271
|
"1-3-29": "At op {op}: can not use user defined operator that returns a component outside "
|
|
302
|
-
|
|
272
|
+
"clause operator or rule",
|
|
303
273
|
"1-3-30": "At op {op}: too many parameters: received {received}, expected: {expected}",
|
|
304
274
|
"1-3-31": "Cannot use component {name} outside an aggregate function in a having clause.",
|
|
305
275
|
"1-3-32": "Cannot perform operation {op} inside having clause.",
|
|
@@ -311,25 +281,24 @@ centralised_messages = {
|
|
|
311
281
|
"1-4-1-1": "At op {op}: User defined {option} declared as {type_1}, found {type_2}.",
|
|
312
282
|
"1-4-1-2": "Using variable {value}, not defined at {op} definition.",
|
|
313
283
|
"1-4-1-3": "At op {op}: using variable {value}, not defined as an argument.",
|
|
314
|
-
"1-4-1-4": "Found duplicates at arguments naming, please review {type}
|
|
284
|
+
"1-4-1-4": "Found duplicates at arguments naming, please review {type} definition {op}.",
|
|
315
285
|
"1-4-1-5": "Found duplicates at rule naming: {names}. Please review {type} "
|
|
316
|
-
|
|
286
|
+
"{ruleset_name} definition.",
|
|
317
287
|
"1-4-1-6": "At op {op}: Arguments incoherence, {defined} defined {passed} passed.",
|
|
318
288
|
"1-4-1-7": "All rules must be named or not named, but found mixed criteria at {type} "
|
|
319
|
-
|
|
289
|
+
"definition {name}.",
|
|
320
290
|
"1-4-1-8": "All rules must have different code items in the left side of '=' in hierarchy "
|
|
321
|
-
|
|
291
|
+
"operator at hierachical ruleset definition {name}.",
|
|
322
292
|
"1-4-1-9": "At op check_datapoint: {name} has an invalid datatype expected DataSet, found "
|
|
323
|
-
|
|
293
|
+
"Scalar.",
|
|
324
294
|
# AST Creation
|
|
325
295
|
"1-4-2-1": "Eval could not be called without a {option} type definition.",
|
|
326
296
|
"1-4-2-2": "Optional or empty expression node is not allowed in time_agg.",
|
|
327
297
|
"1-4-2-3": "{value} could not be called in the count.",
|
|
328
298
|
"1-4-2-4": "At op {op}: Only one order_by element must be used in Analytic with range "
|
|
329
|
-
|
|
299
|
+
"windowing.",
|
|
330
300
|
"1-4-2-5": "At op {op}: User defined operator without returns is not implemented.",
|
|
331
301
|
"1-4-2-6": "At op {op}: Window must be provided.",
|
|
332
302
|
"1-4-2-7": "At op {op}: Partition by or order by clause must be provided for Analytic "
|
|
333
|
-
|
|
334
|
-
# Not Implemented Error
|
|
303
|
+
"operators.",
|
|
335
304
|
}
|