[feature-wip](datev2) Support to use datev2 as partition column (#11618)

This commit is contained in:
Gabriel
2022-08-12 11:54:01 +08:00
committed by GitHub
parent b36680796f
commit 7d97aa194b
16 changed files with 134 additions and 86 deletions

View File

@ -829,7 +829,7 @@ public class FunctionCallExpr extends Expr {
*/
public void analyzeImplForDefaultValue() throws AnalysisException {
fn = getBuiltinFunction(fnName.getFunction(), new Type[0], Function.CompareMode.IS_NONSTRICT_SUPERTYPE_OF);
type = fn.getReturnType();
type = ScalarType.getDefaultDateType(fn.getReturnType());
for (int i = 0; i < children.size(); ++i) {
if (getChild(i).getType().isNull()) {
uncheckedCastChild(Type.BOOLEAN, i);