[ 
https://issues.apache.org/jira/browse/ARROW-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Lamb updated ARROW-9382:
-------------------------------
    Description: 
Currently we do not support boolean columns on groupBy.

Here is a reproducer:

{code}
alamb@MacBook-Pro:~/Software/arrow/rust$ echo "false" > /tmp/foo.csv
alamb@MacBook-Pro:~/Software/arrow/rust$ cargo run --bin datafusion-cli
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/datafusion-cli`
> create external table test(c1 boolean) stored as CSV location '/tmp/foo.csv';
0 rows in set. Query took 0 seconds.
> select count(c1), c1 from test group by c1;
ArrowError(ExternalError(ExecutionError("Unsupported GROUP BY data type")))
{code}

The expected result is 
{code}
1, false
{code}

  was:Currently we do not support boolean columns on groupBy.


> [Rust] [DataFusion] Can not group by boolean columns (add  boolean to valid 
> keys of groupBy)
> --------------------------------------------------------------------------------------------
>
>                 Key: ARROW-9382
>                 URL: https://issues.apache.org/jira/browse/ARROW-9382
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust - DataFusion
>            Reporter: Jorge
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Currently we do not support boolean columns on groupBy.
> Here is a reproducer:
> {code}
> alamb@MacBook-Pro:~/Software/arrow/rust$ echo "false" > /tmp/foo.csv
> alamb@MacBook-Pro:~/Software/arrow/rust$ cargo run --bin datafusion-cli
>     Finished dev [unoptimized + debuginfo] target(s) in 0.14s
>      Running `target/debug/datafusion-cli`
> > create external table test(c1 boolean) stored as CSV location 
> > '/tmp/foo.csv';
> 0 rows in set. Query took 0 seconds.
> > select count(c1), c1 from test group by c1;
> ArrowError(ExternalError(ExecutionError("Unsupported GROUP BY data type")))
> {code}
> The expected result is 
> {code}
> 1, false
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to