private static class StandardConvertletTable.RegrCovarianceConvertlet extends java.lang.Object implements SqlRexConvertlet
COVAR_POP
, COVAR_SAMP
,
REGR_SXX
, REGR_SYY
windowed aggregate functions.Constructor and Description |
---|
RegrCovarianceConvertlet(SqlKind kind) |
Modifier and Type | Method and Description |
---|---|
RexNode |
convertCall(SqlRexContext cx,
SqlCall call) |
private SqlNode |
expandCovariance(SqlNode arg0Input,
SqlNode arg1Input,
SqlNode dependent,
RelDataType varType,
SqlRexContext cx,
boolean biased) |
private SqlNode |
expandRegrSzz(SqlNode arg1,
SqlNode arg2,
RelDataType avgType,
SqlRexContext cx,
boolean variance) |
private SqlNode |
getCastedSqlNode(SqlNode argInput,
RelDataType varType,
SqlParserPos pos,
RexNode argRex) |
private final SqlKind kind
RegrCovarianceConvertlet(SqlKind kind)
public RexNode convertCall(SqlRexContext cx, SqlCall call)
convertCall
in interface SqlRexConvertlet
private SqlNode expandRegrSzz(SqlNode arg1, SqlNode arg2, RelDataType avgType, SqlRexContext cx, boolean variance)
private SqlNode expandCovariance(SqlNode arg0Input, SqlNode arg1Input, SqlNode dependent, RelDataType varType, SqlRexContext cx, boolean biased)
private SqlNode getCastedSqlNode(SqlNode argInput, RelDataType varType, SqlParserPos pos, RexNode argRex)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.