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

Add constant expression support to equivalence properties #9198

Merged
merged 4 commits into from
Feb 13, 2024
Merged

Add constant expression support to equivalence properties #9198

merged 4 commits into from
Feb 13, 2024

Conversation

mustafasrepo
Copy link
Contributor

Which issue does this PR close?

Closes #9177.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Yes

Are there any user-facing changes?

@github-actions github-actions bot added physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt) labels Feb 12, 2024
@@ -769,18 +769,18 @@ SortPreservingMergeExec: [m@0 ASC NULLS LAST,t@1 ASC NULLS LAST]
--SortExec: expr=[m@0 ASC NULLS LAST,t@1 ASC NULLS LAST]
----InterleaveExec
------ProjectionExec: expr=[Int64(0)@0 as m, t@1 as t]
--------AggregateExec: mode=FinalPartitioned, gby=[Int64(0)@0 as Int64(0), t@1 as t], aggr=[]
--------AggregateExec: mode=FinalPartitioned, gby=[Int64(0)@0 as Int64(0), t@1 as t], aggr=[], ordering_mode=PartiallySorted([0])
Copy link
Contributor Author

@mustafasrepo mustafasrepo Feb 12, 2024

Choose a reason for hiding this comment

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

In some tests, mode of the aggregateExec changes. Because now we can determine they contains ordered expressions (e.g constants are treated as if they are ordered).

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks good to me -- I reviewed the plan changes carefully and 👍

@alamb
Copy link
Contributor

alamb commented Feb 12, 2024

Thank you @mustafasrepo and @helgikrs

@mustafasrepo mustafasrepo merged commit f305a08 into apache:main Feb 13, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Window function with filter returns an error
3 participants