Skip to content

Conversation

@sgrebnov
Copy link
Collaborator

@sgrebnov sgrebnov commented Nov 4, 2025

Summary

Update the query_arrow method in DuckDbConnection to use the provided projected_schema parameter instead of always fetching the schema manually from DuckDB.

This makes query logic more robust by using exact target schema and avoids schema mismatch errors.

Benefits

  • Prevents schema mismatches: Uses exact expected schema instead of inferred schema
  • Performance improvement: Eliminates unnecessary LIMIT 0 schema discovery query and avoids additional schema casts

@sgrebnov sgrebnov self-assigned this Nov 4, 2025
@sgrebnov sgrebnov marked this pull request as ready for review November 4, 2025 00:13
@sgrebnov sgrebnov marked this pull request as draft November 4, 2025 00:22
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