adapta 5.2.1__tar.gz → 5.2.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.2.1 → adapta-5.2.2}/PKG-INFO +1 -1
- {adapta-5.2.1 → adapta-5.2.2}/pyproject.toml +1 -1
- {adapta-5.2.1 → adapta-5.2.2}/pyproject.toml.orig +1 -1
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspace_client.py +11 -1
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/astra_client.py +11 -1
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/vanilla_client.py +11 -1
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/iceberg/v1/_functions.py +33 -2
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/sync/iceberg_to_cass.py +37 -13
- {adapta-5.2.1 → adapta-5.2.2}/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/_version.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/connectors/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/connectors/service_bus/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/connectors/service_bus/_connector.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/dataclass/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/dataclass/dataclass_core.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/validation/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/validation/validation.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/validation/validation_abstract.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/validation/validation_polars.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/validation/validation_utils.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/_async_logger.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/_base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/_internal.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/_internal_logger.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/_logger_interface.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/handlers/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/handlers/datadog_api_handler.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/handlers/safe_stream_handler.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/models/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/models/_log_level.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/models/_logs_metadata.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/providers/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/logs/providers/void_logger.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/metrics/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/metrics/_base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/metrics/providers/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/metrics/providers/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/metrics/providers/datadog_provider.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/metrics/providers/void_provider.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/ml/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/ml/_model.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/ml/mlflow/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/ml/mlflow/_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/ml/mlflow/_functions.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/process_communication/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/process_communication/_models.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/schema_management/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/schema_management/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/schema_management/schema_entity.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/_azure_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/_base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/_local_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/aws/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/aws/_aws_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/aws/_aws_credentials.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/hashicorp_vault/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/hashicorp_vault/kubernetes_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/hashicorp_vault/oidc_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/security/clients/hashicorp_vault/token_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/blob/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/blob/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/blob/azure_storage_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/blob/base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/blob/local_storage_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/blob/s3_storage_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/cache/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/cache/_base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/cache/redis_cache.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/azure_sql.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/models/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/models/_models.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/odbc.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/snowflake_sql.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/database/v3/trino_sql.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/delta_lake/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/delta_lake/v3/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/delta_lake/v3/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/delta_lake/v3/_functions.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/delta_lake/v3/_models.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspaces-certificate.pem +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client_configuration.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_model_mappers.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/datastax_astra/_models.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/exceptions.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/iceberg/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/iceberg/v1/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/iceberg/v1/_models.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/_functions.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/astra.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/aws.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/azure.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/cassandra.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/enum.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/cassandra_filter_expression.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/filter_expression.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/trino_filter_expression.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/format.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/dict.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/exceptions.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/metaframe.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/pandas.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/pickle.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/polars.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/formatters/unit.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/hive.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/iceberg.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/local.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/trino.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/_functions.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/_models.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/_qes_astra.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/_qes_delta.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/_qes_iceberg.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/_qes_local.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/_qes_trino.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/parameters/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/parameters/_base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/parameters/_write_parameters.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/secrets/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/secrets/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/secrets/_base.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/secrets/azure_secret_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/secrets/hashicorp_vault_secret_storage_client.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/sync/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/README.md +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/_common.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/_requests.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/concurrent_task_runner.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/data_structures/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/data_structures/_functions.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/decorators/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/decorators/_logging.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/decorators/_rate_limit.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/metaframe.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/polars.py +0 -0
- {adapta-5.2.1 → adapta-5.2.2}/src/adapta/utils/python_typing/__init__.py +0 -0
- {adapta-5.2.1 → adapta-5.2.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.2.
|
|
3
|
+
Version: 5.2.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.2.
|
|
3
|
+
version = "5.2.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"
|
|
@@ -6,6 +6,8 @@ import boto3
|
|
|
6
6
|
from cassandra.auth import AuthProvider
|
|
7
7
|
from cassandra_sigv4.auth import SigV4AuthProvider
|
|
8
8
|
|
|
9
|
+
from adapta.logs import LoggerInterface
|
|
10
|
+
from adapta.metrics import MetricsProvider
|
|
9
11
|
from adapta.storage.distributed_object_store.v3.cassandra_client import CassandraClient, CassandraClientConfiguration
|
|
10
12
|
|
|
11
13
|
|
|
@@ -22,8 +24,16 @@ class AwsKeyspaceClient(CassandraClient):
|
|
|
22
24
|
region: str,
|
|
23
25
|
profile_name: str | None = None,
|
|
24
26
|
client_config: CassandraClientConfiguration | None = None,
|
|
27
|
+
logger: LoggerInterface | None = None,
|
|
28
|
+
metrics_provider: MetricsProvider | None = None,
|
|
25
29
|
) -> None:
|
|
26
|
-
super().__init__(
|
|
30
|
+
super().__init__(
|
|
31
|
+
client_name=client_name,
|
|
32
|
+
keyspace=keyspace,
|
|
33
|
+
client_config=client_config,
|
|
34
|
+
logger=logger,
|
|
35
|
+
metrics_provider=metrics_provider,
|
|
36
|
+
)
|
|
27
37
|
self._region = region
|
|
28
38
|
self._profile = profile_name
|
|
29
39
|
|
|
@@ -31,6 +31,8 @@ import pandas
|
|
|
31
31
|
import polars
|
|
32
32
|
from cassandra.auth import AuthProvider, PlainTextAuthProvider
|
|
33
33
|
|
|
34
|
+
from adapta.logs import LoggerInterface
|
|
35
|
+
from adapta.metrics import MetricsProvider
|
|
34
36
|
from adapta.storage.distributed_object_store.v3.cassandra_client import (
|
|
35
37
|
CassandraClient,
|
|
36
38
|
CassandraClientConfiguration,
|
|
@@ -92,8 +94,16 @@ class AstraClient(CassandraClient):
|
|
|
92
94
|
client_id: str | None = None,
|
|
93
95
|
client_secret: str | None = None,
|
|
94
96
|
client_config: CassandraClientConfiguration | None = None,
|
|
97
|
+
logger: LoggerInterface | None = None,
|
|
98
|
+
metrics_provider: MetricsProvider | None = None,
|
|
95
99
|
):
|
|
96
|
-
super().__init__(
|
|
100
|
+
super().__init__(
|
|
101
|
+
client_name=client_name,
|
|
102
|
+
keyspace=keyspace,
|
|
103
|
+
client_config=client_config,
|
|
104
|
+
logger=logger,
|
|
105
|
+
metrics_provider=metrics_provider,
|
|
106
|
+
)
|
|
97
107
|
self._secure_connect_bundle_bytes = secure_connect_bundle_bytes or os.getenv("PROTEUS__ASTRA_BUNDLE_BYTES")
|
|
98
108
|
self._client_id = client_id or os.getenv("PROTEUS__ASTRA_CLIENT_ID")
|
|
99
109
|
self._client_secret = client_secret or os.getenv("PROTEUS__ASTRA_CLIENT_SECRET")
|
|
@@ -3,6 +3,8 @@ from typing import final
|
|
|
3
3
|
|
|
4
4
|
from cassandra.auth import AuthProvider, PlainTextAuthProvider
|
|
5
5
|
|
|
6
|
+
from adapta.logs import LoggerInterface
|
|
7
|
+
from adapta.metrics import MetricsProvider
|
|
6
8
|
from adapta.storage.distributed_object_store.v3.cassandra_client import (
|
|
7
9
|
CassandraClient,
|
|
8
10
|
CassandraClientConfiguration,
|
|
@@ -25,8 +27,16 @@ class VanillaCassandraClient(CassandraClient):
|
|
|
25
27
|
port: int = 9042,
|
|
26
28
|
ssl_context: ssl.SSLContext | None = None,
|
|
27
29
|
client_config: CassandraClientConfiguration | None = None,
|
|
30
|
+
logger: LoggerInterface | None = None,
|
|
31
|
+
metrics_provider: MetricsProvider | None = None,
|
|
28
32
|
) -> None:
|
|
29
|
-
super().__init__(
|
|
33
|
+
super().__init__(
|
|
34
|
+
client_name=client_name,
|
|
35
|
+
keyspace=keyspace,
|
|
36
|
+
client_config=client_config,
|
|
37
|
+
logger=logger,
|
|
38
|
+
metrics_provider=metrics_provider,
|
|
39
|
+
)
|
|
30
40
|
self._contact_points = contact_points or ["127.0.0.1"]
|
|
31
41
|
self._port = port
|
|
32
42
|
self._username = username
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Iceberg reader (via REST Catalog)"""
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
|
+
import time
|
|
4
5
|
from typing import Literal
|
|
5
6
|
|
|
6
7
|
import polars
|
|
@@ -347,9 +348,39 @@ def get_current_snapshot(
|
|
|
347
348
|
schema_name: str,
|
|
348
349
|
table_name: str,
|
|
349
350
|
catalog: Catalog,
|
|
350
|
-
) -> int:
|
|
351
|
+
) -> int | None:
|
|
351
352
|
"""
|
|
352
353
|
Retrieves a latest snapshot of the table
|
|
353
354
|
"""
|
|
354
355
|
table = _apply_s3_endpoint_override(catalog.load_table(identifier=(schema_name, table_name)))
|
|
355
|
-
|
|
356
|
+
current_snapshot = table.current_snapshot()
|
|
357
|
+
if current_snapshot:
|
|
358
|
+
return current_snapshot.snapshot_id
|
|
359
|
+
|
|
360
|
+
return None
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def wait_for_current_snapshot(
|
|
364
|
+
schema_name: str,
|
|
365
|
+
table_name: str,
|
|
366
|
+
catalog: Catalog,
|
|
367
|
+
timeout_seconds: int = 60,
|
|
368
|
+
poll_interval_seconds: float = 0.2,
|
|
369
|
+
) -> int | None:
|
|
370
|
+
"""
|
|
371
|
+
Waits for a table snapshot commit to appear on the catalog.
|
|
372
|
+
|
|
373
|
+
:param schema_name: Catalog schema/namespace name.
|
|
374
|
+
:param table_name: Table name.
|
|
375
|
+
:param catalog: Iceberg catalog.
|
|
376
|
+
:param timeout_seconds: Maximum time to wait in seconds. Defaults to 60.
|
|
377
|
+
:param poll_interval_seconds: Sleep interval between polls. Defaults to 0.2s (200ms).
|
|
378
|
+
:return: Current snapshot ID or None if timed out / table has no snapshot.
|
|
379
|
+
"""
|
|
380
|
+
start_time = time.monotonic()
|
|
381
|
+
current_snapshot = get_current_snapshot(schema_name, table_name, catalog)
|
|
382
|
+
while current_snapshot is None and (time.monotonic() - start_time) < timeout_seconds:
|
|
383
|
+
time.sleep(poll_interval_seconds)
|
|
384
|
+
current_snapshot = get_current_snapshot(schema_name, table_name, catalog)
|
|
385
|
+
|
|
386
|
+
return current_snapshot
|
|
@@ -11,10 +11,10 @@ from adapta.process_communication import DataSocket
|
|
|
11
11
|
from adapta.storage.distributed_object_store.v3.cassandra_client import CassandraClient, TCassandraModel, get_mapper
|
|
12
12
|
from adapta.storage.iceberg.v1 import (
|
|
13
13
|
get_changes,
|
|
14
|
-
get_current_snapshot,
|
|
15
14
|
get_property,
|
|
16
15
|
load_using_catalog,
|
|
17
16
|
set_property,
|
|
17
|
+
wait_for_current_snapshot,
|
|
18
18
|
write_using_catalog,
|
|
19
19
|
)
|
|
20
20
|
from adapta.storage.models import CassandraPath, IcebergPath
|
|
@@ -178,10 +178,31 @@ def _sync_custom_index(
|
|
|
178
178
|
return
|
|
179
179
|
raise ValueError(f"Unsupported upload mode: {upload_mode}")
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
if not iceberg_catalog.table_exists(identifier=(source_schema, index_metadata.iceberg_table)):
|
|
182
|
+
logger.info(
|
|
183
|
+
"Index table {iceberg_table} does not exist in Iceberg. Running full sync.",
|
|
184
|
+
iceberg_table=index_metadata.iceberg_table,
|
|
185
|
+
)
|
|
186
|
+
write_using_catalog(
|
|
187
|
+
schema_name=source_schema,
|
|
188
|
+
table_name=index_metadata.iceberg_table,
|
|
189
|
+
catalog=iceberg_catalog,
|
|
190
|
+
data=_read_index_data(),
|
|
191
|
+
overwrite=True,
|
|
192
|
+
)
|
|
193
|
+
if wait_for_current_snapshot(source_schema, index_metadata.iceberg_table, iceberg_catalog) is None:
|
|
194
|
+
raise RuntimeError(
|
|
195
|
+
f"Failed to read current snapshot for table {source_schema}.{index_metadata.iceberg_table} after write"
|
|
196
|
+
)
|
|
197
|
+
logger.info(
|
|
198
|
+
"Syncing index table {cassandra_table} to Cassandra", cassandra_table=index_metadata.cassandra_table
|
|
199
|
+
)
|
|
200
|
+
_upload_index(_read_index_data())
|
|
201
|
+
return
|
|
202
|
+
|
|
203
|
+
idx_previous_snapshot = wait_for_current_snapshot(source_schema, index_metadata.iceberg_table, iceberg_catalog)
|
|
204
|
+
if idx_previous_snapshot is None:
|
|
205
|
+
raise RuntimeError(f"Table {source_schema}.{index_metadata.iceberg_table} exists but has no current snapshot")
|
|
185
206
|
|
|
186
207
|
logger.info("Writing index data to Iceberg table {iceberg_table}", iceberg_table=index_metadata.iceberg_table)
|
|
187
208
|
write_using_catalog(
|
|
@@ -192,14 +213,15 @@ def _sync_custom_index(
|
|
|
192
213
|
overwrite=True,
|
|
193
214
|
)
|
|
194
215
|
|
|
195
|
-
idx_current_snapshot =
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
216
|
+
idx_current_snapshot = wait_for_current_snapshot(
|
|
217
|
+
schema_name=source_schema,
|
|
218
|
+
table_name=index_metadata.iceberg_table,
|
|
219
|
+
catalog=iceberg_catalog,
|
|
220
|
+
)
|
|
221
|
+
if idx_current_snapshot is None:
|
|
222
|
+
raise RuntimeError(
|
|
223
|
+
f"Failed to read current snapshot for table {source_schema}.{index_metadata.iceberg_table} after write"
|
|
200
224
|
)
|
|
201
|
-
_upload_index(_read_index_data())
|
|
202
|
-
return
|
|
203
225
|
|
|
204
226
|
if idx_previous_snapshot == idx_current_snapshot:
|
|
205
227
|
return
|
|
@@ -324,7 +346,9 @@ def sync_iceberg_to_cassandra(
|
|
|
324
346
|
)
|
|
325
347
|
)
|
|
326
348
|
total_synced_records = 0
|
|
327
|
-
current_snapshot =
|
|
349
|
+
current_snapshot = wait_for_current_snapshot(source_path.schema, source_path.table, iceberg_catalog)
|
|
350
|
+
if current_snapshot is None:
|
|
351
|
+
raise RuntimeError(f"Failed to read current snapshot for table {source_path.schema}.{source_path.table}")
|
|
328
352
|
|
|
329
353
|
if not last_synced_snapshot or last_synced_snapshot == "-1":
|
|
330
354
|
logger.info("Last sync snapshot data not available. Will perform a full sync.")
|
|
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.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/validation/validation_abstract.py
RENAMED
|
File without changes
|
{adapta-5.2.1 → adapta-5.2.2}/src/adapta/dataclass_validation/validation/validation_polars.py
RENAMED
|
File without changes
|
{adapta-5.2.1 → adapta-5.2.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.2.1 → adapta-5.2.2}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py
RENAMED
|
File without changes
|
{adapta-5.2.1 → adapta-5.2.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.2.1 → adapta-5.2.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
|
{adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py
RENAMED
|
File without changes
|
{adapta-5.2.1 → adapta-5.2.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
|
{adapta-5.2.1 → adapta-5.2.2}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py
RENAMED
|
File without changes
|
{adapta-5.2.1 → adapta-5.2.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.2.1 → adapta-5.2.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
|