Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven Lax committed Nov 19, 2019
1 parent 48bf173 commit 815529d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Inner withSchema(Schema inputSchema) {
FieldAggregation fieldAggregation = fieldAggregations.get(i);
SimpleFunction<Row, ?> extractFunction;
Coder extractOutputCoder;
if (fieldAggregation.unnestedInputSubSchema.getFieldCount() == 1) {
if (fieldAggregation.fieldsToAggregate.referencesSingleField()) {
extractFunction = new ExtractSingleFieldFunction(fieldAggregation);
extractOutputCoder =
SchemaCoder.coderForFieldType(
Expand Down

0 comments on commit 815529d

Please sign in to comment.