acdc_aws_etl_pipeline 0.7.3__py3-none-any.whl → 0.7.5__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.
- acdc_aws_etl_pipeline/validate/validate.py +21 -0
- {acdc_aws_etl_pipeline-0.7.3.dist-info → acdc_aws_etl_pipeline-0.7.5.dist-info}/METADATA +1 -1
- {acdc_aws_etl_pipeline-0.7.3.dist-info → acdc_aws_etl_pipeline-0.7.5.dist-info}/RECORD +4 -4
- {acdc_aws_etl_pipeline-0.7.3.dist-info → acdc_aws_etl_pipeline-0.7.5.dist-info}/WHEEL +0 -0
|
@@ -615,9 +615,30 @@ def validate_pipeline(
|
|
|
615
615
|
logger.info("Validating %s", filename)
|
|
616
616
|
results.extend(gen3_validator.validate.validate_list_dict(obj, resolver.schema_resolved))
|
|
617
617
|
|
|
618
|
+
logger.info("Getting Schema Version")
|
|
619
|
+
schema_resolved = resolver.schema_resolved
|
|
620
|
+
schema_version = resolver.get_schema_version(schema = schema_resolved)
|
|
621
|
+
|
|
618
622
|
full_validation_results_df = pd.DataFrame(results)
|
|
619
623
|
full_validation_results_df["validation_id"] = latest_validation_id
|
|
620
624
|
full_validation_results_df["study_id"] = study_id
|
|
625
|
+
full_validation_results_df["schema_version"] = schema_version
|
|
626
|
+
|
|
627
|
+
full_validation_results_df = full_validation_results_df[[
|
|
628
|
+
"validation_id",
|
|
629
|
+
"index",
|
|
630
|
+
"node",
|
|
631
|
+
"study_id",
|
|
632
|
+
"validation_result",
|
|
633
|
+
"invalid_key",
|
|
634
|
+
"schema_path",
|
|
635
|
+
"validator",
|
|
636
|
+
"validator_value",
|
|
637
|
+
"validation_error",
|
|
638
|
+
"schema_version"
|
|
639
|
+
]]
|
|
640
|
+
|
|
641
|
+
|
|
621
642
|
logger.info("Validation completed (%s rows).", len(full_validation_results_df))
|
|
622
643
|
except Exception as e:
|
|
623
644
|
logger.exception("Validation failed.")
|
|
@@ -8,7 +8,7 @@ acdc_aws_etl_pipeline/upload/upload_synthdata_s3.py,sha256=Ge5TQzZkWnJNp-q0Ak-Yh
|
|
|
8
8
|
acdc_aws_etl_pipeline/utils/athena_utils.py,sha256=QJlBe-07Hkq-BqmcxBu6ZtAmVfZSHuSY4dijcysgPH8,29560
|
|
9
9
|
acdc_aws_etl_pipeline/utils/dbt_utils.py,sha256=5XRFOwNNIeuW2sQuor3h_OZTuXGg6xv2AUYwj9bMAAM,2054
|
|
10
10
|
acdc_aws_etl_pipeline/utils/release_writer.py,sha256=vsxHJ6l-UWPpzeyEPHurX5iFgeCEQ-9FbySAbPNfTTM,7555
|
|
11
|
-
acdc_aws_etl_pipeline/validate/validate.py,sha256=
|
|
12
|
-
acdc_aws_etl_pipeline-0.7.
|
|
13
|
-
acdc_aws_etl_pipeline-0.7.
|
|
14
|
-
acdc_aws_etl_pipeline-0.7.
|
|
11
|
+
acdc_aws_etl_pipeline/validate/validate.py,sha256=Icg-4C2ElKlINUTvW0QDQ0d1fv1zJa_YlIDOOygxC3s,25552
|
|
12
|
+
acdc_aws_etl_pipeline-0.7.5.dist-info/METADATA,sha256=MXkzzzhlclui5qYchLMXPztxl7yqkNzfcg53xBNuk70,3096
|
|
13
|
+
acdc_aws_etl_pipeline-0.7.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
14
|
+
acdc_aws_etl_pipeline-0.7.5.dist-info/RECORD,,
|
|
File without changes
|