confluent-sql 0.5.3__tar.gz → 0.5.4__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.3 → confluent_sql-0.5.4}/CHANGELOG.md +6 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/PKG-INFO +1 -1
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/pyproject.toml +1 -1
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/connection.py +3 -2
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_connection_unit.py +26 -20
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/uv.lock +1 -1
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/.github/CODEOWNERS +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/.gitignore +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/.semaphore/publish_to_pypi.yml +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/.semaphore/semaphore.yml +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/ARCHITECTURE.md +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/CLAUDE.md +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/DBAPI_EXTENSIONS.md +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/LICENSE.txt +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/Makefile +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/README.md +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/STREAMING.md +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/TYPES.md +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/examples/byoidc_bearer_token_example.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/examples/errors.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/examples/simple_append_only_streaming_query_example.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/examples/snapshot_mode_tuple_cursor_simple_example.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/examples/statement_properties_example.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/examples/tableflow_lifecycle_example.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/service.yml +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/__init__.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/__version__.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/auth.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/changelog_compressor.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/connectors.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/cursor.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/exceptions.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/execution_mode.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/polling.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/result_readers.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/retry.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/statement.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/statement_properties.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/tableflow.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/src/confluent_sql/types.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/__init__.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/conftest.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/integration/conftest.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/integration/test_connection.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/integration/test_connector.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/integration/test_cursor.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/integration/test_fetch.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/integration/test_tableflow.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/conftest.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_auth_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_changelog_compressor_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_changelog_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_connection_byoidc_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_connection_connector_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_connection_unit_properties.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_connectors_connection_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_connectors_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_cursor_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_execution_mode_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_polling_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_result_readers_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_retry_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_statement_properties_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_statement_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_tableflow_connection_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_tableflow_unit.py +0 -0
- {confluent_sql-0.5.3 → confluent_sql-0.5.4}/tests/unit/test_types_unit.py +0 -0
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this dbapi driver will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.5.4, 2026-09-08
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- `connect()` no longer raises `InterfaceError` when both `endpoint` and `cloud_provider`/`cloud_region` are provided. A provided `endpoint` simply makes `cloud_provider`/`cloud_region` unnecessary rather than actually conflicting with it, so this now logs a warning ("No need to provide cloud_provider or cloud_region when also providing endpoint. Only using endpoint.") and proceeds using `endpoint`. (#210)
|
|
10
|
+
|
|
5
11
|
## 0.5.3, 2026-08-27
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: confluent-sql
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
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
|
|
@@ -386,8 +386,9 @@ def connect( # noqa: PLR0913
|
|
|
386
386
|
|
|
387
387
|
if endpoint:
|
|
388
388
|
if cloud_provider or cloud_region:
|
|
389
|
-
|
|
390
|
-
"
|
|
389
|
+
logger.warning(
|
|
390
|
+
"No need to provide cloud_provider or cloud_region when also providing "
|
|
391
|
+
"endpoint. Only using endpoint."
|
|
391
392
|
)
|
|
392
393
|
else:
|
|
393
394
|
if not cloud_provider:
|
|
@@ -911,17 +911,14 @@ class TestConnectChecks:
|
|
|
911
911
|
== "https://custom.example.com/sql/v1/organizations/org-456/environments/env-123/"
|
|
912
912
|
)
|
|
913
913
|
|
|
914
|
-
def
|
|
915
|
-
self, connection_factory: ConnectionFactory
|
|
914
|
+
def test_endpoint_warns_when_cloud_provider_also_provided(
|
|
915
|
+
self, connection_factory: ConnectionFactory, caplog
|
|
916
916
|
):
|
|
917
|
-
"""
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
),
|
|
923
|
-
):
|
|
924
|
-
connection_factory(
|
|
917
|
+
"""Providing endpoint with cloud_provider is not an error (#210) -- endpoint wins and
|
|
918
|
+
we just warn, since a provided endpoint makes cloud_provider/cloud_region moot rather
|
|
919
|
+
than actually breaking anything."""
|
|
920
|
+
with caplog.at_level("WARNING", logger=connection_module_logger.name):
|
|
921
|
+
conn = connection_factory(
|
|
925
922
|
environment_id="env-123",
|
|
926
923
|
organization_id="org-456",
|
|
927
924
|
compute_pool_id="cp-789",
|
|
@@ -930,18 +927,21 @@ class TestConnectChecks:
|
|
|
930
927
|
endpoint="https://custom.example.com",
|
|
931
928
|
cloud_provider="aws",
|
|
932
929
|
)
|
|
930
|
+
assert "custom.example.com" in str(conn._get_flink_client().base_url)
|
|
931
|
+
assert any(
|
|
932
|
+
"No need to provide cloud_provider or cloud_region" in record.getMessage()
|
|
933
|
+
and record.levelname == "WARNING"
|
|
934
|
+
for record in caplog.records
|
|
935
|
+
)
|
|
933
936
|
|
|
934
|
-
def
|
|
935
|
-
self, connection_factory: ConnectionFactory
|
|
937
|
+
def test_endpoint_warns_when_cloud_region_also_provided(
|
|
938
|
+
self, connection_factory: ConnectionFactory, caplog
|
|
936
939
|
):
|
|
937
|
-
"""
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
),
|
|
943
|
-
):
|
|
944
|
-
connection_factory(
|
|
940
|
+
"""Providing endpoint with cloud_region is not an error (#210) -- endpoint wins and
|
|
941
|
+
we just warn, since a provided endpoint makes cloud_provider/cloud_region moot rather
|
|
942
|
+
than actually breaking anything."""
|
|
943
|
+
with caplog.at_level("WARNING", logger=connection_module_logger.name):
|
|
944
|
+
conn = connection_factory(
|
|
945
945
|
environment_id="env-123",
|
|
946
946
|
organization_id="org-456",
|
|
947
947
|
compute_pool_id="cp-789",
|
|
@@ -950,6 +950,12 @@ class TestConnectChecks:
|
|
|
950
950
|
endpoint="https://custom.example.com",
|
|
951
951
|
cloud_region="us-east-1",
|
|
952
952
|
)
|
|
953
|
+
assert "custom.example.com" in str(conn._get_flink_client().base_url)
|
|
954
|
+
assert any(
|
|
955
|
+
"No need to provide cloud_provider or cloud_region" in record.getMessage()
|
|
956
|
+
and record.levelname == "WARNING"
|
|
957
|
+
for record in caplog.records
|
|
958
|
+
)
|
|
953
959
|
|
|
954
960
|
|
|
955
961
|
@pytest.mark.unit
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.3 → confluent_sql-0.5.4}/examples/simple_append_only_streaming_query_example.py
RENAMED
|
File without changes
|
{confluent_sql-0.5.3 → confluent_sql-0.5.4}/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
|