confluent-sql 0.5.4__tar.gz → 0.5.5__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.
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/CHANGELOG.md +7 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/PKG-INFO +1 -1
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/pyproject.toml +1 -1
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/tableflow.py +7 -2
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_tableflow_unit.py +16 -4
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/uv.lock +1 -1
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/.github/CODEOWNERS +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/.gitignore +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/.semaphore/publish_to_pypi.yml +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/.semaphore/semaphore.yml +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/ARCHITECTURE.md +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/CLAUDE.md +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/DBAPI_EXTENSIONS.md +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/LICENSE.txt +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/Makefile +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/README.md +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/STREAMING.md +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/TYPES.md +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/byoidc_bearer_token_example.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/errors.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/simple_append_only_streaming_query_example.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/snapshot_mode_tuple_cursor_simple_example.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/statement_properties_example.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/tableflow_lifecycle_example.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/service.yml +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/__init__.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/__version__.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/auth.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/changelog_compressor.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/connection.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/connectors.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/cursor.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/exceptions.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/execution_mode.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/polling.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/result_readers.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/retry.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/statement.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/statement_properties.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/src/confluent_sql/types.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/__init__.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/conftest.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/integration/conftest.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/integration/test_connection.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/integration/test_connector.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/integration/test_cursor.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/integration/test_fetch.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/integration/test_tableflow.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/conftest.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_auth_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_changelog_compressor_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_changelog_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_connection_byoidc_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_connection_connector_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_connection_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_connection_unit_properties.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_connectors_connection_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_connectors_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_cursor_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_execution_mode_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_polling_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_result_readers_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_retry_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_statement_properties_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_statement_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_tableflow_connection_unit.py +0 -0
- {confluent_sql-0.5.4 → confluent_sql-0.5.5}/tests/unit/test_types_unit.py +0 -0
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this dbapi driver will be documented in this file.
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
## 0.5.5, 2026-09-09
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- Fix TableflowTopicConfig.to_spec() serialization of retention_ms/data_retention_ms -- must be strings, not ints.
|
|
11
|
+
|
|
5
12
|
## 0.5.4, 2026-09-08
|
|
6
13
|
|
|
7
14
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: confluent-sql
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.5
|
|
4
4
|
Summary: DB-API v2 compliant driver for Confluent Cloud Flink SQL
|
|
5
5
|
Project-URL: Repository, https://github.com/confluentinc/confluent-sql
|
|
6
6
|
Project-URL: Documentation, https://github.com/confluentinc/confluent-sql?tab=readme-ov-file#confluent-sql
|
|
@@ -224,11 +224,16 @@ class TableflowTopicConfig:
|
|
|
224
224
|
error_handling: TableflowErrorHandling | None = None
|
|
225
225
|
|
|
226
226
|
def to_spec(self) -> StrAnyDict:
|
|
227
|
+
"""Render to the wire `config` object.
|
|
228
|
+
|
|
229
|
+
`retention_ms`/`data_retention_ms` accept `int` here for caller convenience, but the API
|
|
230
|
+
schema types both as `string` (`format: int64`) on every request and response.
|
|
231
|
+
"""
|
|
227
232
|
spec: StrAnyDict = {}
|
|
228
233
|
if self.retention_ms is not None:
|
|
229
|
-
spec["retention_ms"] = self.retention_ms
|
|
234
|
+
spec["retention_ms"] = str(self.retention_ms)
|
|
230
235
|
if self.data_retention_ms is not None:
|
|
231
|
-
spec["data_retention_ms"] = self.data_retention_ms
|
|
236
|
+
spec["data_retention_ms"] = str(self.data_retention_ms)
|
|
232
237
|
if self.error_handling is not None:
|
|
233
238
|
spec["error_handling"] = self.error_handling.to_spec()
|
|
234
239
|
return spec
|
|
@@ -187,14 +187,26 @@ class TestTableflowTopicConfig:
|
|
|
187
187
|
assert TableflowTopicConfig().to_spec() == {}
|
|
188
188
|
|
|
189
189
|
def test_retention_only(self) -> None:
|
|
190
|
-
|
|
190
|
+
# int in, str out: the API schema types retention_ms as string (int64, string-encoded
|
|
191
|
+
# to dodge JS/IEEE-754 double precision loss) on every request, even when this dataclass
|
|
192
|
+
# is constructed with a plain int for caller convenience -- confirmed against the live
|
|
193
|
+
# API, which rejects a non-string value outright.
|
|
194
|
+
assert TableflowTopicConfig(retention_ms=604800000).to_spec() == {
|
|
191
195
|
"retention_ms": "604800000"
|
|
192
196
|
}
|
|
193
197
|
|
|
198
|
+
def test_data_retention_only(self) -> None:
|
|
199
|
+
# Same string-encoded int64 wire format as retention_ms (see test_retention_only),
|
|
200
|
+
# applied independently here since data_retention_ms has its own coercion branch
|
|
201
|
+
# in to_spec().
|
|
202
|
+
assert TableflowTopicConfig(data_retention_ms=2592000000).to_spec() == {
|
|
203
|
+
"data_retention_ms": "2592000000"
|
|
204
|
+
}
|
|
205
|
+
|
|
194
206
|
def test_all_fields(self) -> None:
|
|
195
207
|
config = TableflowTopicConfig(
|
|
196
|
-
retention_ms=
|
|
197
|
-
data_retention_ms=
|
|
208
|
+
retention_ms=604800000,
|
|
209
|
+
data_retention_ms=2592000000,
|
|
198
210
|
error_handling=TableflowErrorHandlingLog(target="dlq"),
|
|
199
211
|
)
|
|
200
212
|
assert config.to_spec() == {
|
|
@@ -231,7 +243,7 @@ class TestBuildCreatePayload:
|
|
|
231
243
|
table_name="orders",
|
|
232
244
|
table_formats=["ICEBERG", "DELTA"],
|
|
233
245
|
storage=ManagedStorage(),
|
|
234
|
-
config=TableflowTopicConfig(retention_ms=
|
|
246
|
+
config=TableflowTopicConfig(retention_ms=604800000),
|
|
235
247
|
environment_id="env-1",
|
|
236
248
|
kafka_cluster_id="lkc-1",
|
|
237
249
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/simple_append_only_streaming_query_example.py
RENAMED
|
File without changes
|
{confluent_sql-0.5.4 → confluent_sql-0.5.5}/examples/snapshot_mode_tuple_cursor_simple_example.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|