You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "jayzhan211 (via GitHub)" <gi...@apache.org> on 2024/10/09 01:04:05 UTC

Re: [PR] Chore: Move `aggregate statistics` optimizer test from core to optimizer crate [datafusion]

jayzhan211 commented on code in PR #12783:
URL: https://github.com/apache/datafusion/pull/12783#discussion_r1792662810


##########
datafusion/physical-optimizer/Cargo.toml:
##########
@@ -32,9 +32,15 @@ rust-version = { workspace = true }
 workspace = true
 
 [dependencies]
+arrow = { workspace = true }
 arrow-schema = { workspace = true }
 datafusion-common = { workspace = true, default-features = true }
 datafusion-execution = { workspace = true }
+datafusion-expr-common = { workspace = true, default-features = true }
 datafusion-physical-expr = { workspace = true }
 datafusion-physical-plan = { workspace = true }
 itertools = { workspace = true }
+
+[dev-dependencies]
+datafusion-functions-aggregate = { workspace = true }

Review Comment:
   I think we can't use function that hasn't implement accumulator here, since it is optimizer related to physical plan.
   
   Error if I switch to stub
   ```
   test aggregate_statistics::tests::test_count_partial_with_nulls_indirect_child ... FAILED
   test aggregate_statistics::tests::test_count_partial_direct_child ... FAILED
   test aggregate_statistics::tests::test_count_partial_with_nulls_direct_child ... FAILED
   test aggregate_statistics::tests::test_count_partial_indirect_child ... FAILED
   test aggregate_statistics::tests::test_count_inexact_stat ... FAILED
   test aggregate_statistics::tests::test_count_with_nulls_inexact_stat ... FAILED
   
   successes:
   
   successes:
   
   failures:
   
   ---- aggregate_statistics::tests::test_count_partial_with_nulls_indirect_child stdout ----
   Error: NotImplemented("no impl for stub")
   
   ---- aggregate_statistics::tests::test_count_partial_direct_child stdout ----
   Error: NotImplemented("no impl for stub")
   
   ---- aggregate_statistics::tests::test_count_partial_with_nulls_direct_child stdout ----
   Error: NotImplemented("no impl for stub")
   
   ---- aggregate_statistics::tests::test_count_partial_indirect_child stdout ----
   Error: NotImplemented("no impl for stub")
   
   ---- aggregate_statistics::tests::test_count_inexact_stat stdout ----
   Error: NotImplemented("no impl for stub")
   
   ---- aggregate_statistics::tests::test_count_with_nulls_inexact_stat stdout ----
   Error: NotImplemented("no impl for stub")
   ```



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