mirror of https://github.com/apache/druid.git
check for latest rewrite place
This commit is contained in:
parent
bd55afd407
commit
5cf1e2c1ca
|
@ -340,5 +340,14 @@ public class EarliestLatestAnySqlAggregator implements SqlAggregator
|
|||
Optionality.FORBIDDEN
|
||||
);
|
||||
}
|
||||
|
||||
public org.apache.calcite.sql.SqlNode rewriteCall(org.apache.calcite.sql.validate.SqlValidator validator, org.apache.calcite.sql.SqlCall call)
|
||||
{
|
||||
// I think the best chance would be to to try to rewrite it here
|
||||
// biggest question is kinda like which is the time column
|
||||
// look inside SqlCoalesceFunction for a sample how a rewrite is done around here
|
||||
return call;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -25,12 +25,15 @@ import org.apache.calcite.rex.RexBuilder;
|
|||
import org.apache.calcite.rex.RexLiteral;
|
||||
import org.apache.calcite.rex.RexNode;
|
||||
import org.apache.calcite.sql.SqlAggFunction;
|
||||
import org.apache.calcite.sql.SqlCall;
|
||||
import org.apache.calcite.sql.SqlFunctionCategory;
|
||||
import org.apache.calcite.sql.SqlKind;
|
||||
import org.apache.calcite.sql.SqlNode;
|
||||
import org.apache.calcite.sql.type.InferTypes;
|
||||
import org.apache.calcite.sql.type.OperandTypes;
|
||||
import org.apache.calcite.sql.type.SqlReturnTypeInference;
|
||||
import org.apache.calcite.sql.type.SqlTypeFamily;
|
||||
import org.apache.calcite.sql.validate.SqlValidator;
|
||||
import org.apache.calcite.util.Optionality;
|
||||
import org.apache.druid.java.util.common.IAE;
|
||||
import org.apache.druid.java.util.common.ISE;
|
||||
|
@ -204,5 +207,10 @@ public class EarliestLatestBySqlAggregator implements SqlAggregator
|
|||
Optionality.FORBIDDEN
|
||||
);
|
||||
}
|
||||
@Override
|
||||
public SqlNode rewriteCall(SqlValidator validator, SqlCall call)
|
||||
{
|
||||
return super.rewriteCall(validator, call);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue