vtlengine 1.4.0rc2__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.
- vtlengine/API/_InternalApi.py +791 -0
- vtlengine/API/__init__.py +612 -0
- vtlengine/API/data/schema/external_routines_schema.json +34 -0
- vtlengine/API/data/schema/json_schema_2.1.json +116 -0
- vtlengine/API/data/schema/value_domain_schema.json +97 -0
- vtlengine/AST/ASTComment.py +57 -0
- vtlengine/AST/ASTConstructor.py +598 -0
- vtlengine/AST/ASTConstructorModules/Expr.py +1928 -0
- vtlengine/AST/ASTConstructorModules/ExprComponents.py +995 -0
- vtlengine/AST/ASTConstructorModules/Terminals.py +790 -0
- vtlengine/AST/ASTConstructorModules/__init__.py +50 -0
- vtlengine/AST/ASTDataExchange.py +10 -0
- vtlengine/AST/ASTEncoders.py +32 -0
- vtlengine/AST/ASTString.py +675 -0
- vtlengine/AST/ASTTemplate.py +558 -0
- vtlengine/AST/ASTVisitor.py +25 -0
- vtlengine/AST/DAG/__init__.py +479 -0
- vtlengine/AST/DAG/_words.py +10 -0
- vtlengine/AST/Grammar/Vtl.g4 +705 -0
- vtlengine/AST/Grammar/VtlTokens.g4 +409 -0
- vtlengine/AST/Grammar/__init__.py +0 -0
- vtlengine/AST/Grammar/lexer.py +2139 -0
- vtlengine/AST/Grammar/parser.py +16597 -0
- vtlengine/AST/Grammar/tokens.py +169 -0
- vtlengine/AST/VtlVisitor.py +824 -0
- vtlengine/AST/__init__.py +674 -0
- vtlengine/DataTypes/TimeHandling.py +562 -0
- vtlengine/DataTypes/__init__.py +863 -0
- vtlengine/DataTypes/_time_checking.py +135 -0
- vtlengine/Exceptions/__exception_file_generator.py +96 -0
- vtlengine/Exceptions/__init__.py +159 -0
- vtlengine/Exceptions/messages.py +1004 -0
- vtlengine/Interpreter/__init__.py +2048 -0
- vtlengine/Model/__init__.py +501 -0
- vtlengine/Operators/Aggregation.py +357 -0
- vtlengine/Operators/Analytic.py +455 -0
- vtlengine/Operators/Assignment.py +23 -0
- vtlengine/Operators/Boolean.py +106 -0
- vtlengine/Operators/CastOperator.py +451 -0
- vtlengine/Operators/Clause.py +366 -0
- vtlengine/Operators/Comparison.py +488 -0
- vtlengine/Operators/Conditional.py +495 -0
- vtlengine/Operators/General.py +191 -0
- vtlengine/Operators/HROperators.py +254 -0
- vtlengine/Operators/Join.py +447 -0
- vtlengine/Operators/Numeric.py +422 -0
- vtlengine/Operators/RoleSetter.py +77 -0
- vtlengine/Operators/Set.py +176 -0
- vtlengine/Operators/String.py +578 -0
- vtlengine/Operators/Time.py +1144 -0
- vtlengine/Operators/Validation.py +275 -0
- vtlengine/Operators/__init__.py +900 -0
- vtlengine/Utils/__Virtual_Assets.py +34 -0
- vtlengine/Utils/__init__.py +479 -0
- vtlengine/__extras_check.py +17 -0
- vtlengine/__init__.py +27 -0
- vtlengine/files/__init__.py +0 -0
- vtlengine/files/output/__init__.py +35 -0
- vtlengine/files/output/_time_period_representation.py +55 -0
- vtlengine/files/parser/__init__.py +240 -0
- vtlengine/files/parser/_rfc_dialect.py +22 -0
- vtlengine/py.typed +0 -0
- vtlengine-1.4.0rc2.dist-info/METADATA +89 -0
- vtlengine-1.4.0rc2.dist-info/RECORD +66 -0
- vtlengine-1.4.0rc2.dist-info/WHEEL +4 -0
- vtlengine-1.4.0rc2.dist-info/licenses/LICENSE.md +661 -0
|
@@ -0,0 +1,1004 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Exceptions.messages.py
|
|
3
|
+
======================
|
|
4
|
+
|
|
5
|
+
Description
|
|
6
|
+
-----------
|
|
7
|
+
All exceptions exposed by the Vtl engine.
|
|
8
|
+
"""
|
|
9
|
+
# -------------- Codification --------------
|
|
10
|
+
#
|
|
11
|
+
# -------------- INPUT ERRORS --------------
|
|
12
|
+
# 0-1-X-X = Input Validation Errors
|
|
13
|
+
# 0-2-X-X = JSON Schema Errors
|
|
14
|
+
# 0-3-X-X = DataLoad Errors
|
|
15
|
+
#
|
|
16
|
+
# -------------- SEMANTIC ERRORS --------------
|
|
17
|
+
# 1-1-X-X = Operators Semantic Errors
|
|
18
|
+
# 1-2-X-X = Semantic Analyzer Errors
|
|
19
|
+
# 1-3-X-X = AST Errors
|
|
20
|
+
#
|
|
21
|
+
# -------------- RUNTIME ERRORS --------------
|
|
22
|
+
# 2-X-X-X = RunTime Operator Errors
|
|
23
|
+
|
|
24
|
+
centralised_messages = {
|
|
25
|
+
# Input Validation errors
|
|
26
|
+
"0-1-0-1": {
|
|
27
|
+
"message": "Trying to redefine input Datasets {dataset}.",
|
|
28
|
+
"description": "Raised when the user attempts to redefine an input Dataset "
|
|
29
|
+
"that already exists.",
|
|
30
|
+
},
|
|
31
|
+
"0-1-1-1": {
|
|
32
|
+
"message": "invalid script format type: {format_}. Input must be a string, "
|
|
33
|
+
"TransformationScheme or Path object",
|
|
34
|
+
"description": "Occurs when the script input type is not valid. It must be "
|
|
35
|
+
"a string, TransformationScheme, or Path object.",
|
|
36
|
+
},
|
|
37
|
+
"0-1-1-2": {
|
|
38
|
+
"message": "The provided input {input} can not be used in this instance.",
|
|
39
|
+
"description": "Raised when an input Dataset or value cannot be used in "
|
|
40
|
+
"the current context.",
|
|
41
|
+
},
|
|
42
|
+
"0-1-1-3": {
|
|
43
|
+
"message": "Invalid file extension: expected {expected_ext}, got {ext}",
|
|
44
|
+
"description": "Occurs when a file has an incorrect extension compared "
|
|
45
|
+
"to the expected one.",
|
|
46
|
+
},
|
|
47
|
+
"0-1-1-6": {
|
|
48
|
+
"message": "Duplicated records. Combination of Identifiers are repeated.",
|
|
49
|
+
"description": "Raised when duplicate rows are detected based on the Identifiers "
|
|
50
|
+
"combination.",
|
|
51
|
+
},
|
|
52
|
+
"0-1-1-7": {
|
|
53
|
+
"message": "G1 - The provided CSV file is empty.",
|
|
54
|
+
"description": "Occurs when the input CSV file does not contain any data.",
|
|
55
|
+
},
|
|
56
|
+
"0-1-1-8": {
|
|
57
|
+
"message": "The following Identifiers {ids} were not found , review file {file}.",
|
|
58
|
+
"description": "Raised when certain expected Identifiers are missing in the input Dataset.",
|
|
59
|
+
},
|
|
60
|
+
"0-1-1-9": {
|
|
61
|
+
"message": "You have a problem related with commas, review rfc4180 standard, "
|
|
62
|
+
"review file {file}.",
|
|
63
|
+
"description": "Occurs when CSV formatting issues are detected, particularly with commas, "
|
|
64
|
+
"violating RFC4180.",
|
|
65
|
+
},
|
|
66
|
+
"0-1-1-11": {
|
|
67
|
+
"message": "Wrong data in the file for this Scalar/Dataset {name}.",
|
|
68
|
+
"description": "Raised when a Scalar or Dataset contains invalid or inconsistent data.",
|
|
69
|
+
},
|
|
70
|
+
"0-1-1-13": {
|
|
71
|
+
"message": "Invalid key on {field} field: {key}{closest_key}.",
|
|
72
|
+
"description": "Occurs when a key provided in the Dataset does not exist in the field.",
|
|
73
|
+
},
|
|
74
|
+
"0-1-1-14": {
|
|
75
|
+
"message": "Empty Datasets {dataset1} and {dataset2} shape missmatch.",
|
|
76
|
+
"description": "Raised when two Datasets are empty or have incompatible shapes.",
|
|
77
|
+
},
|
|
78
|
+
"0-1-2-3": {
|
|
79
|
+
"message": "{element_type} '{element}' is/are duplicated.",
|
|
80
|
+
"description": "Occurs when an element (e.g., Identifier or component) "
|
|
81
|
+
"appears more than once.",
|
|
82
|
+
},
|
|
83
|
+
"0-1-2-5": {
|
|
84
|
+
"message": "File {file} must be encoded in utf-8 (without BOM).",
|
|
85
|
+
"description": "Raised when the file encoding is not UTF-8 without BOM.",
|
|
86
|
+
},
|
|
87
|
+
"0-1-2-7": {
|
|
88
|
+
"message": "Invalid value '{value}' for type {type_} {op_type} {name}.",
|
|
89
|
+
"description": "Occurs when a value does not match the expected type or operation "
|
|
90
|
+
"constraints.",
|
|
91
|
+
},
|
|
92
|
+
"0-1-2-8": {
|
|
93
|
+
"message": "Cannot pass as inputs Datasets/Scalars defined as outputs of transformations "
|
|
94
|
+
"in the script, please check: {names}",
|
|
95
|
+
"description": "Raised when an output of a transformation is incorrectly used as an input.",
|
|
96
|
+
},
|
|
97
|
+
# Run SDMX errors
|
|
98
|
+
"0-1-3-1": {
|
|
99
|
+
"message": "Expected exactly one input Dataset in the whole script, "
|
|
100
|
+
"found: {number_Datasets}",
|
|
101
|
+
"description": "Raised when the script expects exactly one input Dataset but finds "
|
|
102
|
+
"more than one.",
|
|
103
|
+
},
|
|
104
|
+
"0-1-3-2": {
|
|
105
|
+
"message": "SDMX Dataset {schema} requires to have a Schema object defined as structure",
|
|
106
|
+
"description": "Occurs when an SDMX Dataset is missing its required schema definition.",
|
|
107
|
+
},
|
|
108
|
+
"0-1-3-3": {
|
|
109
|
+
"message": "If no mappings are provided, only one Dataset is allowed.",
|
|
110
|
+
"description": "Raised when multiple Datasets are provided without mappings, "
|
|
111
|
+
"but only one is allowed.",
|
|
112
|
+
},
|
|
113
|
+
"0-1-3-4": {
|
|
114
|
+
"message": "Dataset {short_urn} not found in mapping dictionary.",
|
|
115
|
+
"description": "Occurs when the Datasets short URN is does not exists in the "
|
|
116
|
+
"mapping dictionary.",
|
|
117
|
+
},
|
|
118
|
+
"0-1-3-5": {
|
|
119
|
+
"message": "Dataset {dataset_name} not found in the input Datasets.",
|
|
120
|
+
"description": "Raised when a Dataset expected as input is missing from the "
|
|
121
|
+
"provided Datasets.",
|
|
122
|
+
},
|
|
123
|
+
"0-1-3-6": {
|
|
124
|
+
"message": "Input name {missing} not found in the input Datasets.",
|
|
125
|
+
"description": "Occurs when a named input Dataset cannot be found among "
|
|
126
|
+
"the available inputs.",
|
|
127
|
+
},
|
|
128
|
+
"0-1-3-7": {
|
|
129
|
+
"message": "Invalid input Datasets type: {type_}. Expected a sequence of PandasDataset.",
|
|
130
|
+
"description": "Raised when the type of input Datasets is incorrect; "
|
|
131
|
+
"a sequence of PandasDataset is expected.",
|
|
132
|
+
},
|
|
133
|
+
# JSON Schema errors
|
|
134
|
+
"0-2-1-1": {
|
|
135
|
+
"message": "The provided JSON does not follow the required JSON Schema",
|
|
136
|
+
"description": "Occurs when a JSON input does not comply with the expected schema.",
|
|
137
|
+
},
|
|
138
|
+
"0-2-1-2": {
|
|
139
|
+
"message": "Dataset {dataset} is not valid according to JSON schema",
|
|
140
|
+
"description": "Raised when the Dataset does not conform to the expected JSON schema.",
|
|
141
|
+
},
|
|
142
|
+
# DataLoad errors
|
|
143
|
+
"0-3-1-1": {
|
|
144
|
+
"message": "{file} file not found. Please verify that the file exists and the provided "
|
|
145
|
+
"path is correct.",
|
|
146
|
+
"description": "Occurs when the specified file cannot be located at the given path.",
|
|
147
|
+
},
|
|
148
|
+
"0-3-1-2": {
|
|
149
|
+
"message": "Output folder {folder} not found or invalid. Must be a valid Path or "
|
|
150
|
+
"S3 directory.",
|
|
151
|
+
"description": "Raised when the output folder path is missing or not valid "
|
|
152
|
+
"for saving results.",
|
|
153
|
+
},
|
|
154
|
+
"0-3-1-3": {
|
|
155
|
+
"message": "On Dataset {name} loading: An Identifier cannot have null values, "
|
|
156
|
+
"found null values on {null_identifier}.",
|
|
157
|
+
"description": "Occurs when a Dataset Identifier contains null values, which "
|
|
158
|
+
"is not allowed.",
|
|
159
|
+
},
|
|
160
|
+
"0-3-1-4": {
|
|
161
|
+
"message": "On Dataset {name} loading: Datasets without Identifiers "
|
|
162
|
+
"must have 0 or 1 datapoints.",
|
|
163
|
+
"description": "Raised when a Dataset without Identifiers has more than one datapoint.",
|
|
164
|
+
},
|
|
165
|
+
"0-3-1-5": {
|
|
166
|
+
"message": "On Dataset {name} loading: Component {comp_name} is missing in Datapoints.",
|
|
167
|
+
"description": "Occurs when a required component is missing from the Dataset datapoints.",
|
|
168
|
+
},
|
|
169
|
+
"0-3-1-6": {
|
|
170
|
+
"message": "On Dataset {name} loading: not possible to cast column {column} to {type}.",
|
|
171
|
+
"description": "Raised when a Dataset column cannot be cast to the expected data type.",
|
|
172
|
+
},
|
|
173
|
+
"0-3-1-7": {
|
|
174
|
+
"message": "On Dataset {name} loading: Duplicated Identifiers are not allowed, "
|
|
175
|
+
"found on row {row_index}",
|
|
176
|
+
"description": "Occurs when a Dataset contains duplicated Identifiers, "
|
|
177
|
+
"which is not allowed.",
|
|
178
|
+
},
|
|
179
|
+
# ------------Operators-------------
|
|
180
|
+
# General Semantic errors
|
|
181
|
+
"1-1-1-1": {
|
|
182
|
+
"message": "Invalid implicit cast from {type_1} to {type_2}.",
|
|
183
|
+
"description": "Raised when an implicit type conversion from {type_1} to {type_2} "
|
|
184
|
+
"is not allowed.",
|
|
185
|
+
},
|
|
186
|
+
"1-1-1-2": {
|
|
187
|
+
"message": "Invalid implicit cast from {type_1} and {type_2} to {type_check}.",
|
|
188
|
+
"description": "Occurs when the combination of types {type_1} and {type_2} "
|
|
189
|
+
"cannot be implicitly cast to {type_check}.",
|
|
190
|
+
},
|
|
191
|
+
"1-1-1-3": {
|
|
192
|
+
"message": "At op {op}: {entity} {name} cannot be promoted to {target_type}.",
|
|
193
|
+
"description": "Raised when a Dataset or Scalar cannot be promoted to "
|
|
194
|
+
"the required target type in the operation {op}.",
|
|
195
|
+
},
|
|
196
|
+
"1-1-1-4": {
|
|
197
|
+
"message": "At op {op}: Operation not allowed for multimeasure Datasets.",
|
|
198
|
+
"description": "Occurs when an operation is attempted on a Dataset with multiple Measures, "
|
|
199
|
+
"which is not permitted.",
|
|
200
|
+
},
|
|
201
|
+
"1-1-1-5": {
|
|
202
|
+
"message": "At op {op}: Invalid type {type}.",
|
|
203
|
+
"description": "Raised when an operand or component has an invalid type for "
|
|
204
|
+
"the operation {op}.",
|
|
205
|
+
},
|
|
206
|
+
"1-1-1-8": {
|
|
207
|
+
"message": "At op {op}: Invalid Dataset {name}, no Measures defined.",
|
|
208
|
+
"description": "Occurs when a Dataset is expected to have Measures but none are defined.",
|
|
209
|
+
},
|
|
210
|
+
"1-1-1-9": {
|
|
211
|
+
"message": "At op {op}: Invalid Dataset {name}, all Measures must have "
|
|
212
|
+
"the same type: {type}.",
|
|
213
|
+
"description": "Raised when Measures in a Dataset have different types each other.",
|
|
214
|
+
},
|
|
215
|
+
"1-1-1-10": {
|
|
216
|
+
"message": "Component {comp_name} not found in Dataset {dataset_name}.",
|
|
217
|
+
"description": "Occurs when a referenced component is missing from the Dataset.",
|
|
218
|
+
},
|
|
219
|
+
"1-1-1-13": {
|
|
220
|
+
"message": "At op {op}: Component {comp_name} role must be '{role_1}', found '{role_2}'.",
|
|
221
|
+
"description": "Raised when a Dataset component has an unexpected role for the operation.",
|
|
222
|
+
},
|
|
223
|
+
"1-1-1-15": {
|
|
224
|
+
"message": "At op {op}: Datasets {name_1} and {name_2} does not contain the same "
|
|
225
|
+
"number of {type}.",
|
|
226
|
+
"description": "Occurs when two Datasets expected to have the same number of a "
|
|
227
|
+
"specific type of components do not match.",
|
|
228
|
+
},
|
|
229
|
+
"1-1-1-16": {
|
|
230
|
+
"message": "Found structure not nullable and null values.",
|
|
231
|
+
"description": "Raised when null values are found in a structure that "
|
|
232
|
+
"is defined as non-nullable.",
|
|
233
|
+
},
|
|
234
|
+
"1-1-1-20": {
|
|
235
|
+
"message": "At op {op}: Only applies to Datasets, instead of this a Scalar was provided.",
|
|
236
|
+
"description": "Occurs when a Scalar is provided to an operation "
|
|
237
|
+
"that only supports Datasets.",
|
|
238
|
+
},
|
|
239
|
+
# Aggregate errors
|
|
240
|
+
"1-1-2-2": {
|
|
241
|
+
"message": "At op {op}: Only Identifiers are allowed for grouping, "
|
|
242
|
+
"found {id_name} - {id_type}.",
|
|
243
|
+
"description": "Raised when a non-Identifier component is used in a grouping operation.",
|
|
244
|
+
},
|
|
245
|
+
"1-1-2-3": {
|
|
246
|
+
"message": "Having component output type must be boolean, found {type}.",
|
|
247
|
+
"description": "Occurs when the output of a component in a HAVING clause "
|
|
248
|
+
"is not boolean as required.",
|
|
249
|
+
},
|
|
250
|
+
# Analytic errors
|
|
251
|
+
"1-1-3-2": {
|
|
252
|
+
"message": "At op {op}: Only Identifiers are allowed for partitioning, "
|
|
253
|
+
"found {id_name} - {id_type}.",
|
|
254
|
+
"description": "Raised when a non-Identifier component is used as a "
|
|
255
|
+
"partitioning key in an analytic operation.",
|
|
256
|
+
},
|
|
257
|
+
# Cast errors
|
|
258
|
+
"1-1-5-1": {
|
|
259
|
+
"message": "Type {type_1}, cannot be cast to {type_2}.",
|
|
260
|
+
"description": "Occurs when an explicit or implicit cast between incompatible types "
|
|
261
|
+
"is attempted.",
|
|
262
|
+
},
|
|
263
|
+
"1-1-5-3": {
|
|
264
|
+
"message": "Impossible to cast from type {type_1} to {type_2}, without providing a mask.",
|
|
265
|
+
"description": "Raised when a cast requires a mask to resolve ambiguities, "
|
|
266
|
+
"but none is provided.",
|
|
267
|
+
},
|
|
268
|
+
"1-1-5-4": {
|
|
269
|
+
"message": "Invalid mask to cast from type {type_1} to {type_2}.",
|
|
270
|
+
"description": "Occurs when the mask provided for casting is invalid or incompatible "
|
|
271
|
+
"with the types.",
|
|
272
|
+
},
|
|
273
|
+
"1-1-5-5": {
|
|
274
|
+
"message": "A mask can't be provided to cast from type {type_1} to {type_2}. "
|
|
275
|
+
"Mask provided: {mask_value}.",
|
|
276
|
+
"description": "Raised when a mask is provided in a context where it should not be used "
|
|
277
|
+
"for the cast.",
|
|
278
|
+
},
|
|
279
|
+
"2-1-5-1": {
|
|
280
|
+
"message": "Impossible to cast {value} from type {type_1} to {type_2}.",
|
|
281
|
+
"description": "Occurs when a value cannot be converted between the specified types.",
|
|
282
|
+
},
|
|
283
|
+
"2-1-5-2": {
|
|
284
|
+
"message": "Value {value} has decimals, cannot cast to integer",
|
|
285
|
+
"description": "Raised when attempting to cast a decimal value to an integer, "
|
|
286
|
+
"which is not allowed.",
|
|
287
|
+
},
|
|
288
|
+
# Clause errors
|
|
289
|
+
"1-1-6-2": {
|
|
290
|
+
"message": "At op {op}: The Identifier {name} in Dataset {dataset} could not be included "
|
|
291
|
+
"in the {op} op.",
|
|
292
|
+
"description": "Raised when an Identifier cannot be included in the specified operation.",
|
|
293
|
+
},
|
|
294
|
+
"1-1-6-4": {
|
|
295
|
+
"message": "At op {op}: Alias symbol cannot have the name of a "
|
|
296
|
+
"component symbol: {symbol_name} - {comp_name}.",
|
|
297
|
+
"description": "Occurs when an alias uses a name that conflicts with an "
|
|
298
|
+
"existing component symbol.",
|
|
299
|
+
},
|
|
300
|
+
"1-1-6-5": {
|
|
301
|
+
"message": "At op {op}: Scalar values are not allowed at sub operator, found {name}.",
|
|
302
|
+
"description": "Raised when a Scalar is used where only Dataset components are allowed.",
|
|
303
|
+
},
|
|
304
|
+
"1-1-6-6": {
|
|
305
|
+
"message": "Membership is not allowed inside a clause, found {dataset_name}#{comp_name}.",
|
|
306
|
+
"description": "Occurs when a membership operation is attempted inside a clause, "
|
|
307
|
+
"which is invalid.",
|
|
308
|
+
},
|
|
309
|
+
"1-1-6-7": {
|
|
310
|
+
"message": "Cannot use component {comp_name} as it was generated in another "
|
|
311
|
+
"calc expression.",
|
|
312
|
+
"description": "Raised when trying to reuse a component generated in a "
|
|
313
|
+
"different calculation expression.",
|
|
314
|
+
},
|
|
315
|
+
"1-1-6-8": {
|
|
316
|
+
"message": "Cannot use component {comp_name} for rename, it is already in the "
|
|
317
|
+
"Dataset {dataset_name}.",
|
|
318
|
+
"description": "Occurs when attempting to rename a component that already "
|
|
319
|
+
"exists in the Dataset.",
|
|
320
|
+
},
|
|
321
|
+
"1-1-6-9": {
|
|
322
|
+
"message": "At op {op}: The following components are repeated: {from_components}.",
|
|
323
|
+
"description": "Raised when duplicate components are detected in the operation.",
|
|
324
|
+
},
|
|
325
|
+
"1-1-6-10": {
|
|
326
|
+
"message": "At op {op}: Component {operand} in Dataset {dataset_name} is not an Identifier",
|
|
327
|
+
"description": "Occurs when a component expected to be an Identifier is not.",
|
|
328
|
+
},
|
|
329
|
+
"1-1-6-11": {
|
|
330
|
+
"message": "Ambiguity for this variable {comp_name}, exists as a Scalar and component.",
|
|
331
|
+
"description": "Raised when a variable name exists both as a Scalar and component, "
|
|
332
|
+
"creating ambiguity.",
|
|
333
|
+
},
|
|
334
|
+
"1-1-6-12": {
|
|
335
|
+
"message": "At op {op}: Not allowed to drop the last element.",
|
|
336
|
+
"description": "Occurs when attempting to remove the last element, which is not permitted.",
|
|
337
|
+
},
|
|
338
|
+
"1-1-6-13": {
|
|
339
|
+
"message": "At op {op}: Not allowed to overwrite an Identifier: {comp_name}",
|
|
340
|
+
"description": "Raised when an operation attempts to overwrite an existing Identifier.",
|
|
341
|
+
},
|
|
342
|
+
# Comparison errors
|
|
343
|
+
"1-1-7-1": {
|
|
344
|
+
"message": "At op {op}: Value in {left_name} of type {left_type} is not comparable "
|
|
345
|
+
"to value {right_name} of type {right_type}.",
|
|
346
|
+
"description": "Occurs when attempting to compare values of incompatible types.",
|
|
347
|
+
},
|
|
348
|
+
# Conditional errors
|
|
349
|
+
"1-1-9-1": {
|
|
350
|
+
"message": "At op {op}: The evaluation condition must result in a Boolean expression, "
|
|
351
|
+
"found '{type}'.",
|
|
352
|
+
"description": "Raised when the condition in a conditional operation does not evaluate "
|
|
353
|
+
"to Boolean.",
|
|
354
|
+
},
|
|
355
|
+
"1-1-9-3": {
|
|
356
|
+
"message": "At op {op}: Then clause {then_name} and else clause {else_name}, "
|
|
357
|
+
"both must be Scalars.",
|
|
358
|
+
"description": "Occurs when then/else clauses are not both Scalars, which it is required.",
|
|
359
|
+
},
|
|
360
|
+
"1-1-9-4": {
|
|
361
|
+
"message": "At op {op}: The condition Dataset {name} must contain an unique Measure.",
|
|
362
|
+
"description": "Raised when the condition Dataset has multiple Measures "
|
|
363
|
+
"instead of a single one.",
|
|
364
|
+
},
|
|
365
|
+
"1-1-9-5": {
|
|
366
|
+
"message": "At op {op}: The condition Dataset Measure must be a Boolean, found '{type}'.",
|
|
367
|
+
"description": "Occurs when the Measure in the condition Dataset is not Boolean.",
|
|
368
|
+
},
|
|
369
|
+
"1-1-9-6": {
|
|
370
|
+
"message": "At op {op}: Then-else Datasets have different number of Identifiers compared "
|
|
371
|
+
"with condition Dataset.",
|
|
372
|
+
"description": "Raised when the then-else Datasets do not match the Identifier "
|
|
373
|
+
"count of the condition Dataset.",
|
|
374
|
+
},
|
|
375
|
+
"1-1-9-9": {
|
|
376
|
+
"message": "At op {op}: {clause} component {clause_name} role must be {role_1}, "
|
|
377
|
+
"found {role_2}.",
|
|
378
|
+
"description": "Occurs when a component in a clause has an incorrect role type.",
|
|
379
|
+
},
|
|
380
|
+
"1-1-9-10": {
|
|
381
|
+
"message": "At op {op}: {clause} Dataset have different number of Identifiers compared "
|
|
382
|
+
"with condition Dataset.",
|
|
383
|
+
"description": "Raised when a Dataset in a clause has mismatched Identifier count.",
|
|
384
|
+
},
|
|
385
|
+
"1-1-9-11": {
|
|
386
|
+
"message": "At op {op}: Condition component {name} must be Boolean, found {type}.",
|
|
387
|
+
"description": "Occurs when a condition component is not Boolean.",
|
|
388
|
+
},
|
|
389
|
+
"1-1-9-12": {
|
|
390
|
+
"message": "At op {op}: then clause {then_symbol} and else clause {else_symbol}, "
|
|
391
|
+
"both must be Datasets or at least one of them a Scalar.",
|
|
392
|
+
"description": "Raised when then/else clauses do not meet required "
|
|
393
|
+
"type rules (Dataset/Scalar).",
|
|
394
|
+
},
|
|
395
|
+
"1-1-9-13": {
|
|
396
|
+
"message": "At op {op}: then {then} and else {else_clause} Datasets must contain "
|
|
397
|
+
"the same number of components.",
|
|
398
|
+
"description": "Occurs when then and else Datasets have differing numbers of components.",
|
|
399
|
+
},
|
|
400
|
+
"2-1-9-1": {
|
|
401
|
+
"message": "At op {op}: Condition operators must have the same operator type.",
|
|
402
|
+
"description": "Raised when condition operators differ in type, which is invalid.",
|
|
403
|
+
},
|
|
404
|
+
"2-1-9-2": {
|
|
405
|
+
"message": "At op {op}: Condition {name} it's not a boolean.",
|
|
406
|
+
"description": "Occurs when a condition variable is not Boolean.",
|
|
407
|
+
},
|
|
408
|
+
"2-1-9-3": {
|
|
409
|
+
"message": "At op {op}: All then and else operands must be Scalars.",
|
|
410
|
+
"description": "Raised when then/else operands are not all Scalars.",
|
|
411
|
+
},
|
|
412
|
+
"2-1-9-4": {
|
|
413
|
+
"message": "At op {op}: Condition {name} must be boolean type.",
|
|
414
|
+
"description": "Occurs when the condition variable is not of Boolean type.",
|
|
415
|
+
},
|
|
416
|
+
"2-1-9-5": {
|
|
417
|
+
"message": "At op {op}: Condition Dataset {name} Measure must be Boolean.",
|
|
418
|
+
"description": "Raised when the Measure in a condition Dataset is not Boolean.",
|
|
419
|
+
},
|
|
420
|
+
"2-1-9-6": {
|
|
421
|
+
"message": "At op {op}: At least a then or else operand must be Dataset.",
|
|
422
|
+
"description": "Occurs when neither then nor else operands are Datasets.",
|
|
423
|
+
},
|
|
424
|
+
"2-1-9-7": {
|
|
425
|
+
"message": "At op {op}: All Dataset operands must have the same components.",
|
|
426
|
+
"description": "Raised when Dataset operands have mismatched components.",
|
|
427
|
+
},
|
|
428
|
+
# Data Validation errors
|
|
429
|
+
"1-1-10-1": {
|
|
430
|
+
"message": "At op {op}: The {op_type} operand must have exactly one Measure "
|
|
431
|
+
"of type {me_type}",
|
|
432
|
+
"description": "Raised when an operand does not have exactly one Measure "
|
|
433
|
+
"of the required type.",
|
|
434
|
+
},
|
|
435
|
+
"1-1-10-2": {
|
|
436
|
+
"message": "At op {op}: Number of variable has to be equal between the call and signature.",
|
|
437
|
+
"description": "Occurs when the number of variables in the call does not match the "
|
|
438
|
+
"function signature.",
|
|
439
|
+
},
|
|
440
|
+
"1-1-10-3": {
|
|
441
|
+
"message": "At op {op}: Name in the call {found} has to be equal to variable rule "
|
|
442
|
+
"in signature {expected}.",
|
|
443
|
+
"description": "Raised when a variable name in the call differs "
|
|
444
|
+
"from the expected signature.",
|
|
445
|
+
},
|
|
446
|
+
"1-1-10-4": {
|
|
447
|
+
"message": "At op {op}: When a hierarchical ruleset is defined for value domain, "
|
|
448
|
+
"it is necessary to specify the component with the rule clause on call.",
|
|
449
|
+
"description": "Occurs when a hierarchical ruleset defined for value domain,"
|
|
450
|
+
"requires a component but it is missing in the call.",
|
|
451
|
+
},
|
|
452
|
+
"1-1-10-5": {
|
|
453
|
+
"message": "No rules to analyze on Hierarchy Roll-up as rules have no = operator.",
|
|
454
|
+
"description": "Raised when there are no applicable rules in a Hierarchy Roll-up "
|
|
455
|
+
"due to missing '=' operators.",
|
|
456
|
+
},
|
|
457
|
+
"1-1-10-6": {
|
|
458
|
+
"message": "At op {op}: Name in the call {found} has to be equal to variable condition "
|
|
459
|
+
"in signature {expected} .",
|
|
460
|
+
"description": "Occurs when a variable name in the call does not match the "
|
|
461
|
+
"expected condition in the signature.",
|
|
462
|
+
},
|
|
463
|
+
"1-1-10-7": {
|
|
464
|
+
"message": "Not found component {comp_name} on signature.",
|
|
465
|
+
"description": "Raised when a component referenced in the call is not found in the "
|
|
466
|
+
"signature.",
|
|
467
|
+
},
|
|
468
|
+
"1-1-10-8": {
|
|
469
|
+
"message": "At op {op}: Measures involved have to be numerical, other types found {found}.",
|
|
470
|
+
"description": "Occurs when operands involve non-numerical Measures "
|
|
471
|
+
"where numerical are required.",
|
|
472
|
+
},
|
|
473
|
+
"1-1-10-9": {
|
|
474
|
+
"message": "Invalid signature for the ruleset {ruleset}. On variables, condComp and "
|
|
475
|
+
"ruleComp must be the same",
|
|
476
|
+
"description": "Raised when condComp and ruleComp in a ruleset signature do not "
|
|
477
|
+
"match as required.",
|
|
478
|
+
},
|
|
479
|
+
# General Operators
|
|
480
|
+
"2-1-12-1": {
|
|
481
|
+
"message": "At op {op}: Create a null Measure without a Scalar type is not allowed. "
|
|
482
|
+
"Please use Cast operator.",
|
|
483
|
+
"description": "Raised when attempting to create a null Measure without specifying a "
|
|
484
|
+
"Scalar type; a Cast operator must be used.",
|
|
485
|
+
}, # RunTimeError.
|
|
486
|
+
# Join Operators
|
|
487
|
+
"1-1-13-1": {
|
|
488
|
+
"message": "At op {op}: Duplicated alias {duplicates}.",
|
|
489
|
+
"description": "Raised when an alias is used more than once in the same operation.",
|
|
490
|
+
},
|
|
491
|
+
"1-1-13-2": {
|
|
492
|
+
"message": "At op {op}: Missing mandatory aliasing.",
|
|
493
|
+
"description": "Occurs when a required alias for an operation is not provided.",
|
|
494
|
+
},
|
|
495
|
+
"1-1-13-3": {
|
|
496
|
+
"message": "At op {op}: Join conflict with duplicated names for "
|
|
497
|
+
"column {name} from original Datasets.",
|
|
498
|
+
"description": "Raised when a Join operation encounters column "
|
|
499
|
+
"name conflicts across input Datasets.",
|
|
500
|
+
},
|
|
501
|
+
"1-1-13-4": {
|
|
502
|
+
"message": "At op {op}: Using clause, using={using_names}, does not define all the "
|
|
503
|
+
"Identifiers, of non reference Dataset {dataset}.",
|
|
504
|
+
"description": "Occurs when a 'using' clause in a join does not cover all Identifiers of a "
|
|
505
|
+
"non-reference Dataset.",
|
|
506
|
+
},
|
|
507
|
+
"1-1-13-5": {
|
|
508
|
+
"message": "At op {op}: Invalid subcase B1, All the Datasets must share as "
|
|
509
|
+
"Identifiers the using ones.",
|
|
510
|
+
"description": "Raised when not all Datasets in subcase B1 share the declared 'using' "
|
|
511
|
+
"Identifiers.",
|
|
512
|
+
},
|
|
513
|
+
"1-1-13-6": {
|
|
514
|
+
"message": "At op {op}: Invalid subcase B2, All the declared using components "
|
|
515
|
+
"'{using_components}' must be present as components in the reference Dataset"
|
|
516
|
+
" '{reference}'.",
|
|
517
|
+
"description": "Occurs when components declared in 'using' are missing from the "
|
|
518
|
+
"reference Dataset in subcase B2.",
|
|
519
|
+
},
|
|
520
|
+
"1-1-13-7": {
|
|
521
|
+
"message": "At op {op}: Invalid subcase B2, All the non reference Datasets must "
|
|
522
|
+
"share as Identifiers the using ones.",
|
|
523
|
+
"description": "Raised when non-reference Datasets in subcase B2 do not share "
|
|
524
|
+
"the declared 'using' Identifiers.",
|
|
525
|
+
},
|
|
526
|
+
"1-1-13-8": {
|
|
527
|
+
"message": "At op {op}: No available using clause.",
|
|
528
|
+
"description": "Occurs when a join operation requires a 'using' clause but none "
|
|
529
|
+
"is provided.",
|
|
530
|
+
},
|
|
531
|
+
"1-1-13-9": {
|
|
532
|
+
"message": "Ambiguity for this variable {comp_name} inside a Join clause.",
|
|
533
|
+
"description": "Raised when a component name is ambiguous in a Join operation.",
|
|
534
|
+
},
|
|
535
|
+
"1-1-13-10": {
|
|
536
|
+
"message": "The join operator does not perform Scalar/component operations.",
|
|
537
|
+
"description": "Occurs when attempting Scalar or component operations directly with "
|
|
538
|
+
"a Join operator.",
|
|
539
|
+
},
|
|
540
|
+
"1-1-13-11": {
|
|
541
|
+
"message": "At op {op}: Invalid subcase A, {dataset_reference} should be a superset but "
|
|
542
|
+
"{component} not found.",
|
|
543
|
+
"description": "Raised when a subcase A join expects a superset but a required component "
|
|
544
|
+
"is missing.",
|
|
545
|
+
},
|
|
546
|
+
"1-1-13-12": {
|
|
547
|
+
"message": "At op {op}: Invalid subcase A. There are different Identifiers for the "
|
|
548
|
+
"provided Datasets",
|
|
549
|
+
"description": "Occurs when Datasets involved in subcase A have differing Identifiers.",
|
|
550
|
+
},
|
|
551
|
+
"1-1-13-13": {
|
|
552
|
+
"message": "At op {op}: Invalid subcase A. There are not same number of Identifiers "
|
|
553
|
+
"for the provided Datasets",
|
|
554
|
+
"description": "Raised when Datasets in subcase A do not have the same number of "
|
|
555
|
+
"Identifiers.",
|
|
556
|
+
},
|
|
557
|
+
"1-1-13-14": {
|
|
558
|
+
"message": "Cannot perform a join over a Dataset Without Identifiers: {name}.",
|
|
559
|
+
"description": "Occurs when attempting to join a Dataset that lacks Identifiers.",
|
|
560
|
+
},
|
|
561
|
+
"1-1-13-15": {
|
|
562
|
+
"message": "At op {op}: {comp_name} has to be a Measure for all the provided Datasets "
|
|
563
|
+
"inside the Join clause",
|
|
564
|
+
"description": "Raised when a component is not a Measure in all Datasets required "
|
|
565
|
+
"for the Join clause.",
|
|
566
|
+
},
|
|
567
|
+
"1-1-13-16": {
|
|
568
|
+
"message": "At op {op}: Invalid use, please review : {msg}.",
|
|
569
|
+
"description": "Occurs for general invalid use cases in join operations.",
|
|
570
|
+
},
|
|
571
|
+
"1-1-13-17": {
|
|
572
|
+
"message": "At op {op}: {comp_name} not present in the Dataset(result from join VDS) "
|
|
573
|
+
"at the time it is called",
|
|
574
|
+
"description": "Raised when a component is missing from the join result Dataset "
|
|
575
|
+
"when it is referenced.",
|
|
576
|
+
},
|
|
577
|
+
# Operators general errors
|
|
578
|
+
"1-1-14-1": {
|
|
579
|
+
"message": "At op {op}: Measure names don't match: {left} - {right}.",
|
|
580
|
+
"description": "Occurs when Measure names do not match across Datasets in an operation.",
|
|
581
|
+
},
|
|
582
|
+
"1-1-14-3": {
|
|
583
|
+
"message": "At op {op}: Invalid Scalar types for Identifiers at Dataset {dataset}. "
|
|
584
|
+
"One {type} Identifier expected, {count} found.",
|
|
585
|
+
"description": "Raised when the Dataset has an unexpected number or type of Identifiers.",
|
|
586
|
+
},
|
|
587
|
+
"1-1-14-5": {
|
|
588
|
+
"message": "At op {op}: {names} with type/s {types} is not compatible with {op}",
|
|
589
|
+
"description": "Occurs when the specified components/types are incompatible "
|
|
590
|
+
"with the operation.",
|
|
591
|
+
},
|
|
592
|
+
"1-1-14-6": {
|
|
593
|
+
"message": "At op {op}: {comp_name} with type {comp_type} and Scalar_set with "
|
|
594
|
+
"type {Scalar_type} is not compatible with {op}",
|
|
595
|
+
"description": "Raised when a component and a Scalar set have incompatible "
|
|
596
|
+
"types for an operation.",
|
|
597
|
+
},
|
|
598
|
+
"1-1-14-9": {
|
|
599
|
+
"message": "At op {op}: {names} with type/s {types} is not compatible with {op} on "
|
|
600
|
+
"Datasets {datasets}.",
|
|
601
|
+
"description": "Occurs when components/types across multiple Datasets are incompatible "
|
|
602
|
+
"with the operation.",
|
|
603
|
+
},
|
|
604
|
+
# Numeric Operators
|
|
605
|
+
"1-1-15-8": {
|
|
606
|
+
"message": "At op {op}: {op} operator cannot have a {comp_type} as parameter.",
|
|
607
|
+
"description": "Raised when an operator receives a component type that "
|
|
608
|
+
"is not allowed as a parameter.",
|
|
609
|
+
},
|
|
610
|
+
"2-1-15-1": {
|
|
611
|
+
"message": "At op {op}: Component {comp_name} from Dataset {dataset_name} "
|
|
612
|
+
"contains negative values.",
|
|
613
|
+
"description": "Runtime error raised when a Dataset component contains negative "
|
|
614
|
+
"values that are not allowed.",
|
|
615
|
+
}, # RunTimeError.
|
|
616
|
+
"2-1-15-2": {
|
|
617
|
+
"message": "At op {op}: Value {value} could not be negative.",
|
|
618
|
+
"description": "Runtime error when a value is negative but must be non-negative.",
|
|
619
|
+
}, # RunTimeError.
|
|
620
|
+
"2-1-15-3": {
|
|
621
|
+
"message": "At op {op}: Base value {value} could not be less or equal 0.",
|
|
622
|
+
"description": "Runtime error when a base value is less than or equal to zero, "
|
|
623
|
+
"which is not allowed.",
|
|
624
|
+
}, # RunTimeError.
|
|
625
|
+
"2-1-15-4": {
|
|
626
|
+
"message": "At op {op}: Invalid values in Component {name}.",
|
|
627
|
+
"description": "Runtime error when a component contains invalid values.",
|
|
628
|
+
}, # RunTimeError.
|
|
629
|
+
"2-1-15-5": {
|
|
630
|
+
"message": "At op {op}: Invalid values in {name_1} and {name_2}.",
|
|
631
|
+
"description": "Runtime error when two components contain invalid values.",
|
|
632
|
+
}, # RunTimeError.
|
|
633
|
+
"2-1-15-6": {
|
|
634
|
+
"message": "At op {op}: Scalar division by Zero.",
|
|
635
|
+
"description": "Runtime error when attempting to divide a Scalar by zero.",
|
|
636
|
+
}, # RunTimeError.
|
|
637
|
+
"2-1-15-7": {
|
|
638
|
+
"message": "At op {op}: {op} operator cannot be a Dataset.",
|
|
639
|
+
"description": "Runtime error when an operator is incorrectly applied to a Dataset "
|
|
640
|
+
"instead of allowed types.",
|
|
641
|
+
}, # RunTimeError.
|
|
642
|
+
# Set Operators
|
|
643
|
+
"1-1-17-1": {
|
|
644
|
+
"message": "At op {op}: Datasets {dataset_1} and {dataset_2} have different number "
|
|
645
|
+
"of components",
|
|
646
|
+
"description": "Raised when set operations are performed on Datasets with differing "
|
|
647
|
+
"numbers of components.",
|
|
648
|
+
},
|
|
649
|
+
# String Operators
|
|
650
|
+
"1-1-18-1": {
|
|
651
|
+
"message": "At op {op}: Invalid Dataset {name}. Dataset with one Measure expected.",
|
|
652
|
+
"description": "Raised when a string operation expects a Dataset with exactly one Measure.",
|
|
653
|
+
},
|
|
654
|
+
"1-1-18-2": {
|
|
655
|
+
"message": "At op {op}: Composition of Dataset and Component is not allowed.",
|
|
656
|
+
"description": "Occurs when attempting to combine a Dataset and a component in an "
|
|
657
|
+
"unsupported way.",
|
|
658
|
+
},
|
|
659
|
+
"1-1-18-3": {
|
|
660
|
+
"message": "At op {op}: Invalid parameter position: {pos}.",
|
|
661
|
+
"description": "Raised when a parameter is supplied at an invalid position.",
|
|
662
|
+
},
|
|
663
|
+
"1-1-18-4": {
|
|
664
|
+
"message": "At op {op}: {param_type} parameter should be {correct_type}.",
|
|
665
|
+
"description": "Occurs when a parameter type does not match the expected type.",
|
|
666
|
+
},
|
|
667
|
+
"1-1-18-6": {
|
|
668
|
+
"message": "At op {op}: Datasets have different Measures.",
|
|
669
|
+
"description": "Raised when Datasets involved in a string operation "
|
|
670
|
+
"do not have matching Measures.",
|
|
671
|
+
},
|
|
672
|
+
"1-1-18-7": {
|
|
673
|
+
"message": "At op {op}: Invalid number of parameters {number}, {expected} expected.",
|
|
674
|
+
"description": "Occurs when the number of parameters supplied is incorrect.",
|
|
675
|
+
},
|
|
676
|
+
"1-1-18-8": {
|
|
677
|
+
"message": "At op {op}: {msg} in regexp: {regexp}, in position {pos}.",
|
|
678
|
+
"description": "Raised when a string pattern or regex fails at a specific position.",
|
|
679
|
+
},
|
|
680
|
+
"1-1-18-10": {
|
|
681
|
+
"message": "At op {op}: Cannot have a Dataset as parameter",
|
|
682
|
+
"description": "Occurs when a Dataset is incorrectly used as a parameter in a "
|
|
683
|
+
"string operation.",
|
|
684
|
+
},
|
|
685
|
+
# Time operators
|
|
686
|
+
"1-1-19-1": {
|
|
687
|
+
"message": "At op {op}: {op} must have a {data_type} type on {comp}.",
|
|
688
|
+
"description": "Raised when a Time operator is applied to a component "
|
|
689
|
+
"with an incorrect data type.",
|
|
690
|
+
},
|
|
691
|
+
"1-1-19-2": {
|
|
692
|
+
"message": "At op {op}: Unknown Date type for {op}.",
|
|
693
|
+
"description": "Occurs when the Date type of a component is unknown or "
|
|
694
|
+
"unsupported for the operation.",
|
|
695
|
+
},
|
|
696
|
+
"1-1-19-3": {
|
|
697
|
+
"message": "At op {op}: Invalid {param} for {op}.",
|
|
698
|
+
"description": "Raised when a parameter value for a Time operator is invalid.",
|
|
699
|
+
},
|
|
700
|
+
"1-1-19-4": {
|
|
701
|
+
"message": "At op {op}: Invalid values {value_1} and {value_2}, periodIndTo parameter "
|
|
702
|
+
"must be a larger Duration value than periodIndFrom parameter.",
|
|
703
|
+
"description": "Occurs when periodIndTo is not greater than periodIndFrom "
|
|
704
|
+
"in a Time aggregation.",
|
|
705
|
+
},
|
|
706
|
+
"1-1-19-5": {
|
|
707
|
+
"message": "At op {op}: periodIndTo parameter must be a larger duration value than "
|
|
708
|
+
"the values to aggregate.",
|
|
709
|
+
"description": "Raised when the periodIndTo parameter is too short compared "
|
|
710
|
+
"with the values to aggregate.",
|
|
711
|
+
},
|
|
712
|
+
"1-1-19-6": {
|
|
713
|
+
"message": "At op {op}: Time type used in the component {comp} is not supported.",
|
|
714
|
+
"description": "Occurs when a component has a time type that is unsupported "
|
|
715
|
+
"for the operation.",
|
|
716
|
+
},
|
|
717
|
+
"1-1-19-7": {
|
|
718
|
+
"message": "At op {op}: can be applied only on Data Sets (of time series) and returns "
|
|
719
|
+
"a Data Set (of time series).",
|
|
720
|
+
"description": "Raised when a time operation is applied to an unsupported type; only "
|
|
721
|
+
"Time series Datasets are allowed.",
|
|
722
|
+
},
|
|
723
|
+
"1-1-19-8": {
|
|
724
|
+
"message": "At op {op}: {op} can only be applied to a {comp_type}",
|
|
725
|
+
"description": "Occurs when the time operator is applied to a component of the wrong type.",
|
|
726
|
+
},
|
|
727
|
+
"1-1-19-9": {
|
|
728
|
+
"message": "At op {op}: {op} can only be applied to a {comp_type} with a {param}",
|
|
729
|
+
"description": "Raised when a time operator requires a component with a specific "
|
|
730
|
+
"additional parameter type.",
|
|
731
|
+
},
|
|
732
|
+
"1-1-19-10": {
|
|
733
|
+
"message": "{op} can only be applied to operands with data type as Date or Time Period",
|
|
734
|
+
"description": "Occurs when operands of a time operator are not of type Date or "
|
|
735
|
+
"Time Period.",
|
|
736
|
+
},
|
|
737
|
+
"1-1-19-11": {
|
|
738
|
+
"message": "The Time aggregation operand has to be defined if not used inside an "
|
|
739
|
+
"aggregation.",
|
|
740
|
+
"description": "Raised when a Time aggregation operator is missing the operand "
|
|
741
|
+
"definition outside an aggregation context.",
|
|
742
|
+
},
|
|
743
|
+
# ---------Semantic Analyzer Common----
|
|
744
|
+
"1-2-1": {
|
|
745
|
+
"message": "Please don't use twice {alias} like var_to.",
|
|
746
|
+
"description": "Raised when the same alias is used more than once in a variable "
|
|
747
|
+
"assignment.",
|
|
748
|
+
},
|
|
749
|
+
"1-2-2": {
|
|
750
|
+
"message": "Overwriting a Dataset/variable is not allowed, trying it with {varId_value}.",
|
|
751
|
+
"description": "Occurs when an attempt is made to overwrite an existing "
|
|
752
|
+
"Dataset or variable.",
|
|
753
|
+
},
|
|
754
|
+
"1-2-3": {
|
|
755
|
+
"message": "{node_op} not found or not valid for {op_type}.",
|
|
756
|
+
"description": "Occurs when an operator node is not recognized or incompatible with the "
|
|
757
|
+
"operation type.",
|
|
758
|
+
},
|
|
759
|
+
"1-2-4": {
|
|
760
|
+
"message": "Defined Operator {node_value} not previously defined.",
|
|
761
|
+
"description": "Raised when a user-defined operator is used before being defined.",
|
|
762
|
+
},
|
|
763
|
+
"1-2-5": {
|
|
764
|
+
"message": "Operations without output assigned are not available.",
|
|
765
|
+
"description": "Occurs when attempting to execute operations that require an assigned "
|
|
766
|
+
"output but none is provided.",
|
|
767
|
+
},
|
|
768
|
+
"1-2-6": {
|
|
769
|
+
"message": "No {node_type} {node_value} found.",
|
|
770
|
+
"description": "Raised when a required node of a specific type is missing.",
|
|
771
|
+
},
|
|
772
|
+
"1-2-7": {
|
|
773
|
+
"message": "RuleComp of Hierarchical Ruleset can only be an Identifier, "
|
|
774
|
+
"{name} is a {role}.",
|
|
775
|
+
"description": "Occurs when a rule component in a hierarchical ruleset "
|
|
776
|
+
"is not an Identifier.",
|
|
777
|
+
},
|
|
778
|
+
"1-2-8": {
|
|
779
|
+
"message": "Missing value domain '{name}' definition, please provide an structure.",
|
|
780
|
+
"description": "Raised when a required value domain is missing its definition.",
|
|
781
|
+
},
|
|
782
|
+
"1-2-9": {
|
|
783
|
+
"message": "Value domain {name} not found.",
|
|
784
|
+
"description": "Raised when a specified value domain cannot be found.",
|
|
785
|
+
},
|
|
786
|
+
"1-2-10": {
|
|
787
|
+
"message": "Dataset without Identifiers are not allowed in {op} operator.",
|
|
788
|
+
"description": "Occurs when an operator is applied to a Dataset lacking Identifiers.",
|
|
789
|
+
},
|
|
790
|
+
"1-2-11": {
|
|
791
|
+
"message": "At op {op}: invalid number of parameters: received {received}, "
|
|
792
|
+
"expected at least: {expected}",
|
|
793
|
+
"description": "Raised when the number of parameters provided to an operation is "
|
|
794
|
+
"less than expected.",
|
|
795
|
+
},
|
|
796
|
+
"1-2-12": {
|
|
797
|
+
"message": "At op {op}: can not use user defined operator that returns a component outside "
|
|
798
|
+
"Clause operator or Rule",
|
|
799
|
+
"description": "Occurs when a user-defined operator returning a component is used outside "
|
|
800
|
+
"an allowed context.",
|
|
801
|
+
},
|
|
802
|
+
"1-2-13": {
|
|
803
|
+
"message": "Having clause is not permitted if group by clause is not present.",
|
|
804
|
+
"description": "Occurs when a HAVING clause is used without a corresponding "
|
|
805
|
+
"GROUP BY clause.",
|
|
806
|
+
},
|
|
807
|
+
"1-2-14": {
|
|
808
|
+
"message": "At op {op}: Cannot perform aggregation inside a Calc.",
|
|
809
|
+
"description": "Occurs when an aggregation operation is attempted inside a "
|
|
810
|
+
"Calc expression.",
|
|
811
|
+
},
|
|
812
|
+
# AST Helpers
|
|
813
|
+
"1-3-1-1": {
|
|
814
|
+
"message": "At op {op}: User defined {option} declared as {type_1}, found {type_2}.",
|
|
815
|
+
"description": "Occurs when a user-defined option has a type mismatch in its declaration.",
|
|
816
|
+
},
|
|
817
|
+
"1-3-1-2": {
|
|
818
|
+
"message": "Using variable {value}, not defined at {op} definition.",
|
|
819
|
+
"description": "Raised when a variable is used without being defined in "
|
|
820
|
+
"the operation's context.",
|
|
821
|
+
},
|
|
822
|
+
"1-3-1-3": {
|
|
823
|
+
"message": "At op {op}: using variable {value}, not defined as an argument.",
|
|
824
|
+
"description": "Occurs when a variable is referenced but not declared as an argument.",
|
|
825
|
+
},
|
|
826
|
+
"1-3-1-4": {
|
|
827
|
+
"message": "Found duplicates at arguments naming, please review {type} definition {op}.",
|
|
828
|
+
"description": "Raised when duplicate argument names are found in a definition.",
|
|
829
|
+
},
|
|
830
|
+
"1-3-1-5": {
|
|
831
|
+
"message": "Found duplicates at rule naming: {names}. "
|
|
832
|
+
"Please review {type} {ruleset_name} definition.",
|
|
833
|
+
"description": "Occurs when multiple rules share the same name in a ruleset.",
|
|
834
|
+
},
|
|
835
|
+
"1-3-1-6": {
|
|
836
|
+
"message": "At op {op}: Arguments incoherence, {defined} defined {passed} passed.",
|
|
837
|
+
"description": "Raised when the number of defined arguments and passed arguments "
|
|
838
|
+
"do not match.",
|
|
839
|
+
},
|
|
840
|
+
"1-3-1-7": {
|
|
841
|
+
"message": "All rules must be named or not named, but found mixed criteria at "
|
|
842
|
+
"{type} definition {name}.",
|
|
843
|
+
"description": "Occurs when some rules are named and others are not in the same ruleset.",
|
|
844
|
+
},
|
|
845
|
+
"1-3-1-8": {
|
|
846
|
+
"message": "All rules must have different code items in the left side of '=' in "
|
|
847
|
+
"hierarchy operator at hierachical ruleset definition {name}.",
|
|
848
|
+
"description": "Raised when duplicate left-hand side code items are found "
|
|
849
|
+
"in hierarchical ruleset definitions.",
|
|
850
|
+
},
|
|
851
|
+
"1-3-1-9": {
|
|
852
|
+
"message": "At op check_datapoint: {name} has an invalid datatype expected Dataset, "
|
|
853
|
+
"found Scalar.",
|
|
854
|
+
"description": "Occurs when a datapoint has an invalid datatype; a Dataset is expected "
|
|
855
|
+
"but a Scalar was found.",
|
|
856
|
+
},
|
|
857
|
+
# AST Creation
|
|
858
|
+
"1-3-2-0": {
|
|
859
|
+
"message": "Error creating DAG.",
|
|
860
|
+
"description": "Raised when the DAG (Directed Acyclic Graph) creation fails.",
|
|
861
|
+
},
|
|
862
|
+
"1-3-2-1": {
|
|
863
|
+
"message": "Eval could not be called without a {option} type definition.",
|
|
864
|
+
"description": "Occurs when an evaluation is attempted without a necessary "
|
|
865
|
+
"type definition.",
|
|
866
|
+
},
|
|
867
|
+
"1-3-2-2": {
|
|
868
|
+
"message": "At op {op}: User defined operator without returns is not implemented.",
|
|
869
|
+
"description": "Occurs when a user-defined operator lacks a return definition.",
|
|
870
|
+
},
|
|
871
|
+
"1-3-2-3": {
|
|
872
|
+
"message": "At op {op}: Vtl Script contains Cycles, no DAG established. "
|
|
873
|
+
"Nodes involved: {nodes}.",
|
|
874
|
+
"description": "Raised when cyclic dependencies are detected in a VTL script, "
|
|
875
|
+
"preventing DAG creation.",
|
|
876
|
+
},
|
|
877
|
+
# ---------- RunTimeErrors ----------
|
|
878
|
+
"2-1-19-1": {
|
|
879
|
+
"message": "At op {op}: Invalid values {value_1} and {value_2} for duration, periodIndTo "
|
|
880
|
+
"parameter must be a larger duration value than the values to aggregate.",
|
|
881
|
+
"description": "Raised when the periodIndTo parameter is smaller than "
|
|
882
|
+
"the values being aggregated.",
|
|
883
|
+
},
|
|
884
|
+
"2-1-19-2": {
|
|
885
|
+
"message": "Invalid period indicator {period}.",
|
|
886
|
+
"description": "Occurs when the specified period indicator is not recognized or valid.",
|
|
887
|
+
},
|
|
888
|
+
"2-1-19-3": {
|
|
889
|
+
"message": "Only same period indicator allowed for both parameters "
|
|
890
|
+
"({period1} != {period2}).",
|
|
891
|
+
"description": "Raised when two parameters have different period indicators where "
|
|
892
|
+
"the same indicator is required.",
|
|
893
|
+
},
|
|
894
|
+
"2-1-19-4": {
|
|
895
|
+
"message": "Date setter, ({value} > {date}). Cannot set date1 with a "
|
|
896
|
+
"value higher than date2.",
|
|
897
|
+
"description": "Occurs when date1 is set to a value greater than date2, which is invalid.",
|
|
898
|
+
},
|
|
899
|
+
"2-1-19-5": {
|
|
900
|
+
"message": "Date setter, ({value} < {date}). Cannot set date2 with a value lower "
|
|
901
|
+
"than date1.",
|
|
902
|
+
"description": "Occurs when date2 is set to a value less than date1, which is invalid.",
|
|
903
|
+
},
|
|
904
|
+
"2-1-19-6": {
|
|
905
|
+
"message": "Invalid period format, must be YYYY-(L)NNN: {period_format}",
|
|
906
|
+
"description": "Raised when a period string does not match the expected format.",
|
|
907
|
+
},
|
|
908
|
+
"2-1-19-7": {
|
|
909
|
+
"message": "Period Number must be between 1 and {periods} for "
|
|
910
|
+
"period indicator {period_indicator}.",
|
|
911
|
+
"description": "Occurs when the period number is outside the valid range "
|
|
912
|
+
"for the given period indicator.",
|
|
913
|
+
},
|
|
914
|
+
"2-1-19-8": {
|
|
915
|
+
"message": "Invalid date format, must be YYYY-MM-DD: {date}",
|
|
916
|
+
"description": "Raised when a date does not follow the required YYYY-MM-DD format.",
|
|
917
|
+
},
|
|
918
|
+
"2-1-19-9": {
|
|
919
|
+
"message": "Invalid day {day} for year {year}.",
|
|
920
|
+
"description": "Occurs when the day value is invalid for the given year.",
|
|
921
|
+
},
|
|
922
|
+
"2-1-19-10": {
|
|
923
|
+
"message": "Invalid year {year}, must be between 1900 and 9999.",
|
|
924
|
+
"description": "Raised when the year is outside the allowed range.",
|
|
925
|
+
},
|
|
926
|
+
"2-1-19-11": {
|
|
927
|
+
"message": "{op} operator is not compatible with time values",
|
|
928
|
+
"description": "Occurs when a time operator is applied to incompatible values.",
|
|
929
|
+
},
|
|
930
|
+
"2-1-19-12": {
|
|
931
|
+
"message": "At op {op}: Invalid param type {type} for param {name}, expected {expected}.",
|
|
932
|
+
"description": "Raised when a parameter has a type different from what is expected.",
|
|
933
|
+
},
|
|
934
|
+
"2-1-19-13": {
|
|
935
|
+
"message": "At op {op}: Invalid param data_type {type} for param {name}, "
|
|
936
|
+
"expected {expected}.",
|
|
937
|
+
"description": "Occurs when a parameter has an invalid data type for the operation.",
|
|
938
|
+
},
|
|
939
|
+
"2-1-19-14": {
|
|
940
|
+
"message": "At op {op}: Invalid Dataset {name}, requires at least one "
|
|
941
|
+
"Date/Time_Period Measure.",
|
|
942
|
+
"description": "Raised when a Dataset lacks required Date/Time_Period Measures.",
|
|
943
|
+
},
|
|
944
|
+
"2-1-19-15": {
|
|
945
|
+
"message": "{op} can only be applied according to the iso 8601 format mask",
|
|
946
|
+
"description": "Occurs when the operator is applied to values not conforming to "
|
|
947
|
+
"ISO 8601 format.",
|
|
948
|
+
},
|
|
949
|
+
"2-1-19-16": {
|
|
950
|
+
"message": "{op} can only be positive numbers",
|
|
951
|
+
"description": "Raised when the operator is applied to non-positive numbers.",
|
|
952
|
+
},
|
|
953
|
+
"2-1-19-17": {
|
|
954
|
+
"message": "At op {op}: Time operators comparison are only support = and <> comparison "
|
|
955
|
+
"operations",
|
|
956
|
+
"description": "Occurs when a time operator comparison uses unsupported operators "
|
|
957
|
+
"like < or >.",
|
|
958
|
+
},
|
|
959
|
+
"2-1-19-18": {
|
|
960
|
+
"message": "At op {op}: Time operators do not support < and > comparison operations, "
|
|
961
|
+
"so its not possible to use get the max or min between two time operators",
|
|
962
|
+
"description": "Raised when attempting to compute max or min using unsupported "
|
|
963
|
+
"Time operator comparisons.",
|
|
964
|
+
},
|
|
965
|
+
"2-1-19-19": {
|
|
966
|
+
"message": "Time Period comparison (>, <, >=, <=) with different period indicator "
|
|
967
|
+
"is not supported, found {value1} {op} {value2}",
|
|
968
|
+
"description": "Occurs when comparing two time periods with different indicators "
|
|
969
|
+
"using unsupported Comparison operators.",
|
|
970
|
+
},
|
|
971
|
+
"2-1-19-20": {
|
|
972
|
+
"message": "Time Period operands with different period indicators do not support < and > "
|
|
973
|
+
"Comparison operations, unable to get the {op}",
|
|
974
|
+
"description": "Raised when < or > comparisons are attempted between operands "
|
|
975
|
+
"with different period indicators.",
|
|
976
|
+
},
|
|
977
|
+
# ----------- Interpreter Common ------
|
|
978
|
+
"2-3-4": {
|
|
979
|
+
"message": "{op} operator must have a {comp}",
|
|
980
|
+
"description": "Occurs when a required component is missing for the operator.",
|
|
981
|
+
},
|
|
982
|
+
"2-3-5": {
|
|
983
|
+
"message": "Expected {param_type}, got {type_name} on UDO {op}, parameter {param_name}.",
|
|
984
|
+
"description": "Raised when a user-defined operator receives a parameter of "
|
|
985
|
+
"an unexpected type.",
|
|
986
|
+
},
|
|
987
|
+
"2-3-6": {
|
|
988
|
+
"message": "Dataset or Scalar {dataset_name} not found, please check input datastructures.",
|
|
989
|
+
"description": "Occurs when an input Dataset or Scalar is missing.",
|
|
990
|
+
},
|
|
991
|
+
"2-3-9": {
|
|
992
|
+
"message": "{comp_type} {comp_name} not found in {param}.",
|
|
993
|
+
"description": "Raised when a component is not found within a specified parameter.",
|
|
994
|
+
},
|
|
995
|
+
"2-3-10": {
|
|
996
|
+
"message": "No {comp_type} have been defined.",
|
|
997
|
+
"description": "Occurs when no components of the required type have been defined.",
|
|
998
|
+
},
|
|
999
|
+
"2-3-11": {
|
|
1000
|
+
"message": "{pos} operand must be a Dataset.",
|
|
1001
|
+
"description": "Raised when an operand expected to be a Dataset is not a Dataset.",
|
|
1002
|
+
},
|
|
1003
|
+
"1-4-2-8": "{rule_name} rule is not defined in the given ruleset.",
|
|
1004
|
+
}
|