feat: add native metadata statistics#522
Open
cofin wants to merge 5 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #522 +/- ##
==========================================
+ Coverage 74.87% 74.94% +0.07%
==========================================
Files 441 441
Lines 55085 55349 +264
Branches 8689 8756 +67
==========================================
+ Hits 41245 41484 +239
- Misses 11156 11163 +7
- Partials 2684 2702 +18
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds ADBC and Arrow ODBC metadata coverage while keeping the SQLSpec central dialect data-dictionary SQL as the canonical fallback. ADBC native metadata is used as an overlay when driver output can be normalized to the existing public metadata types, and ADBC statistics remain adapter-local because there is no shared portable statistics contract.
Changes
TableStatisticsMetadataand exports it from the data dictionary package.GetObjects/GetTableSchemaas an optional native overlay for tables, columns, and foreign keys, with central dialect SQL fallback when native metadata is unsupported or incomplete.get_statistics()backed byGetStatistics, withOperationalErrorfor unsupported drivers.AdbcDataDictionaryso public data-dictionary methods appear before private implementation helpers.