adapta 5.3.1__tar.gz → 5.3.3__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.1 → adapta-5.3.3}/PKG-INFO +1 -1
- {adapta-5.3.1 → adapta-5.3.3}/pyproject.toml +1 -1
- {adapta-5.3.1 → adapta-5.3.3}/pyproject.toml.orig +1 -1
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/iceberg/v1/_functions.py +19 -13
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_qes_iceberg.py +55 -9
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/sync/iceberg_to_cass.py +17 -6
- {adapta-5.3.1 → adapta-5.3.3}/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/_version.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/connectors/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/connectors/service_bus/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/connectors/service_bus/_connector.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/dataclass/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/dataclass/dataclass_core.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/validation/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/validation/validation.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/validation/validation_abstract.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/validation/validation_polars.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/validation/validation_utils.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/_async_logger.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/_base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/_internal.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/_internal_logger.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/_logger_interface.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/handlers/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/handlers/datadog_api_handler.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/handlers/safe_stream_handler.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/models/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/models/_log_level.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/models/_logs_metadata.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/providers/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/logs/providers/void_logger.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/metrics/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/metrics/_base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/metrics/providers/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/metrics/providers/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/metrics/providers/datadog_provider.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/metrics/providers/void_provider.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/ml/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/ml/_model.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/ml/mlflow/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/ml/mlflow/_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/ml/mlflow/_functions.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/process_communication/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/process_communication/_models.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/schema_management/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/schema_management/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/schema_management/schema_entity.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/_azure_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/_base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/_local_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/aws/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/aws/_aws_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/aws/_aws_credentials.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/hashicorp_vault/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/hashicorp_vault/kubernetes_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/hashicorp_vault/oidc_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/security/clients/hashicorp_vault/token_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/blob/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/blob/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/blob/azure_storage_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/blob/base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/blob/local_storage_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/blob/s3_storage_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/cache/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/cache/_base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/cache/redis_cache.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/azure_sql.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/models/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/models/_models.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/odbc.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/snowflake_sql.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/database/v3/trino_sql.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/delta_lake/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/delta_lake/v3/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/delta_lake/v3/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/delta_lake/v3/_functions.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/delta_lake/v3/_models.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspace_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/aws_keyspaces/keyspaces-certificate.pem +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/cassandra_client/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/cassandra_client/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_client_configuration.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/cassandra_client/_model_mappers.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/datastax_astra/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/datastax_astra/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/datastax_astra/_models.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/datastax_astra/astra_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/distributed_object_store/v3/vanilla_cassandra/vanilla_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/exceptions.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/iceberg/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/iceberg/v1/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/iceberg/v1/_models.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/_functions.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/astra.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/aws.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/azure.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/cassandra.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/enum.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/cassandra_filter_expression.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/filter_expression.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/trino_filter_expression.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/format.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/dict.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/exceptions.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/metaframe.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/pandas.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/pickle.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/polars.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/formatters/unit.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/hive.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/iceberg.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/local.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/trino.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_functions.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_models.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_qes_astra.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_qes_cassandra.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_qes_delta.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_qes_local.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/_qes_trino.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/parameters/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/parameters/_base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/parameters/_write_parameters.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/secrets/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/secrets/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/secrets/_base.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/secrets/azure_secret_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/secrets/hashicorp_vault_secret_storage_client.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/sync/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/README.md +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/_common.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/_requests.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/concurrent_task_runner.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/data_structures/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/data_structures/_functions.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/decorators/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/decorators/_logging.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/decorators/_rate_limit.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/metaframe.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/polars.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/src/adapta/utils/python_typing/__init__.py +0 -0
- {adapta-5.3.1 → adapta-5.3.3}/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.3
|
|
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.3"
|
|
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"
|
|
@@ -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 = (
|
|
@@ -13,6 +13,7 @@ from pyiceberg.catalog import Catalog
|
|
|
13
13
|
|
|
14
14
|
from adapta.storage.iceberg.v1 import (
|
|
15
15
|
IcebergRestCatalogConfig,
|
|
16
|
+
IcebergRestOAuth2Config,
|
|
16
17
|
get_catalog,
|
|
17
18
|
load_using_catalog,
|
|
18
19
|
write_using_catalog,
|
|
@@ -34,16 +35,59 @@ class IcebergCredential(DataClassJsonMixin):
|
|
|
34
35
|
"""
|
|
35
36
|
|
|
36
37
|
oauth_enabled: bool
|
|
38
|
+
warehouse: str | None = None
|
|
39
|
+
read_from_warehouse: str | None = None
|
|
40
|
+
write_to_warehouse: str | None = None
|
|
41
|
+
uri: str | None = None
|
|
37
42
|
|
|
38
43
|
def __post_init__(self):
|
|
39
|
-
self.
|
|
44
|
+
self._read_catalog_config: IcebergRestCatalogConfig | None = None
|
|
45
|
+
self._write_catalog_config: IcebergRestCatalogConfig | None = None
|
|
46
|
+
|
|
47
|
+
if self.warehouse is not None:
|
|
48
|
+
self.read_from_warehouse = self.warehouse
|
|
49
|
+
self.write_to_warehouse = self.warehouse
|
|
50
|
+
|
|
51
|
+
if self.read_from_warehouse is None and self.write_to_warehouse is None:
|
|
52
|
+
self._read_catalog_config = IcebergRestCatalogConfig.from_environment(oauth2_enabled=self.oauth_enabled)
|
|
53
|
+
self._write_catalog_config = self._read_catalog_config
|
|
54
|
+
return
|
|
55
|
+
|
|
56
|
+
if self.read_from_warehouse is not None and self.write_to_warehouse is not None and self.uri is not None:
|
|
57
|
+
self._read_catalog_config = IcebergRestCatalogConfig(
|
|
58
|
+
uri=self.uri,
|
|
59
|
+
warehouse=self.read_from_warehouse,
|
|
60
|
+
oauth2_config=IcebergRestOAuth2Config.from_environment() if self.oauth_enabled else None,
|
|
61
|
+
)
|
|
62
|
+
self._write_catalog_config = IcebergRestCatalogConfig(
|
|
63
|
+
uri=self.uri,
|
|
64
|
+
warehouse=self.write_to_warehouse,
|
|
65
|
+
oauth2_config=IcebergRestOAuth2Config.from_environment() if self.oauth_enabled else None,
|
|
66
|
+
)
|
|
67
|
+
return
|
|
68
|
+
|
|
69
|
+
raise RuntimeError(
|
|
70
|
+
"Invalid IcebergCredential value supplied for Iceberg QES: you must either provide no values in both "
|
|
71
|
+
"read_from_warehouse/write_to_warehouse, or provide both of them together with catalog url."
|
|
72
|
+
)
|
|
40
73
|
|
|
41
74
|
@property
|
|
42
|
-
def
|
|
75
|
+
def read_catalog_config(self) -> IcebergRestCatalogConfig:
|
|
43
76
|
"""
|
|
44
|
-
Catalog configuration for Iceberg QES.
|
|
77
|
+
Catalog configuration for Iceberg QES (read only).
|
|
45
78
|
"""
|
|
46
|
-
|
|
79
|
+
assert self._read_catalog_config is not None, "Catalog not initialized for read"
|
|
80
|
+
|
|
81
|
+
return self._read_catalog_config
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def write_catalog_config(self) -> IcebergRestCatalogConfig:
|
|
85
|
+
"""
|
|
86
|
+
Catalog configuration for Iceberg QES (write only).
|
|
87
|
+
"""
|
|
88
|
+
assert self._write_catalog_config is not None, "Catalog not initialized for write"
|
|
89
|
+
|
|
90
|
+
return self._write_catalog_config
|
|
47
91
|
|
|
48
92
|
|
|
49
93
|
@dataclass
|
|
@@ -64,10 +108,12 @@ class IcebergQueryEnabledStore(QueryEnabledStore[IcebergCredential, IcebergSetti
|
|
|
64
108
|
|
|
65
109
|
def __init__(self, credentials: IcebergCredential, settings: IcebergSettings):
|
|
66
110
|
super().__init__(credentials, settings)
|
|
67
|
-
self.
|
|
111
|
+
self._read_catalog: Catalog | None = None
|
|
112
|
+
self._write_catalog: Catalog | None = None
|
|
68
113
|
|
|
69
114
|
def _init_catalog(self) -> Self:
|
|
70
|
-
self.
|
|
115
|
+
self._read_catalog = get_catalog(self.settings.catalog_name, self.credentials.read_catalog_config)
|
|
116
|
+
self._write_catalog = get_catalog(self.settings.catalog_name, self.credentials.write_catalog_config)
|
|
71
117
|
return self
|
|
72
118
|
|
|
73
119
|
def close(self) -> None:
|
|
@@ -98,7 +144,7 @@ class IcebergQueryEnabledStore(QueryEnabledStore[IcebergCredential, IcebergSetti
|
|
|
98
144
|
limit=limit,
|
|
99
145
|
version_id=options.get(QueryEnabledStoreOptions.VERSION_ID, None) if options else None,
|
|
100
146
|
lazy_read=self.settings.lazy_read,
|
|
101
|
-
catalog=self.
|
|
147
|
+
catalog=self._read_catalog,
|
|
102
148
|
)
|
|
103
149
|
|
|
104
150
|
def _apply_query(self, query: str) -> MetaFrame | Iterator[MetaFrame]:
|
|
@@ -120,12 +166,12 @@ class IcebergQueryEnabledStore(QueryEnabledStore[IcebergCredential, IcebergSetti
|
|
|
120
166
|
|
|
121
167
|
return data.to_polars()
|
|
122
168
|
|
|
123
|
-
assert self.
|
|
169
|
+
assert self._write_catalog is not None, "Catalog not initialized"
|
|
124
170
|
|
|
125
171
|
write_using_catalog(
|
|
126
172
|
schema_name=path.schema,
|
|
127
173
|
table_name=path.table,
|
|
128
|
-
catalog=self.
|
|
174
|
+
catalog=self._write_catalog,
|
|
129
175
|
data=_resolve_dataframe(),
|
|
130
176
|
write_chunk_size=block_size,
|
|
131
177
|
overwrite=overwrite,
|
|
@@ -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.1 → adapta-5.3.3}/src/adapta/dataclass_validation/dataclass/dataclass_abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/validation/validation_abstract.py
RENAMED
|
File without changes
|
{adapta-5.3.1 → adapta-5.3.3}/src/adapta/dataclass_validation/validation/validation_polars.py
RENAMED
|
File without changes
|
{adapta-5.3.1 → adapta-5.3.3}/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.1 → adapta-5.3.3}/src/adapta/security/clients/hashicorp_vault/hashicorp_vault_client.py
RENAMED
|
File without changes
|
{adapta-5.3.1 → adapta-5.3.3}/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.1 → adapta-5.3.3}/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.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/arrow_filter_expression.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adapta-5.3.1 → adapta-5.3.3}/src/adapta/storage/models/expression_dsl/iceberg_filter_expression.py
RENAMED
|
File without changes
|
{adapta-5.3.1 → adapta-5.3.3}/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.3.1 → adapta-5.3.3}/src/adapta/storage/query_enabled_store/parameters/_read_parameters.py
RENAMED
|
File without changes
|
{adapta-5.3.1 → adapta-5.3.3}/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.1 → adapta-5.3.3}/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
|