andygrove opened a new issue, #817:
URL: https://github.com/apache/datafusion-comet/issues/817
### Describe the bug
I was attempting to run a microbenchmark with this sql extracted from TPC-DS
q39:
```sql
select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy
,stddev_samp(inv_quantity_on_hand) stdev,avg(inv_quantity_on_hand) mean
from inventory
,item
,warehouse
,date_dim
where inv_item_sk = i_item_sk
and inv_warehouse_sk = w_warehouse_sk
and inv_date_sk = d_date_sk
and d_year =2001
group by w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy;
```
I ran against sf=100 data and this caused a panic:
```
An exception occurred while executing the Java class. Job aborted due to
stage failure: Task 8 in stage 111.0 failed 1 times, most recent failure: Lost
task 8.0 in stage 111.0 (TID 740) (10.0.0.118 executor driver):
org.apache.comet.CometNativeException: EmitTo::First is not supported
[ERROR] at comet::errors::init::{{closure}}(__internal__:0)
[ERROR] at std::panicking::rust_panic_with_hook(__internal__:0)
[ERROR] at
std::panicking::begin_panic_handler::{{closure}}(__internal__:0)
[ERROR] at
std::sys_common::backtrace::__rust_end_short_backtrace(__internal__:0)
[ERROR] at rust_begin_unwind(__internal__:0)
[ERROR] at core::panicking::panic_fmt(__internal__:0)
[ERROR] at
<comet::execution::datafusion::expressions::avg::AvgGroupsAccumulator<T,F> as
datafusion_expr::groups_accumulator::GroupsAccumulator>::state(__internal__:0)
[ERROR] at
datafusion_physical_plan::aggregates::row_hash::GroupedHashAggregateStream::emit(__internal__:0)
[ERROR] at
<datafusion_physical_plan::aggregates::row_hash::GroupedHashAggregateStream as
futures_core::stream::Stream>::poll_next(__internal__:0)
```
### Steps to reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]