adapta 5.3.7__tar.gz → 5.3.9__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.7 → adapta-5.3.9}/PKG-INFO +19 -1
- {adapta-5.3.7 → adapta-5.3.9}/README.md +18 -0
- {adapta-5.3.7 → adapta-5.3.9}/pyproject.toml +1 -1
- {adapta-5.3.7 → adapta-5.3.9}/pyproject.toml.orig +1 -1
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/iceberg/v1/_functions.py +12 -1
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/sync/iceberg_to_cass.py +67 -23
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/_version.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/connectors/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/connectors/service_bus/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/connectors/service_bus/_connector.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/dataclass/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/dataclass/dataclass_core.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/validation/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/validation/validation.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/validation/validation_abstract.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/validation/validation_polars.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/validation/validation_utils.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/_async_logger.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/_base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/_internal.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/_internal_logger.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/_logger_interface.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/handlers/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/handlers/datadog_api_handler.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/handlers/safe_stream_handler.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/models/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/models/_log_level.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/models/_logs_metadata.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/providers/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/logs/providers/void_logger.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/metrics/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/metrics/_base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/metrics/providers/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/metrics/providers/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/metrics/providers/datadog_provider.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/metrics/providers/void_provider.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/ml/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/ml/_model.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/ml/mlflow/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/ml/mlflow/_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/ml/mlflow/_functions.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/process_communication/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/process_communication/_models.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/schema_management/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/schema_management/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/schema_management/schema_entity.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/_azure_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/_base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/_local_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/aws/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/aws/_aws_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/aws/_aws_credentials.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/hashicorp_vault/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/hashicorp_vault/kubernetes_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/hashicorp_vault/oidc_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/security/clients/hashicorp_vault/token_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/blob/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/blob/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/blob/azure_storage_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/blob/base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/blob/local_storage_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/blob/s3_storage_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/cache/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/cache/_base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/cache/redis_cache.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/azure_sql.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/models/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/models/_models.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/odbc.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/snowflake_sql.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/database/v3/trino_sql.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/delta_lake/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/delta_lake/v3/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/delta_lake/v3/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/delta_lake/v3/_functions.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/delta_lake/v3/_models.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspace_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspaces-certificate.pem +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/cassandra_client/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/cassandra_client/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client_configuration.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_model_mappers.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/datastax_astra/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/datastax_astra/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/datastax_astra/_models.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/datastax_astra/astra_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/vanilla_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/exceptions.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/iceberg/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/iceberg/v1/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/iceberg/v1/_models.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/_functions.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/astra.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/aws.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/azure.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/cassandra.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/enum.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/cassandra_filter_expression.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/filter_expression.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/trino_filter_expression.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/format.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/dict.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/exceptions.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/metaframe.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/pandas.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/pickle.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/polars.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/formatters/unit.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/hive.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/iceberg.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/local.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/trino.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_functions.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_models.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_qes_astra.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_qes_cassandra.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_qes_delta.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_qes_iceberg.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_qes_local.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/_qes_trino.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/parameters/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/parameters/_base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/parameters/_write_parameters.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/secrets/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/secrets/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/secrets/_base.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/secrets/azure_secret_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/secrets/hashicorp_vault_secret_storage_client.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/sync/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/README.md +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/_common.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/_requests.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/concurrent_task_runner.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/data_structures/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/data_structures/_functions.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/decorators/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/decorators/_logging.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/decorators/_rate_limit.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/metaframe.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/polars.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/src/adapta/utils/python_typing/__init__.py +0 -0
- {adapta-5.3.7 → adapta-5.3.9}/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.9
|
|
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>
|
|
@@ -91,3 +91,21 @@ Please refer to the [module](adapta/storage/distributed_object_store/v3/datastax
|
|
|
91
91
|
|
|
92
92
|
## Dataclass Validation framework
|
|
93
93
|
Please refer to the [module](adapta/dataclass_validation/README.md) documentation for examples.
|
|
94
|
+
|
|
95
|
+
## Development
|
|
96
|
+
|
|
97
|
+
### Debugging tests
|
|
98
|
+
|
|
99
|
+
`pyproject.toml` enables code coverage for every `pytest` run via `addopts` (`--cov=.`). Coverage's tracer
|
|
100
|
+
conflicts with debugger tracers, so breakpoints are silently ignored while coverage is active.
|
|
101
|
+
|
|
102
|
+
To debug a test, disable coverage for that run without editing `pyproject.toml`, since `--no-cov` always
|
|
103
|
+
overrides the `--cov` option configured in `addopts`:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
uv run pytest tests/path/to/test_file.py --no-cov
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
In an IDE run/debug configuration, add `--no-cov` to the test runner's arguments (e.g. PyCharm's
|
|
110
|
+
"Additional Arguments" field), or set the `PYTEST_ADDOPTS=--no-cov` environment variable on the debug
|
|
111
|
+
configuration template so it applies automatically whenever you debug.
|
|
@@ -22,3 +22,21 @@ Please refer to the [module](adapta/storage/distributed_object_store/v3/datastax
|
|
|
22
22
|
|
|
23
23
|
## Dataclass Validation framework
|
|
24
24
|
Please refer to the [module](adapta/dataclass_validation/README.md) documentation for examples.
|
|
25
|
+
|
|
26
|
+
## Development
|
|
27
|
+
|
|
28
|
+
### Debugging tests
|
|
29
|
+
|
|
30
|
+
`pyproject.toml` enables code coverage for every `pytest` run via `addopts` (`--cov=.`). Coverage's tracer
|
|
31
|
+
conflicts with debugger tracers, so breakpoints are silently ignored while coverage is active.
|
|
32
|
+
|
|
33
|
+
To debug a test, disable coverage for that run without editing `pyproject.toml`, since `--no-cov` always
|
|
34
|
+
overrides the `--cov` option configured in `addopts`:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
uv run pytest tests/path/to/test_file.py --no-cov
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
In an IDE run/debug configuration, add `--no-cov` to the test runner's arguments (e.g. PyCharm's
|
|
41
|
+
"Additional Arguments" field), or set the `PYTEST_ADDOPTS=--no-cov` environment variable on the debug
|
|
42
|
+
configuration template so it applies automatically whenever you debug.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "adapta"
|
|
3
|
-
version = "5.3.
|
|
3
|
+
version = "5.3.9"
|
|
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,9 +6,11 @@ from typing import Literal
|
|
|
6
6
|
|
|
7
7
|
import polars
|
|
8
8
|
import pyiceberg
|
|
9
|
+
from backoff import expo, on_exception
|
|
9
10
|
from polars import Expr, LazyFrame
|
|
10
11
|
from pyarrow.lib import Schema
|
|
11
12
|
from pyiceberg.catalog import Catalog, load_catalog
|
|
13
|
+
from pyiceberg.exceptions import CommitFailedException
|
|
12
14
|
from pyiceberg.schema import Schema as IcebergSchema
|
|
13
15
|
from pyiceberg.table import ALWAYS_TRUE
|
|
14
16
|
from pyiceberg.table import Table as IcebergTable
|
|
@@ -319,6 +321,14 @@ def get_changes(
|
|
|
319
321
|
return inserts, updates, deletes
|
|
320
322
|
|
|
321
323
|
|
|
324
|
+
@on_exception(
|
|
325
|
+
wait_gen=expo,
|
|
326
|
+
exception=CommitFailedException,
|
|
327
|
+
giveup=lambda error: "ConcurrentUpdateError" not in str(error),
|
|
328
|
+
max_tries=5,
|
|
329
|
+
max_time=60,
|
|
330
|
+
raise_on_giveup=True,
|
|
331
|
+
)
|
|
322
332
|
def set_property(
|
|
323
333
|
schema_name: str,
|
|
324
334
|
table_name: str,
|
|
@@ -327,7 +337,8 @@ def set_property(
|
|
|
327
337
|
property_value: str,
|
|
328
338
|
) -> None:
|
|
329
339
|
"""
|
|
330
|
-
Sets or updates a custom property on the specified Iceberg table
|
|
340
|
+
Sets or updates a custom property on the specified Iceberg table.
|
|
341
|
+
Retries with a freshly loaded table when the commit conflicts with a concurrent update.
|
|
331
342
|
"""
|
|
332
343
|
table = _apply_s3_endpoint_override(catalog.load_table(identifier=(schema_name, table_name)))
|
|
333
344
|
|
|
@@ -26,6 +26,28 @@ class CassandraUploadMode(Enum):
|
|
|
26
26
|
CONCURRENT_NATIVE = "native"
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
@final
|
|
30
|
+
@dataclass
|
|
31
|
+
class ShardingConfig:
|
|
32
|
+
"""
|
|
33
|
+
Configuration for sharded Cassandra target table uploads.
|
|
34
|
+
|
|
35
|
+
:param shard_count: Total number of shards.
|
|
36
|
+
:param shard_id: Specific shard index (0-based) to sync.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
shard_count: int
|
|
40
|
+
shard_id: int
|
|
41
|
+
|
|
42
|
+
def __post_init__(self) -> None:
|
|
43
|
+
if self.shard_count is None or self.shard_id is None:
|
|
44
|
+
raise ValueError("Both shard_count and shard_id must be provided")
|
|
45
|
+
if self.shard_count <= 0:
|
|
46
|
+
raise ValueError("shard_count must be greater than 0")
|
|
47
|
+
if not (0 <= self.shard_id < self.shard_count):
|
|
48
|
+
raise ValueError(f"shard_id must be between 0 and {self.shard_count - 1}")
|
|
49
|
+
|
|
50
|
+
|
|
29
51
|
@final
|
|
30
52
|
@dataclass
|
|
31
53
|
class CustomIndexMetadata:
|
|
@@ -145,7 +167,7 @@ def _sync_custom_index(
|
|
|
145
167
|
threads: int,
|
|
146
168
|
logger: LoggerInterface,
|
|
147
169
|
full_sync: bool = False,
|
|
148
|
-
|
|
170
|
+
sharding_config: ShardingConfig | None = None,
|
|
149
171
|
) -> None:
|
|
150
172
|
def _read_index_data() -> LazyFrame:
|
|
151
173
|
logger.info("Reading source table {source_table} for custom index", source_table=source_table)
|
|
@@ -166,7 +188,8 @@ def _sync_custom_index(
|
|
|
166
188
|
keyspace=target_keyspace,
|
|
167
189
|
batch_size=read_chunk_size,
|
|
168
190
|
threads=threads,
|
|
169
|
-
shard_count=shard_count,
|
|
191
|
+
shard_count=sharding_config.shard_count if sharding_config else None,
|
|
192
|
+
shard_id=sharding_config.shard_id if sharding_config else None,
|
|
170
193
|
)
|
|
171
194
|
return
|
|
172
195
|
if upload_mode == CassandraUploadMode.CONCURRENT_NATIVE:
|
|
@@ -177,7 +200,8 @@ def _sync_custom_index(
|
|
|
177
200
|
keyspace=target_keyspace,
|
|
178
201
|
batch_size=read_chunk_size,
|
|
179
202
|
threads=threads,
|
|
180
|
-
shard_count=shard_count,
|
|
203
|
+
shard_count=sharding_config.shard_count if sharding_config else None,
|
|
204
|
+
shard_id=sharding_config.shard_id if sharding_config else None,
|
|
181
205
|
)
|
|
182
206
|
return
|
|
183
207
|
raise ValueError(f"Unsupported upload mode: {upload_mode}")
|
|
@@ -280,7 +304,8 @@ def _sync_custom_index(
|
|
|
280
304
|
keyspace=target_keyspace,
|
|
281
305
|
batch_size=read_chunk_size,
|
|
282
306
|
threads=threads,
|
|
283
|
-
shard_count=shard_count,
|
|
307
|
+
shard_count=sharding_config.shard_count if sharding_config else None,
|
|
308
|
+
shard_id=sharding_config.shard_id if sharding_config else None,
|
|
284
309
|
)
|
|
285
310
|
|
|
286
311
|
|
|
@@ -295,8 +320,7 @@ def sync_iceberg_to_cassandra(
|
|
|
295
320
|
threads: int,
|
|
296
321
|
upload_mode: CassandraUploadMode = CassandraUploadMode.CONCURRENT_BATCH,
|
|
297
322
|
ignore_index_updates: bool = False,
|
|
298
|
-
|
|
299
|
-
shard_id: int | None = None,
|
|
323
|
+
sharding_config: ShardingConfig | None = None,
|
|
300
324
|
) -> None:
|
|
301
325
|
"""
|
|
302
326
|
Synchronizes data from the provided Iceberg source to Cassandra target table. Assumes schemas are compatible.
|
|
@@ -316,8 +340,8 @@ def sync_iceberg_to_cassandra(
|
|
|
316
340
|
keyspace=keyspace,
|
|
317
341
|
batch_size=read_chunk_size,
|
|
318
342
|
threads=threads,
|
|
319
|
-
shard_count=shard_count,
|
|
320
|
-
shard_id=shard_id,
|
|
343
|
+
shard_count=sharding_config.shard_count if sharding_config else None,
|
|
344
|
+
shard_id=sharding_config.shard_id if sharding_config else None,
|
|
321
345
|
)
|
|
322
346
|
if upload_mode == CassandraUploadMode.CONCURRENT_NATIVE:
|
|
323
347
|
return client.upload_concurrent_native(
|
|
@@ -327,8 +351,8 @@ def sync_iceberg_to_cassandra(
|
|
|
327
351
|
keyspace=keyspace,
|
|
328
352
|
batch_size=read_chunk_size,
|
|
329
353
|
threads=threads,
|
|
330
|
-
shard_count=shard_count,
|
|
331
|
-
shard_id=shard_id,
|
|
354
|
+
shard_count=sharding_config.shard_count if sharding_config else None,
|
|
355
|
+
shard_id=sharding_config.shard_id if sharding_config else None,
|
|
332
356
|
)
|
|
333
357
|
raise ValueError(f"Unsupported upload mode: {upload_mode}")
|
|
334
358
|
|
|
@@ -345,10 +369,38 @@ def sync_iceberg_to_cassandra(
|
|
|
345
369
|
keyspace=keyspace,
|
|
346
370
|
batch_size=read_chunk_size,
|
|
347
371
|
threads=threads,
|
|
348
|
-
shard_count=shard_count,
|
|
349
|
-
shard_id=shard_id,
|
|
372
|
+
shard_count=sharding_config.shard_count if sharding_config else None,
|
|
373
|
+
shard_id=sharding_config.shard_id if sharding_config else None,
|
|
350
374
|
)
|
|
351
375
|
|
|
376
|
+
def _get_last_synced_snapshot(schema: str, table: str) -> str | None:
|
|
377
|
+
if sharding_config is not None:
|
|
378
|
+
return get_property(
|
|
379
|
+
schema,
|
|
380
|
+
table,
|
|
381
|
+
iceberg_catalog,
|
|
382
|
+
f"adapta.cassandra.shard-{sharding_config.shard_id}.last-synced-snapshot-id",
|
|
383
|
+
)
|
|
384
|
+
return get_property(schema, table, iceberg_catalog, "adapta.cassandra.last-synced-snapshot-id")
|
|
385
|
+
|
|
386
|
+
def _set_last_synced_snapshot(schema: str, table: str, snapshot: int) -> None:
|
|
387
|
+
if sharding_config is not None:
|
|
388
|
+
set_property(
|
|
389
|
+
schema,
|
|
390
|
+
table,
|
|
391
|
+
iceberg_catalog,
|
|
392
|
+
f"adapta.cassandra.shard-{sharding_config.shard_id}.last-synced-snapshot-id",
|
|
393
|
+
str(snapshot),
|
|
394
|
+
)
|
|
395
|
+
else:
|
|
396
|
+
set_property(
|
|
397
|
+
schema,
|
|
398
|
+
table,
|
|
399
|
+
iceberg_catalog,
|
|
400
|
+
"adapta.cassandra.last-synced-snapshot-id",
|
|
401
|
+
str(snapshot),
|
|
402
|
+
)
|
|
403
|
+
|
|
352
404
|
source_path: IcebergPath = iceberg_source.parse_data_path()
|
|
353
405
|
target_path: CassandraPath = cassandra_target.parse_data_path()
|
|
354
406
|
cassandra_model = target_path.model_class()
|
|
@@ -357,9 +409,7 @@ def sync_iceberg_to_cassandra(
|
|
|
357
409
|
"Running incremental sync to table {sync_to_table}. Looking for changes to sync.",
|
|
358
410
|
sync_to_table=target_path.table,
|
|
359
411
|
)
|
|
360
|
-
last_synced_snapshot =
|
|
361
|
-
source_path.schema, source_path.table, iceberg_catalog, "adapta.cassandra.last-synced-snapshot-id"
|
|
362
|
-
)
|
|
412
|
+
last_synced_snapshot = _get_last_synced_snapshot(source_path.schema, source_path.table)
|
|
363
413
|
mapper = get_mapper(
|
|
364
414
|
data_model=cassandra_model,
|
|
365
415
|
table_name=iceberg_source.alias,
|
|
@@ -442,13 +492,7 @@ def sync_iceberg_to_cassandra(
|
|
|
442
492
|
)
|
|
443
493
|
return
|
|
444
494
|
|
|
445
|
-
|
|
446
|
-
source_path.schema,
|
|
447
|
-
source_path.table,
|
|
448
|
-
iceberg_catalog,
|
|
449
|
-
"adapta.cassandra.last-synced-snapshot-id",
|
|
450
|
-
str(current_snapshot),
|
|
451
|
-
)
|
|
495
|
+
_set_last_synced_snapshot(source_path.schema, source_path.table, current_snapshot)
|
|
452
496
|
for idx_meta in custom_index_models:
|
|
453
497
|
_sync_custom_index(
|
|
454
498
|
index_metadata=idx_meta,
|
|
@@ -463,7 +507,7 @@ def sync_iceberg_to_cassandra(
|
|
|
463
507
|
threads=threads,
|
|
464
508
|
logger=logger,
|
|
465
509
|
full_sync=is_full_sync,
|
|
466
|
-
|
|
510
|
+
sharding_config=sharding_config,
|
|
467
511
|
)
|
|
468
512
|
|
|
469
513
|
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
|
{adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/validation/validation_abstract.py
RENAMED
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/src/adapta/dataclass_validation/validation/validation_polars.py
RENAMED
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/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.7 → adapta-5.3.9}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py
RENAMED
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/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.7 → adapta-5.3.9}/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
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py
RENAMED
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/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.7 → adapta-5.3.9}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py
RENAMED
|
File without changes
|
{adapta-5.3.7 → adapta-5.3.9}/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.7 → adapta-5.3.9}/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
|