Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9382

[Rust] [DataFusion] Can not group by boolean columns (add boolean to valid keys of groupBy)

    XMLWordPrintableJSON

Details

    Description

      Currently we do not support boolean columns on groupBy.

      Here is a reproducer:

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

      The expected result is

      1, false
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jorgecarleitao Jorge Leitão
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m