Skip to content

Commit

Permalink
Remove unnecessary row expression to symbol expression translation
Browse files Browse the repository at this point in the history
  • Loading branch information
arhimondr committed Aug 30, 2019
1 parent 139e024 commit 88fe29d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
import java.util.Map;
import java.util.Optional;

import static com.facebook.presto.sql.relational.OriginalExpressionUtils.asSymbolReference;
import static com.facebook.presto.sql.relational.OriginalExpressionUtils.castToRowExpression;
import static java.util.Objects.requireNonNull;

public class StatisticAggregations
Expand Down Expand Up @@ -84,7 +82,7 @@ public Parts createPartialAggregations(PlanVariableAllocator variableAllocator,
originalAggregation.getCall().getDisplayName(),
functionHandle,
function.getFinalType(),
ImmutableList.of(castToRowExpression(asSymbolReference(partialVariable)))),
ImmutableList.of(partialVariable)),
Optional.empty(),
Optional.empty(),
false,
Expand Down

0 comments on commit 88fe29d

Please sign in to comment.