fix(table): method 'where' apply 2 times selection function
@@ -758,10 +758,7 @@ public class Table extends Relation implements Iterable<Row> {
}
public Table where(Function<Table, Selection> selection) {
- Table tempTable = where(selection.apply(this));
- Table newTable = tempTable.emptyCopy(tempTable.rowCount());
- Rows.copyRowsToTable(selection.apply(this), this, newTable);
- return newTable;
+ return where(selection.apply(this));
}
public Table dropWhere(Function<Table, Selection> selection) {
