Skip to content

Conversation

@LiBinfeng-01
Copy link
Contributor

when match do not contains slot reference it would throw an exception when translate to original planner expr.
this kind of message is not need to be recorded

@doris-robot
Copy link

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.

@LiBinfeng-01 LiBinfeng-01 force-pushed the fix_match_fold_const_be branch from bc547fc to fcc0921 Compare October 8, 2024 07:05
@LiBinfeng-01
Copy link
Contributor Author

run buildall

@LiBinfeng-01
Copy link
Contributor Author

run p0

@LiBinfeng-01
Copy link
Contributor Author

run cloud_p0

starocean999
starocean999 previously approved these changes Oct 10, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 10, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

} catch (Exception e) {
LOG.warn("expression {} translate to legacy expr failed. ", expr, e);
// match expression need to contain slotReference so it can not be folded pr:#39652
if (!(expr.containsType(Match.class))) {
Copy link
Contributor

@morrySnow morrySnow Oct 10, 2024

Choose a reason for hiding this comment

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

i think we should not do tranlate match at all? so we should add match into shouldSkipFold? because we need to fold its children

@LiBinfeng-01
Copy link
Contributor Author

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Oct 11, 2024
// This kind of function is often used to change the attributes of columns.
// Folding will make it impossible to construct columns such as nullable(1).
if (expr instanceof Nullable || expr instanceof NonNullable) {
if (expr.containsType(Nullable.class) || expr.containsType(NonNullable.class)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this will traverse expr tree too many times, could we only traverse once by expr.anyMatch(e -> shouldSkipFold(e)) ?

@LiBinfeng-01 LiBinfeng-01 force-pushed the fix_match_fold_const_be branch from 3c1ecaa to c1c12e9 Compare October 11, 2024 07:53
@LiBinfeng-01
Copy link
Contributor Author

run buildall

morrySnow
morrySnow previously approved these changes Oct 11, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 11, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Oct 14, 2024
@LiBinfeng-01
Copy link
Contributor Author

run buildall

@LiBinfeng-01
Copy link
Contributor Author

run p0

@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 15, 2024
@starocean999 starocean999 merged commit 0153d48 into apache:master Oct 15, 2024
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 17, 2024
…e#41546)

when match do not contains slot reference it would throw an exception
when translate to original planner expr.
this kind of message is not need to be recorded
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 17, 2024
…e#41546)

when match do not contains slot reference it would throw an exception
when translate to original planner expr.
this kind of message is not need to be recorded
924060929 pushed a commit that referenced this pull request Oct 18, 2024
…#41164)(#41331)(#41546) (#41838)

cherry-pick: #39723 #41164 #41331 #41546 because later problem is intro by prev one, so put them together
when using fold constant by be,
the return type of substring('123456',1, 3) would changed to be text, which we want it to be 3 remove windowframe in window expression to avoid folding constant on be
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 21, 2024
…e#41546)

when match do not contains slot reference it would throw an exception
when translate to original planner expr.
this kind of message is not need to be recorded
starocean999 pushed a commit that referenced this pull request Oct 22, 2024
… (#42205)

pick: #41546
when match do not contains slot reference it would throw an exception
when translate to original planner expr.
this kind of message is not need to be recorded

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.1.7-merged dev/3.0.3-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants