You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/01/15 16:18:11 UTC

[PR] Remove dependency on physical-optimizer on functions-aggregates [datafusion]

alamb opened a new pull request, #14134:
URL: https://github.com/apache/datafusion/pull/14134

   Draft it is based on https://github.com/apache/datafusion/pull/14083 from @mnpw
   
   ## Which issue does this PR close?
   
   This is a follow up to 
   - https://github.com/apache/datafusion/pull/14083
   
   
   ## 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?
   
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   
   ## Are there any user-facing changes?
   
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please add the `api change` label.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] Remove dependency on physical-optimizer on functions-aggregates [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #14134:
URL: https://github.com/apache/datafusion/pull/14134


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] Remove dependency on physical-optimizer on functions-aggregates [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #14134:
URL: https://github.com/apache/datafusion/pull/14134#discussion_r1920255614


##########
datafusion/expr/src/test/function_stub.rs:
##########
@@ -252,6 +252,10 @@ impl AggregateUDFImpl for Count {
         Ok(DataType::Int64)
     }
 
+    fn is_nullable(&self) -> bool {

Review Comment:
   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



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] Remove dependency on physical-optimizer on functions-aggregates [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #14134:
URL: https://github.com/apache/datafusion/pull/14134#issuecomment-2598460363

   Thank you for the review @jonahgao  🙏 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org