From cc09e888464a34e06988ed527b68dfe70ff52490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20R=C3=B8nning?= Date: Wed, 6 Nov 2024 15:42:26 +0100 Subject: [PATCH] version housekeeping --- CHANGELOG.md | 6 ++++++ cognite/client/_version.py | 2 +- cognite/client/data_classes/hosted_extractors/jobs.py | 6 +++--- pyproject.toml | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba4452f23..ff0de5c13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,12 @@ Changes are grouped as follows - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. + +## [7.64.8] - 2024-11-06 +### Fixed +- Made `compression` and `encoding` of hosted extractor job formats optional to conform with the API. + + ## [7.64.7] - 2024-11-04 ### Fixed - Set batch size to 10 for `create` and `update` of hosted extractor jobs, destinations, sources and mappings to avoid hitting the API limits. diff --git a/cognite/client/_version.py b/cognite/client/_version.py index e8ceee90f..bc336455c 100644 --- a/cognite/client/_version.py +++ b/cognite/client/_version.py @@ -1,4 +1,4 @@ from __future__ import annotations -__version__ = "7.64.7" +__version__ = "7.64.8" __api_subversion__ = "20230101" diff --git a/cognite/client/data_classes/hosted_extractors/jobs.py b/cognite/client/data_classes/hosted_extractors/jobs.py index 36d189f38..cd0b3b7da 100644 --- a/cognite/client/data_classes/hosted_extractors/jobs.py +++ b/cognite/client/data_classes/hosted_extractors/jobs.py @@ -79,8 +79,8 @@ class ValueFormat(JobFormat): @classmethod def _load_job(cls, resource: dict[str, Any]) -> ValueFormat: return cls( - encoding=resource.get("encoding", None), - compression=resource.get("compression", None), + encoding=resource.get("encoding"), + compression=resource.get("compression", "gzip"), prefix=Prefix._load(resource["prefix"]) if "prefix" in resource else None, ) @@ -101,7 +101,7 @@ class RockwellFormat(JobFormat): @classmethod def _load_job(cls, resource: dict[str, Any]) -> RockwellFormat: return cls( - encoding=resource.get("encoding", None), + encoding=resource.get("encoding"), compression=resource.get("compression", "gzip"), prefix=Prefix._load(resource["prefix"]) if "prefix" in resource else None, ) diff --git a/pyproject.toml b/pyproject.toml index 099770844..5bcedd153 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "cognite-sdk" -version = "7.64.7" +version = "7.64.8" description = "Cognite Python SDK" readme = "README.md" documentation = "https://cognite-sdk-python.readthedocs-hosted.com"