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

feat: Move IfExpr to spark-expr crate #653

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

Part of #630

Rationale for this change

Move another Spark expr into the spark-expr crate

What changes are included in this PR?

  • Mostly just moving code around. No functional changes.
  • Created new datafusion-comet-utils crate

How are these changes tested?

Existing tests.

@andygrove andygrove changed the title feat: move-if-expr to spark-expr crate feat: Move IfExpr to spark-expr crate Jul 10, 2024
Comment on lines +159 to +166
/// Create an If expression
fn if_fn(
if_expr: Arc<dyn PhysicalExpr>,
true_expr: Arc<dyn PhysicalExpr>,
false_expr: Arc<dyn PhysicalExpr>,
) -> Result<Arc<dyn PhysicalExpr>> {
Ok(Arc::new(IfExpr::new(if_expr, true_expr, false_expr)))
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This function is only used in tests, so I moved it into the test module.


# datafusion-comet-utils

This crate provides utilities for use in the [Apache DataFusion Comet](https://github.com/apache/datafusion-comet/) project.
Copy link
Member

Choose a reason for hiding this comment

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

Will this be published?

@andygrove andygrove merged commit a6a45fc into apache:main Jul 11, 2024
73 checks passed
@andygrove andygrove deleted the move-if-expr branch July 11, 2024 11:40
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 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