great-expectations-cloud 20250811.1.dev0__py3-none-any.whl → 20250811.1.dev1__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.
- great_expectations_cloud/agent/actions/generate_data_quality_check_expectations_action.py +25 -1
- {great_expectations_cloud-20250811.1.dev0.dist-info → great_expectations_cloud-20250811.1.dev1.dist-info}/METADATA +1 -1
- {great_expectations_cloud-20250811.1.dev0.dist-info → great_expectations_cloud-20250811.1.dev1.dist-info}/RECORD +6 -6
- {great_expectations_cloud-20250811.1.dev0.dist-info → great_expectations_cloud-20250811.1.dev1.dist-info}/LICENSE +0 -0
- {great_expectations_cloud-20250811.1.dev0.dist-info → great_expectations_cloud-20250811.1.dev1.dist-info}/WHEEL +0 -0
- {great_expectations_cloud-20250811.1.dev0.dist-info → great_expectations_cloud-20250811.1.dev1.dist-info}/entry_points.txt +0 -0
@@ -155,6 +155,7 @@ class GenerateDataQualityCheckExpectationsAction(
|
|
155
155
|
asset_id=data_asset.id,
|
156
156
|
pre_existing_completeness_change_expectations=pre_existing_completeness_change_expectations,
|
157
157
|
created_via=created_via,
|
158
|
+
use_forecast=event.use_forecast,
|
158
159
|
)
|
159
160
|
for exp_id in completeness_change_expectation_ids:
|
160
161
|
created_resources.append(
|
@@ -353,6 +354,7 @@ class GenerateDataQualityCheckExpectationsAction(
|
|
353
354
|
dict[Any, Any]
|
354
355
|
], # list of ExpectationConfiguration dicts
|
355
356
|
created_via: str | None,
|
357
|
+
use_forecast: bool = False,
|
356
358
|
) -> list[UUID]:
|
357
359
|
table_row_count = next(
|
358
360
|
metric
|
@@ -395,7 +397,29 @@ class GenerateDataQualityCheckExpectationsAction(
|
|
395
397
|
non_null_count = row_count - null_count if row_count > 0 else 0
|
396
398
|
non_null_proportion = non_null_count / row_count if row_count > 0 else 0
|
397
399
|
|
398
|
-
if
|
400
|
+
if use_forecast:
|
401
|
+
expectation = gx_expectations.ExpectColumnProportionOfNonNullValuesToBeBetween(
|
402
|
+
windows=[
|
403
|
+
Window(
|
404
|
+
constraint_fn=ExpectationConstraintFunction.FORECAST,
|
405
|
+
parameter_name=min_param_name,
|
406
|
+
range=1,
|
407
|
+
offset=Offset(positive=0.0, negative=0.0),
|
408
|
+
strict=True,
|
409
|
+
),
|
410
|
+
Window(
|
411
|
+
constraint_fn=ExpectationConstraintFunction.FORECAST,
|
412
|
+
parameter_name=max_param_name,
|
413
|
+
range=1,
|
414
|
+
offset=Offset(positive=0.0, negative=0.0),
|
415
|
+
strict=True,
|
416
|
+
),
|
417
|
+
],
|
418
|
+
column=column_name,
|
419
|
+
min_value={"$PARAMETER": min_param_name},
|
420
|
+
max_value={"$PARAMETER": max_param_name},
|
421
|
+
)
|
422
|
+
elif non_null_proportion == 0:
|
399
423
|
expectation = gx_expectations.ExpectColumnProportionOfNonNullValuesToBeBetween(
|
400
424
|
column=column_name,
|
401
425
|
max_value=0,
|
@@ -3,7 +3,7 @@ great_expectations_cloud/agent/__init__.py,sha256=FqDFYbGefmNhwlvJwJbNovkwzny6mw
|
|
3
3
|
great_expectations_cloud/agent/actions/__init__.py,sha256=TYPe2j8EgaziXXgSLEdgjnbHKL56O6cQL1kjPnGbRFI,949
|
4
4
|
great_expectations_cloud/agent/actions/agent_action.py,sha256=mGAovvT4CDaQlZaeNcz5tqfMIt6cul2anzxPwFrSxeA,1186
|
5
5
|
great_expectations_cloud/agent/actions/draft_datasource_config_action.py,sha256=_v_yEPXZ3k8-lvdMCEPtrf6kegVYxnBo9UC0WoLaLwM,5117
|
6
|
-
great_expectations_cloud/agent/actions/generate_data_quality_check_expectations_action.py,sha256=
|
6
|
+
great_expectations_cloud/agent/actions/generate_data_quality_check_expectations_action.py,sha256=t6m_INTXbJe9i4O_j0XNQfs_J7Bc5etGTLy9uCMws38,23628
|
7
7
|
great_expectations_cloud/agent/actions/list_asset_names.py,sha256=bDAYQtDbgDAOg8iu7HyGSTmBduhup7lLN0vGxoJZqN4,2510
|
8
8
|
great_expectations_cloud/agent/actions/run_checkpoint.py,sha256=N2d07JDCG06kMve7yjPZQFlaGKoJw5dCbpKuBWw6Ssg,3751
|
9
9
|
great_expectations_cloud/agent/actions/run_metric_list_action.py,sha256=tW64pNYJElkUmcd9baKllTSyR-NYyU-40QvMwSwwLqQ,3234
|
@@ -27,8 +27,8 @@ great_expectations_cloud/agent/utils.py,sha256=3OvdcXeK1gk2oJgqG4jPvBRwlMCn8LioU
|
|
27
27
|
great_expectations_cloud/logging/README.md,sha256=vbwU689x8SkGjzoBYQzZOzAvh28fR0RCa1XY5WD-Dgs,1762
|
28
28
|
great_expectations_cloud/logging/logging_cfg.py,sha256=W6mlm4_Z2bjzM5TuKmFg_WZor2XoJm4DAoLGaf2O__I,6579
|
29
29
|
great_expectations_cloud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
-
great_expectations_cloud-20250811.1.
|
31
|
-
great_expectations_cloud-20250811.1.
|
32
|
-
great_expectations_cloud-20250811.1.
|
33
|
-
great_expectations_cloud-20250811.1.
|
34
|
-
great_expectations_cloud-20250811.1.
|
30
|
+
great_expectations_cloud-20250811.1.dev1.dist-info/LICENSE,sha256=_JJnoX6N_OkrAwlCRizCwil0tIjDAy2TG3GiJ50sM6k,2084
|
31
|
+
great_expectations_cloud-20250811.1.dev1.dist-info/METADATA,sha256=uh-m5q-h5TmCEOxRggg7RxE6fAERDerdS0XFJXclWZc,12150
|
32
|
+
great_expectations_cloud-20250811.1.dev1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
33
|
+
great_expectations_cloud-20250811.1.dev1.dist-info/entry_points.txt,sha256=ofJgdeS2gSzxXLyCAjfNhIaN1wmSyR7EAMs5qhVaXE4,68
|
34
|
+
great_expectations_cloud-20250811.1.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|