Skip to content

fix: stop using deprecated QueryResponse.row_count#158

Merged
zfarrell merged 1 commit into
mainfrom
fix/drop-deprecated-query-row-count
Jun 16, 2026
Merged

fix: stop using deprecated QueryResponse.row_count#158
zfarrell merged 1 commit into
mainfrom
fix/drop-deprecated-query-row-count

Conversation

@zfarrell

Copy link
Copy Markdown
Contributor

The inline query path read the deprecated SDK QueryResponse.row_count field; it now derives the displayed count from rows.len() (the rows actually rendered), which is correct whether the response is whole or a non-fetchable truncated preview. Other row_count usages (QueryRunInfo, /results list, load-table) are separate non-deprecated fields and unchanged.

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Correct fix. query_response_from_sdk only renders the rows it holds in both reachable cases (non-truncated full result, and truncated-without-result_id preview), so deriving the count from rows.len() matches what the user sees. Truncated-with-result_id follows to Arrow and never hits this path. Tests cover the branches.

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zfarrell zfarrell merged commit 75bc0ab into main Jun 16, 2026
14 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.

1 participant