-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement]optimize subfield expr evaluate when copy is no need #35585
Conversation
e8533e4
to
34f5ae1
Compare
Signed-off-by: zombee0 <ewang2027@gmail.com>
34f5ae1
to
edb572e
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs 0.0% Coverage The version of Java (11.0.21) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
[FE Incremental Coverage Report]✅ pass : 52 / 56 (92.86%) file detail
|
[BE Incremental Coverage Report]❌ fail : 5 / 7 (71.43%) file detail
|
for (int i = 0; i < projectMapValues.size(); i++) { | ||
ScalarOperator value = projectMapValues.get(i); | ||
// only deal with subfield expr of slotRef | ||
if (value instanceof SubfieldOperator && value.getChild(0) instanceof ColumnRefOperator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think don't need the condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is used to simplify the case
Why I'm doing:
subfield expr of struct evaluate cost a lot because of memory copy.
What I'm doing:
Don't copy when copy is no need for subfiled expr.
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: