Skip to content

fix: insert placeholder type inference showing wrong type when there is function wrapped placeholder (unknown type)#20744

Open
buraksenn wants to merge 1 commit intoapache:mainfrom
buraksenn:fix-placeholder-type-infernece-because-of-unknown-type
Open

fix: insert placeholder type inference showing wrong type when there is function wrapped placeholder (unknown type)#20744
buraksenn wants to merge 1 commit intoapache:mainfrom
buraksenn:fix-placeholder-type-infernece-because-of-unknown-type

Conversation

@buraksenn
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Please see #20544 for details. I wanted to open a PR to discuss if API change is ok for this fix

What changes are included in this PR?

This PR changes FieldRef to Option for placeholders and adds test case for this.

Are these changes tested?

Yes. Existing tests and added test case for the reproduced error

Are there any user-facing changes?

Yes. this changes prepare_param_data_types field and its callers to use Option wrapped FieldRef instead of FieldRef.

@github-actions github-actions bot added the sql SQL Planner label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

INSERT placeholder type inference corrupted when VALUES contains function-wrapped placeholders

1 participant