Skip to content

Commit

Permalink
Generated GroupedAccumulatorStatee shouldn't implement GroupedAccumul…
Browse files Browse the repository at this point in the history
…ator

Generated class does not implement any methods defined in
GroupedAccumulator
  • Loading branch information
dain committed Dec 19, 2021
1 parent 3d5d23f commit 744ee5e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import io.trino.array.LongBigArray;
import io.trino.array.ObjectBigArray;
import io.trino.array.SliceBigArray;
import io.trino.operator.aggregation.GroupedAccumulator;
import io.trino.spi.block.Block;
import io.trino.spi.block.BlockBuilder;
import io.trino.spi.function.AccumulatorState;
Expand Down Expand Up @@ -524,8 +523,7 @@ private static <T> Class<? extends T> generateGroupedStateClass(Class<T> clazz,
a(PUBLIC, FINAL),
makeClassName("Grouped" + clazz.getSimpleName()),
type(AbstractGroupedAccumulatorState.class),
type(clazz),
type(GroupedAccumulator.class));
type(clazz));

FieldDefinition instanceSize = generateInstanceSize(definition);

Expand Down

0 comments on commit 744ee5e

Please sign in to comment.