Skip to content

[c++] Avoid redundant copies during row type resolution - #4246

Open
naivedogger wants to merge 1 commit into
apache:mainfrom
naivedogger:bugfix/issue-4239-borrow-row-resolution
Open

[c++] Avoid redundant copies during row type resolution#4246
naivedogger wants to merge 1 commit into
apache:mainfrom
naivedogger:bugfix/issue-4239-borrow-row-resolution

Conversation

@naivedogger

Copy link
Copy Markdown
Contributor

Summary

Test Plan

  • 4 regression tests passed.
  • Cargo formatting and Clippy checks passed.
  • Full Maven verification was blocked by an unrelated untracked file's license header.

🤖 AI-assisted changes - reviewed by human developer

Borrow unchanged STRING and BYTES values from the input row while preserving type conversions and validation. Add regression tests for borrowed storage, mixed conversions, nested rows, and invalid values.

Fixes apache#4239

@fresh-borzoni fresh-borzoni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@naivedogger LGTM overall 👍
One question for a follow-up: when no column actually needs converting, we still build a whole second row. Could we skip resolve_row_types entirely in that case, as #4239 also suggested?

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.

[c++] Avoid redundant STRING and BYTES copies during row type resolution

2 participants