UBarney commented on issue #15734:
URL: https://github.com/apache/datafusion/issues/15734#issuecomment-2865471512
maybe it generate bad plan ? `AggregateExec.gby` should not be empty
```
> explain analyze select 'wat' as key, count(1) as count from (select * from
unnest(array[]::text[])) as b(field) group by key;
+-------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
| plan_type | plan
|
+-------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
| Plan with Metrics | ProjectionExec: expr=[wat as key, count(Int64(1))@0 as
count], metrics=[output_rows=1, elapsed_compute=1.112µs]
|
| | AggregateExec: mode=Final, gby=[],
aggr=[count(Int64(1))], metrics=[output_rows=1, elapsed_compute=4.163µs]
|
| | CoalescePartitionsExec, metrics=[output_rows=24,
elapsed_compute=10.677µs]
|
| | AggregateExec: mode=Partial, gby=[],
aggr=[count(Int64(1))], metrics=[output_rows=24, elapsed_compute=4.377µs]
|
| | RepartitionExec:
partitioning=RoundRobinBatch(24), input_partitions=1,
metrics=[fetch_time=18.502µs, repartition_time=1ns, send_time=24ns] |
| | ProjectionExec: expr=[],
metrics=[output_rows=0, elapsed_compute=1ns]
|
| | UnnestExec, metrics=[output_rows=0,
elapsed_compute=12.387µs, input_batches=1, input_rows=1, output_batches=0]
|
| | ProjectionExec: expr=[[] as
__unnest_placeholder(make_array())], metrics=[output_rows=1,
elapsed_compute=2.091µs] |
| | PlaceholderRowExec, metrics=[]
|
| |
|
+-------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.001 seconds.
```
--
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]