adapta 5.3.0__tar.gz → 5.3.2__tar.gz
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.
- {adapta-5.3.0 → adapta-5.3.2}/PKG-INFO +1 -1
- {adapta-5.3.0 → adapta-5.3.2}/pyproject.toml +1 -1
- {adapta-5.3.0 → adapta-5.3.2}/pyproject.toml.orig +1 -1
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client.py +6 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client_configuration.py +3 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/iceberg/v1/_functions.py +19 -13
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/sync/iceberg_to_cass.py +17 -6
- {adapta-5.3.0 → adapta-5.3.2}/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/_version.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/connectors/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/connectors/service_bus/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/connectors/service_bus/_connector.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/dataclass/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/dataclass/dataclass_core.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/validation.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/validation_abstract.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/validation_polars.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/validation_utils.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/_async_logger.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/_base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/_internal.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/_internal_logger.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/_logger_interface.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/handlers/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/handlers/datadog_api_handler.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/handlers/safe_stream_handler.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/models/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/models/_log_level.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/models/_logs_metadata.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/providers/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/logs/providers/void_logger.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/metrics/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/metrics/_base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/metrics/providers/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/metrics/providers/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/metrics/providers/datadog_provider.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/metrics/providers/void_provider.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/ml/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/ml/_model.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/ml/mlflow/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/ml/mlflow/_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/ml/mlflow/_functions.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/process_communication/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/process_communication/_models.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/schema_management/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/schema_management/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/schema_management/schema_entity.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/_azure_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/_base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/_local_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/aws/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/aws/_aws_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/aws/_aws_credentials.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/hashicorp_vault/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/hashicorp_vault/kubernetes_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/hashicorp_vault/oidc_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/hashicorp_vault/token_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/blob/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/blob/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/blob/azure_storage_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/blob/base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/blob/local_storage_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/blob/s3_storage_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/cache/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/cache/_base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/cache/redis_cache.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/azure_sql.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/models/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/models/_models.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/odbc.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/snowflake_sql.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/database/v3/trino_sql.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/delta_lake/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/delta_lake/v3/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/delta_lake/v3/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/delta_lake/v3/_functions.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/delta_lake/v3/_models.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspace_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspaces-certificate.pem +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_model_mappers.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/_models.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/astra_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/vanilla_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/exceptions.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/iceberg/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/iceberg/v1/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/iceberg/v1/_models.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/_functions.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/astra.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/aws.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/azure.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/cassandra.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/enum.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/cassandra_filter_expression.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/filter_expression.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/trino_filter_expression.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/format.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/dict.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/exceptions.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/metaframe.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/pandas.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/pickle.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/polars.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/formatters/unit.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/hive.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/iceberg.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/local.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/trino.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_functions.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_models.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_qes_astra.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_qes_cassandra.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_qes_delta.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_qes_iceberg.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_qes_local.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/_qes_trino.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/parameters/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/parameters/_base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/parameters/_write_parameters.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/secrets/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/secrets/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/secrets/_base.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/secrets/azure_secret_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/secrets/hashicorp_vault_secret_storage_client.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/sync/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/README.md +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/_common.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/_requests.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/concurrent_task_runner.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/data_structures/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/data_structures/_functions.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/decorators/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/decorators/_logging.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/decorators/_rate_limit.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/metaframe.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/polars.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/python_typing/__init__.py +0 -0
- {adapta-5.3.0 → adapta-5.3.2}/src/adapta/utils/python_typing/_functions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adapta
|
|
3
|
-
Version: 5.3.
|
|
3
|
+
Version: 5.3.2
|
|
4
4
|
Summary: Logging, data connectors, monitoring, secret handling and general lifehacks to make data people lives easier.
|
|
5
5
|
Author: ECCO Data & AI
|
|
6
6
|
Author-email: ECCO Data & AI <esdsupport@ecco.com>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "adapta"
|
|
3
|
-
version = "5.3.
|
|
3
|
+
version = "5.3.2"
|
|
4
4
|
description = "Logging, data connectors, monitoring, secret handling and general lifehacks to make data people lives easier."
|
|
5
5
|
authors = [{ name = "ECCO Data & AI", email = "esdsupport@ecco.com" }]
|
|
6
6
|
requires-python = ">=3.11, <3.16"
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import math
|
|
2
3
|
import os
|
|
3
4
|
import platform
|
|
4
5
|
import re
|
|
5
6
|
import ssl
|
|
7
|
+
import sys
|
|
6
8
|
import uuid
|
|
7
9
|
|
|
8
10
|
from cassandra.cqlengine.connection import set_session
|
|
9
11
|
from cassandra.cqlengine.management import sync_table
|
|
10
12
|
from cassandra.query import PreparedStatement
|
|
11
13
|
|
|
14
|
+
from adapta.logs.handlers.safe_stream_handler import SafeStreamHandler
|
|
12
15
|
from adapta.storage.distributed_object_store.v3.cassandra_client._model_mappers import (
|
|
13
16
|
CassandraModelMapper,
|
|
14
17
|
get_mapper,
|
|
@@ -115,6 +118,8 @@ class CassandraClient(ABC):
|
|
|
115
118
|
self._snake_pattern = re.compile(r"(?<!^)(?=[A-Z])")
|
|
116
119
|
self._filter_pattern = re.compile(r"(__\w+)")
|
|
117
120
|
self._client_config = client_config or CassandraClientConfiguration.default()
|
|
121
|
+
if self._client_config.log_transient_errors:
|
|
122
|
+
logging.getLogger("backoff").addHandler(SafeStreamHandler(sys.stdout))
|
|
118
123
|
|
|
119
124
|
def connect(self) -> None:
|
|
120
125
|
"""Sync connect to this Cassandra cluster"""
|
|
@@ -707,6 +712,7 @@ class CassandraClient(ABC):
|
|
|
707
712
|
exception=(OverloadedErrorMessage, IsBootstrappingErrorMessage, WriteTimeout, WriteFailure),
|
|
708
713
|
max_tries=self._client_config.transient_error_max_retries,
|
|
709
714
|
max_time=self._client_config.transient_error_max_wait_s,
|
|
715
|
+
max_value=self._client_config.transient_error_max_wait_s_per_retry,
|
|
710
716
|
raise_on_giveup=True,
|
|
711
717
|
)
|
|
712
718
|
def _execute_concurrent():
|
|
@@ -29,6 +29,7 @@ class CassandraClientConfiguration:
|
|
|
29
29
|
socket_read_timeout_ms: int
|
|
30
30
|
transient_error_max_retries: int
|
|
31
31
|
transient_error_max_wait_s: int
|
|
32
|
+
transient_error_max_wait_s_per_retry: int
|
|
32
33
|
log_transient_errors: bool
|
|
33
34
|
metadata_fetch_timeout_s: int
|
|
34
35
|
protocol_version: Any
|
|
@@ -43,6 +44,7 @@ class CassandraClientConfiguration:
|
|
|
43
44
|
socket_read_timeout_ms=180000,
|
|
44
45
|
transient_error_max_retries=10,
|
|
45
46
|
transient_error_max_wait_s=300,
|
|
47
|
+
transient_error_max_wait_s_per_retry=30,
|
|
46
48
|
log_transient_errors=True,
|
|
47
49
|
metadata_fetch_timeout_s=30,
|
|
48
50
|
protocol_version=_NOT_SET,
|
|
@@ -58,6 +60,7 @@ class CassandraClientConfiguration:
|
|
|
58
60
|
socket_read_timeout_ms=180000,
|
|
59
61
|
transient_error_max_retries=10,
|
|
60
62
|
transient_error_max_wait_s=300,
|
|
63
|
+
transient_error_max_wait_s_per_retry=30,
|
|
61
64
|
log_transient_errors=True,
|
|
62
65
|
metadata_fetch_timeout_s=30,
|
|
63
66
|
protocol_version=ProtocolVersion.V4,
|
|
@@ -273,13 +273,15 @@ def get_changes(
|
|
|
273
273
|
version_id=from_snapshot_id,
|
|
274
274
|
lazy_read=True,
|
|
275
275
|
).to_polars()
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
276
|
+
|
|
277
|
+
def _current_version_full() -> LazyFrame:
|
|
278
|
+
return load_using_catalog(
|
|
279
|
+
schema_name,
|
|
280
|
+
table_name,
|
|
281
|
+
catalog,
|
|
282
|
+
version_id=to_snapshot_id,
|
|
283
|
+
lazy_read=True,
|
|
284
|
+
).to_polars()
|
|
283
285
|
|
|
284
286
|
diff_table = (
|
|
285
287
|
current_version.join(
|
|
@@ -292,16 +294,20 @@ def get_changes(
|
|
|
292
294
|
)
|
|
293
295
|
|
|
294
296
|
# Inserts: pk exists now, but didn't exist previously
|
|
295
|
-
inserts =
|
|
297
|
+
inserts = _current_version_full().join(
|
|
296
298
|
diff_table.filter(_null_expr("right", primary_key_columns)), on=primary_key_columns, how="semi"
|
|
297
299
|
)
|
|
298
300
|
|
|
299
301
|
# Updates: pk exists in both, pick latest
|
|
300
|
-
updates =
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
updates = _current_version_full().join(
|
|
303
|
+
diff_table.filter(
|
|
304
|
+
_not_null_expr("", primary_key_columns)
|
|
305
|
+
& _not_null_expr("right", primary_key_columns)
|
|
306
|
+
& (polars.col(tracking_column) != polars.col(f"{tracking_column}_right"))
|
|
307
|
+
).drop(polars.selectors.contains("_right")),
|
|
308
|
+
on=primary_key_columns,
|
|
309
|
+
how="semi",
|
|
310
|
+
)
|
|
305
311
|
|
|
306
312
|
# Deletes: pk existed previously, but doesn't exist now
|
|
307
313
|
deletes = (
|
|
@@ -144,6 +144,7 @@ def _sync_custom_index(
|
|
|
144
144
|
read_chunk_size: int,
|
|
145
145
|
threads: int,
|
|
146
146
|
logger: LoggerInterface,
|
|
147
|
+
full_sync: bool = False,
|
|
147
148
|
) -> None:
|
|
148
149
|
def _read_index_data() -> LazyFrame:
|
|
149
150
|
logger.info("Reading source table {source_table} for custom index", source_table=source_table)
|
|
@@ -178,11 +179,19 @@ def _sync_custom_index(
|
|
|
178
179
|
return
|
|
179
180
|
raise ValueError(f"Unsupported upload mode: {upload_mode}")
|
|
180
181
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
table_exists = iceberg_catalog.table_exists(identifier=(source_schema, index_metadata.iceberg_table))
|
|
183
|
+
if full_sync or not table_exists:
|
|
184
|
+
if not table_exists:
|
|
185
|
+
logger.info(
|
|
186
|
+
"Index table {iceberg_table} does not exist in Iceberg. Running full sync.",
|
|
187
|
+
iceberg_table=index_metadata.iceberg_table,
|
|
188
|
+
)
|
|
189
|
+
else:
|
|
190
|
+
logger.info(
|
|
191
|
+
"Base table {source_table} has been reloaded. Running full sync for index table {iceberg_table}.",
|
|
192
|
+
source_table=source_table,
|
|
193
|
+
iceberg_table=index_metadata.iceberg_table,
|
|
194
|
+
)
|
|
186
195
|
write_using_catalog(
|
|
187
196
|
schema_name=source_schema,
|
|
188
197
|
table_name=index_metadata.iceberg_table,
|
|
@@ -350,7 +359,8 @@ def sync_iceberg_to_cassandra(
|
|
|
350
359
|
if current_snapshot is None:
|
|
351
360
|
raise RuntimeError(f"Failed to read current snapshot for table {source_path.schema}.{source_path.table}")
|
|
352
361
|
|
|
353
|
-
|
|
362
|
+
is_full_sync = not last_synced_snapshot or last_synced_snapshot == "-1"
|
|
363
|
+
if is_full_sync:
|
|
354
364
|
logger.info("Last sync snapshot data not available. Will perform a full sync.")
|
|
355
365
|
source_data: LazyFrame = load_using_catalog(
|
|
356
366
|
source_path.schema,
|
|
@@ -410,6 +420,7 @@ def sync_iceberg_to_cassandra(
|
|
|
410
420
|
read_chunk_size=read_chunk_size,
|
|
411
421
|
threads=threads,
|
|
412
422
|
logger=logger,
|
|
423
|
+
full_sync=is_full_sync,
|
|
413
424
|
)
|
|
414
425
|
|
|
415
426
|
logger.info(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/validation_abstract.py
RENAMED
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/validation_polars.py
RENAMED
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/dataclass_validation/validation/validation_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py
RENAMED
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/security/clients/hashicorp_vault/kubernetes_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py
RENAMED
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/models/expression_dsl/trino_filter_expression.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py
RENAMED
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/query_enabled_store/parameters/_write_parameters.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.0 → adapta-5.3.2}/src/adapta/storage/secrets/hashicorp_vault_secret_storage_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|