Skip to content

[cherry-pick](branch-30) fix agg functions coredump when upgrade (#40438)(#40472)#40692

Merged
zhangstar333 merged 2 commits intoapache:branch-3.0from
zhangstar333:branch-3.0
Sep 12, 2024
Merged

[cherry-pick](branch-30) fix agg functions coredump when upgrade (#40438)(#40472)#40692
zhangstar333 merged 2 commits intoapache:branch-3.0from
zhangstar333:branch-3.0

Conversation

@zhangstar333
Copy link
Copy Markdown
Contributor

Proposed changes

cherry-pick from master #40438 #40472

…pache#40438)

## Proposed changes

```
            if (IAggregateFunction::version < AGG_FUNCTION_NULLABLE) {
                return make_nullable(Data::get_return_type());
            } else {
                return Data::get_return_type();
            }
```

before check two version , and then get return type,
but now in branch-21, the IAggregateFunction::version have update to 5,
and also AGG_FUNCTION_NEW=5
so the check will not get right return type.


<!--Describe your changes.-->
…40472)

## Proposed changes
before use check (IAggregateFunction::version < AGG_FUNCTION_NULLABLE)
and then choose the return type and insert method.

but the version maybe update in the same branch-version,and get wrong
type
so put those function to all of object class alone.
@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@zhangstar333 zhangstar333 merged commit 62d5022 into apache:branch-3.0 Sep 12, 2024
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.

2 participants