diff --git a/cognite/client/data_classes/datapoints.py b/cognite/client/data_classes/datapoints.py index 8bf1998a9f..48bd9b4d14 100644 --- a/cognite/client/data_classes/datapoints.py +++ b/cognite/client/data_classes/datapoints.py @@ -79,7 +79,9 @@ "duration_uncertain", "interpolation", "max", + "maxDataPoint", "min", + "minDataPoint", "step_interpolation", "sum", "total_variation", @@ -95,6 +97,12 @@ "durationUncertain", } ) +_OBJECT_AGGREGATES = frozenset( + { + "maxDataPoint", + "minDataPoint", + } +) ALL_SORTED_DP_AGGS = sorted(typing.get_args(Aggregate)) diff --git a/tests/tests_integration/conftest.py b/tests/tests_integration/conftest.py index 81165363b6..f1fc73bf22 100644 --- a/tests/tests_integration/conftest.py +++ b/tests/tests_integration/conftest.py @@ -88,6 +88,7 @@ def make_cognite_client(beta: bool = False) -> CogniteClient: project=os.environ["COGNITE_PROJECT"], base_url=os.environ["COGNITE_BASE_URL"], credentials=credentials, + headers={"cdf-version": "alpha"}, **beta_configuration, ) )