Skip to content

Commit

Permalink
Relax ValueSources check in OrdinalsGroupingOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhatn committed Oct 10, 2023
1 parent 1ba7c09 commit 5231a0f
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ public OrdinalsGroupingOperator(
DriverContext driverContext
) {
Objects.requireNonNull(aggregatorFactories);
boolean bytesValues = sources.get(0).source() instanceof ValuesSource.Bytes;
for (int i = 1; i < sources.size(); i++) {
if (sources.get(i).source() instanceof ValuesSource.Bytes != bytesValues) {
throw new IllegalStateException("ValuesSources are mismatched");
}
}
this.sources = sources;
this.docChannel = docChannel;
this.groupingField = groupingField;
Expand Down

0 comments on commit 5231a0f

Please sign in to comment.