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

[Rust][DataFusion] Multi-column Group by: Invalid Argument Error

    XMLWordPrintableJSON

Details

    Description

      Repro:

      CREATE EXTERNAL TABLE repro(a INT, b INT)
      STORED AS CSV
      WITH HEADER ROW
      LOCATION 'repro.csv';
      

      The contents of repro.csv are as follows (also attached):

      a,b
      1,100
      1,200
      2,100
      2,200
      2,300
      

      Then try to run the following query (to sum the values of a, grouped by b).

      select sum(a), a, b from repro group by a, b;
      

      Expected result: a table with three output columns: sum(a), a, and b

      Actual result: An arrow error

      
      > select sum(a), a, b from repro group by a, b;
      ArrowError(InvalidArgumentError("number of columns(4) must match number of fields(3) in schema"))
      
      

      Attachments

        1. repro.csv
          0.0 kB
          Andrew Lamb

        Issue Links

          Activity

            People

              alamb Andrew Lamb
              alamb Andrew Lamb
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 10m
                  1h 10m