Skip to content

Add constant expression support to equivalence properties - #9198

Merged
mustafasrepo merged 4 commits into
apache:mainfrom
synnada-ai:bug_fix/window_partition_by
Feb 13, 2024
Merged

mustafasrepo merged 4 commits into
apache:mainfrom
synnada-ai:bug_fix/window_partition_by

Conversation

@mustafasrepo

Copy link
Copy Markdown
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 Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt) labels Feb 12, 2024
Comment thread datafusion/physical-expr/src/equivalence/properties.rs
----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])

@mustafasrepo mustafasrepo Feb 12, 2024 •

Copy link
Copy Markdown
Contributor Author

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).

Comment thread datafusion/sqllogictest/test_files/window.slt

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

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 👍

Comment thread datafusion/sqllogictest/test_files/subquery.slt
@alamb

alamb commented Feb 12, 2024

Copy link
Copy Markdown
Contributor

Thank you @mustafasrepo and @helgikrs

@mustafasrepo
mustafasrepo merged commit f305a08 into apache:main Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates 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