Skip to content

Direct sql read#328

Merged
fcollman merged 12 commits intomasterfrom
direct_sql_read
Nov 2, 2025
Merged

Direct sql read#328
fcollman merged 12 commits intomasterfrom
direct_sql_read

Conversation

@fcollman
Copy link
Copy Markdown
Collaborator

This will be a major version bump which will enable by default using the materialization query parameter which will avoid mangling types.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 76.66667% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
caveclient/skeletonservice.py 33.33% 4 Missing ⚠️
caveclient/materializationengine.py 75.00% 2 Missing ⚠️
caveclient/base.py 66.66% 1 Missing ⚠️
Files with missing lines Coverage Δ
caveclient/l2cache.py 35.41% <ø> (ø)
caveclient/mytimer.py 81.81% <100.00%> (ø)
tests/test_materialization.py 95.08% <100.00%> (+0.16%) ⬆️
tests/test_skeletons.py 96.76% <100.00%> (ø)
caveclient/base.py 79.57% <66.66%> (+1.46%) ⬆️
caveclient/materializationengine.py 62.79% <75.00%> (+0.07%) ⬆️
caveclient/skeletonservice.py 81.45% <33.33%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fcollman fcollman requested a review from Copilot October 31, 2025 23:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a major version bump that enables direct SQL reading by default using the direct_sql_pandas materialization query parameter, which preserves data types better than the previous approach. This requires server version >= 5.13.0 and includes proper version checking with error messages for incompatible servers.

  • Adds direct_sql_pandas=True parameter to all materialization query methods by default
  • Implements server version constraint checking (>=5.13.0) with custom error messages
  • Updates test expectations to match new server version requirements

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
caveclient/materializationengine.py Adds direct SQL parameter to query methods and version constraints with error messaging
caveclient/base.py Extends version compatibility decorator to support custom error messages
tests/test_materialization.py Updates test expectations for new server version and adds compatibility error testing
tests/test_skeletons.py Minor code formatting improvements
caveclient/skeletonservice.py Code formatting improvements for error messages
caveclient/l2cache.py Fixes missing comma in list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fcollman fcollman merged commit fb2e6eb into master Nov 2, 2025
17 checks passed
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