Skip to content

Remove dependency on physical-optimizer on functions-aggregates - #14134

Merged
alamb merged 3 commits into
apache:mainfrom
alamb:alamb/remove_dependency
Jan 17, 2025
Merged

Remove dependency on physical-optimizer on functions-aggregates#14134
alamb merged 3 commits into
apache:mainfrom
alamb:alamb/remove_dependency

Conversation

@alamb

@alambalamb commented Jan 15, 2025

Copy link
Copy Markdown
Contributor

Draft it is based on #14083 from @mnpw

Which issue does this PR close?

This is a follow up to

Rationale for this change

We are trying to make sure datafusion-physical-optimizers are not dependent on the actual function implementations so ensuring the crate doesn't have dependency will let the compiler ensure this

What changes are included in this PR?

Remove the dependency

Are these changes tested?

Are there any user-facing changes?

@github-actionsgithub-actionsBot added logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate labels Jan 15, 2025
@alamb
alambforce-pushed the alamb/remove_dependency branch from c1ed7a0 to d2bab2bCompareJanuary 16, 2025 15:20
@github-actionsgithub-actionsBot removed the core Core DataFusion crate label Jan 16, 2025
@alamb
alamb marked this pull request as ready for review January 16, 2025 15:29

@jonahgaojonahgao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍

@alamb

Copy link
Copy Markdown
ContributorAuthor

Thank you for the review @jonahgao 🙏

@alamb
alamb merged commit 5d9be90 into apache:mainJan 17, 2025
Ok(DataType::Int64)
}

fn is_nullable(&self) -> bool {

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

BTW this makes the count function stub match the actual count function which is also not nullable

This was required to get the existing tests to pass

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-exprLogical plan and expressionsoptimizerOptimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@alamb@jonahgao