Skip to content

Conversation

emillynge
Copy link
Contributor

Thanks for contributing.

Description

A precondition was removed from tech.tablesaw.table.TableSliceGroup.aggregate(ListMultimap<String, AggregateFunction<?, ?>> functions) such that the method no longer throws an IllegalArgumentException when the table is empty.

This PR has also been discussed in #785

Testing

A unit test is included that makes sure that aggregations on an empty table can be done, that the resulting table is also empty and that the table has the expected number of columns.

See tech.tablesaw.table.TableSliceGroupTest.aggregateWithEmptyResult()

@benmccann benmccann merged commit 7337d26 into jtablesaw:master Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants