Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Aug 19, 2024
1 parent 835471a commit 574b08d
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,17 @@ public DatabendClient(BaseJdbcConfig config, ConnectionFactory connectionFactory
JdbcTypeHandle bigintTypeHandle = new JdbcTypeHandle(Types.BIGINT, Optional.of("bigint"), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
this.connectorExpressionRewriter = JdbcConnectorExpressionRewriterBuilder.newBuilder().addStandardRules(this::quoted).build();
this.jsonType = typeManager.getType(new TypeSignature(StandardTypes.JSON));
this.aggregateFunctionRewriter = new AggregateFunctionRewriter<>(this.connectorExpressionRewriter, ImmutableSet.<AggregateFunctionRule<JdbcExpression, ParameterizedExpression>>builder().add(new ImplementCountAll(bigintTypeHandle)).add(new ImplementCount(bigintTypeHandle)).add(new ImplementCountDistinct(bigintTypeHandle, false)).add(new ImplementMinMax(false)).add(new ImplementSum(DatabendClient::toTypeHandle)).add(new ImplementAvgFloatingPoint()).add(new ImplementAvgBigint()).add(new ImplementCorr()).add(new ImplementCovarianceSamp()).add(new ImplementCovariancePop()).build());
this.aggregateFunctionRewriter = new AggregateFunctionRewriter<>(this.connectorExpressionRewriter, ImmutableSet.<AggregateFunctionRule<JdbcExpression, ParameterizedExpression>>builder()
.add(new ImplementCountAll(bigintTypeHandle))
.add(new ImplementCount(bigintTypeHandle))
.add(new ImplementCountDistinct(bigintTypeHandle, false))
.add(new ImplementMinMax(false))
.add(new ImplementSum(DatabendClient::toTypeHandle))
.add(new ImplementAvgFloatingPoint())
.add(new ImplementAvgBigint())
.add(new ImplementCorr())
.add(new ImplementCovarianceSamp())
.add(new ImplementCovariancePop()).build());
}

@Override
Expand Down

0 comments on commit 574b08d

Please sign in to comment.