Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport to 37: fix NamedStructField should be rewritten in OperatorToFunction in subquery regression #10103

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 16, 2024

(note this targets branch-37, NOT main)

Which issue does this PR close?

Part of 37 maintenance release #9904

Rationale for this change

Backport fixes for regressions

What changes are included in this PR?

Backport #10032, fix for #10029 to branch-37

Note this was only the first commit (as the TreeNode improvements are not on 37.0.0)

Are these changes tested?

tests are included in backport

Are there any user-facing changes?

@github-actions github-actions bot added optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Apr 16, 2024
@alamb alamb marked this pull request as ready for review April 16, 2024 21:54
@alamb
Copy link
Contributor Author

alamb commented Apr 17, 2024

@andygrove do you happen to have time to review / approve this PR for the 37.1.0 release?

function_rewrites,
options,
)?);
Ok(subquery)
Copy link
Member

Choose a reason for hiding this comment

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

This change doesn't look like the same as the original PR, but looks reasonable.

Copy link
Contributor Author

@alamb alamb Apr 17, 2024

Choose a reason for hiding this comment

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

You are correct -- I should have pointed that out. The original PR uses the TreeNode API, but that TreeNode API is not available in 37.0.0 so I used an earlier commit from #10032 that did not use the tree node api (but has the same tests)

@alamb alamb merged commit 9974cee into apache:branch-37 Apr 17, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants