Commits


alamb authored and Andy Grove committed b1a30e6c039
ARROW-9653: [Rust][DataFusion] Do not error in planner with SQL has multiple group by expressions Fix a loop bound bug in aggregate expression handling, tests for same h2. Before this PR ``` CREATE EXTERNAL TABLE repro(a INT, b INT) STORED AS CSV WITH HEADER ROW LOCATION 'repro.csv'; 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")) ``` h2. After this PR: ``` CREATE EXTERNAL TABLE repro(a INT, b INT) STORED AS CSV WITH HEADER ROW LOCATION 'repro.csv'; > select sum(a), a, b from repro group by a, b; +--------+---+-----+ | sum(a) | a | b | +--------+---+-----+ | 2 | 2 | 100 | | 1 | 1 | 100 | | 2 | 2 | 200 | | 1 | 1 | 200 | | 2 | 2 | 300 | +--------+---+-----+ 5 row in set. Query took 0 seconds. ``` contents of `repro.csv` ``` a,b 1,100 1,200 2,100 2,200 2,300 ``` Closes #7924 from alamb/alamb/ARROW-9653-multicol-group-by Authored-by: alamb <andrew@nerdnetworks.org> Signed-off-by: Andy Grove <andygrove73@gmail.com>