Skip to content

feat(adapters): declare type coercion capabilities - #780

Merged
cofin merged 7 commits into
mainfrom
flow/adapter-type-coercion-capabilities
Sep 13, 2026
Merged

cofin merged 7 commits into
mainfrom
flow/adapter-type-coercion-capabilities

Conversation

@cofin

@cofin cofin commented Sep 13, 2026

Copy link
Copy Markdown
Member

Adds immutable, compiled TypeCoercionCapabilities metadata to adapter configurations, exposing datetime binding, timestamp precision, JSON decoding, and UUID binding behavior through type_coercion_capabilities.

Declarations cover all 23 concrete configurations and account for adapter binding/decoding behavior, including native JSON decoding in psqlpy and BigQuery. Includes public exports, mypyc compilation, regression and roundtrip coverage, feature-comparison documentation, and v0.63.0 release notes.

Validation: make lint passed during review. Regression tests were added or updated, but no local test suite was run in this review. Hosted CI for the latest branch head is still pending.

@codecov-commenter

codecov-commenter commented Sep 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.79%. Comparing base (1e36450) to head (0fcf71a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #780      +/-   ##
==========================================
+ Coverage   77.49%   78.79%   +1.29%     
==========================================
  Files         489      490       +1     
  Lines       72169    72234      +65     
  Branches    10128    10127       -1     
==========================================
+ Hits        55930    56918     +988     
+ Misses      13050    11822    -1228     
- Partials     3189     3494     +305     
Flag Coverage Δ
integration 62.34% <88.46%> (+3.44%) ⬆️
py3.10 76.93% <100.00%> (+0.44%) ⬆️
py3.11 66.72% <100.00%> (+0.03%) ⬆️
py3.12 76.94% <100.00%> (+0.43%) ⬆️
py3.13 76.94% <100.00%> (+10.24%) ⬆️
py3.14 78.07% <100.00%> (+11.84%) ⬆️
unit 67.06% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sqlspec/adapters/adbc/config.py 93.29% <100.00%> (-0.49%) ⬇️
sqlspec/adapters/aiomysql/config.py 93.40% <100.00%> (+0.07%) ⬆️
sqlspec/adapters/aiosqlite/config.py 89.84% <100.00%> (+0.47%) ⬆️
sqlspec/adapters/arrow_odbc/config.py 84.39% <100.00%> (+0.94%) ⬆️
sqlspec/adapters/asyncmy/config.py 90.54% <100.00%> (+0.09%) ⬆️
sqlspec/adapters/asyncpg/config.py 93.60% <100.00%> (-2.61%) ⬇️
sqlspec/adapters/bigquery/config.py 88.00% <100.00%> (+0.16%) ⬆️
sqlspec/adapters/cockroach_asyncpg/config.py 91.86% <100.00%> (+0.09%) ⬆️
sqlspec/adapters/cockroach_psycopg/config.py 87.81% <100.00%> (+1.06%) ⬆️
sqlspec/adapters/duckdb/config.py 95.26% <100.00%> (+0.05%) ⬆️
... and 15 more

... and 63 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cofin cofin changed the title feat(adapters): declare TypeCoercionCapabilities across all adapters feat(adapters): declare type coercion capabilities Sep 13, 2026
@cofin
cofin force-pushed the flow/adapter-type-coercion-capabilities branch from eee5a21 to 0821622 Compare September 13, 2026 18:16
@cofin
cofin force-pushed the flow/adapter-type-coercion-capabilities branch from 6c55f23 to 0fcf71a Compare September 13, 2026 20:15
@cofin
cofin merged commit a5ab620 into main Sep 13, 2026
11 checks passed
@cofin
cofin deleted the flow/adapter-type-coercion-capabilities branch September 13, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants