icsDataValidation 1.0.363__py3-none-any.whl → 1.0.365__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.
- icsDataValidation/services/comparison_service.py +13 -5
- {icsDataValidation-1.0.363.dist-info → icsDataValidation-1.0.365.dist-info}/METADATA +1 -1
- {icsDataValidation-1.0.363.dist-info → icsDataValidation-1.0.365.dist-info}/RECORD +5 -5
- {icsDataValidation-1.0.363.dist-info → icsDataValidation-1.0.365.dist-info}/WHEEL +0 -0
- {icsDataValidation-1.0.363.dist-info → icsDataValidation-1.0.365.dist-info}/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ import datetime
|
|
|
4
4
|
import numpy as np
|
|
5
5
|
|
|
6
6
|
from pandas._testing import assert_frame_equal
|
|
7
|
-
from decimal import Decimal, InvalidOperation
|
|
7
|
+
from decimal import Decimal, InvalidOperation, getcontext
|
|
8
8
|
|
|
9
9
|
from icsDataValidation.utils.logger_util import configure_dev_ops_logger
|
|
10
10
|
from icsDataValidation.utils.pandas_util import get_diff_dataframes, get_diff_dict_from_diff_dataframes
|
|
@@ -178,10 +178,18 @@ class ComparisonService(TestingToolParams):
|
|
|
178
178
|
and trgt_columns_aggregate[k][0].upper() != 'AGGREGATEBOOLEAN'
|
|
179
179
|
}
|
|
180
180
|
except InvalidOperation as e:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
getcontext().prec = 100 # sets the precision of Decimal to a higher value - due to the limitations of the decimal module when handling such large numbers with high precision
|
|
182
|
+
aggregation_differences_trgt_minus_src_not_boolean = {
|
|
183
|
+
k: round(Decimal(trgt_columns_aggregate[k][1])
|
|
184
|
+
- Decimal(src_columns_aggregate[k][1]), self.numeric_scale)
|
|
185
|
+
for k in src_columns_aggregate.keys()
|
|
186
|
+
if k in trgt_columns_aggregate
|
|
187
|
+
and str(src_columns_aggregate[k][1]) != str(trgt_columns_aggregate[k][1])
|
|
188
|
+
and src_columns_aggregate[k][1] != trgt_columns_aggregate[k][1]
|
|
189
|
+
and src_columns_aggregate[k][0].upper() != 'AGGREGATEBOOLEAN'
|
|
190
|
+
and trgt_columns_aggregate[k][0].upper() != 'AGGREGATEBOOLEAN'
|
|
191
|
+
}
|
|
192
|
+
|
|
185
193
|
|
|
186
194
|
aggregation_differences_trgt_minus_src_boolean = {
|
|
187
195
|
k: str(
|
|
@@ -17,7 +17,7 @@ icsDataValidation/input_parameters/testing_tool_params.py,sha256=6LkqEaH3vaeCn6d
|
|
|
17
17
|
icsDataValidation/output_parameters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
icsDataValidation/output_parameters/result_params.py,sha256=5Mk9L9zWaxUqcKwLZQ539lVUp0b0s-YUmSA3PBgbqfs,2833
|
|
19
19
|
icsDataValidation/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
-
icsDataValidation/services/comparison_service.py,sha256=
|
|
20
|
+
icsDataValidation/services/comparison_service.py,sha256=WhlkVY9I28jBsksFF-cF-OwNIIwigyuuiLJTTAF8HvY,44244
|
|
21
21
|
icsDataValidation/services/initialization_service.py,sha256=AHbJrq_LjMPFoeOJC2pi2ZZ1xkL8njSZn38psc3do60,6687
|
|
22
22
|
icsDataValidation/services/result_service.py,sha256=edD6aejIi5P7qDNHKnN46KrN5tfzwqnw5TB35SvFAWU,28396
|
|
23
23
|
icsDataValidation/services/system_service.py,sha256=GSkSPNG5PlLWchwlYM5H-1FMtuCNwpXcyZZOUB_0stU,3228
|
|
@@ -36,7 +36,7 @@ icsDataValidation/utils/logger_util.py,sha256=xS48_FFMot_hyQgJY8DUeRTn5jpdvRt5QI
|
|
|
36
36
|
icsDataValidation/utils/pandas_util.py,sha256=D_g7Xw7BIS2E-1ZhJIvp62K5xuKjIkj-7TxH4HN_8SI,6505
|
|
37
37
|
icsDataValidation/utils/parallelization_util.py,sha256=6P0YcQLmunW_fHR4f5-kdncZbOlxxqKyk6ZAFQQEd2k,2088
|
|
38
38
|
icsDataValidation/utils/sql_util.py,sha256=0c-BInElSsRmXUedfLP_h9Wsiscv9aic7IIc5f15Uzo,396
|
|
39
|
-
icsDataValidation-1.0.
|
|
40
|
-
icsDataValidation-1.0.
|
|
41
|
-
icsDataValidation-1.0.
|
|
42
|
-
icsDataValidation-1.0.
|
|
39
|
+
icsDataValidation-1.0.365.dist-info/METADATA,sha256=R_1JkIr8O6xWtIIh1E6u2aOypk7Qyti22Pl5ls2BdYw,720
|
|
40
|
+
icsDataValidation-1.0.365.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
41
|
+
icsDataValidation-1.0.365.dist-info/top_level.txt,sha256=YL9V1qreCXZeUCy-tzA4Vxv5-6mvXy5lsfAT0nQapfg,53
|
|
42
|
+
icsDataValidation-1.0.365.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|