[FEAT MERGE] Functional_index
This commit is contained in:
@ -23,7 +23,7 @@ ObExprQuarter::ObExprQuarter(ObIAllocator& alloc)
|
||||
: ObFuncExprOperator(alloc,
|
||||
T_FUN_SYS_QUARTER,
|
||||
N_QUARTER,
|
||||
1, NOT_ROW_DIMENSION)
|
||||
1, NOT_VALID_FOR_GENERATED_COL, NOT_ROW_DIMENSION)
|
||||
{
|
||||
}
|
||||
ObExprQuarter::~ObExprQuarter(){}
|
||||
@ -97,5 +97,13 @@ int ObExprQuarter::calc_quater(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &expr
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObExprQuarter::is_valid_for_generated_column(const ObRawExpr*expr, const common::ObIArray<ObRawExpr *> &exprs, bool &is_valid) const {
|
||||
int ret = OB_SUCCESS;
|
||||
if (OB_FAIL(check_first_param_not_time(exprs, is_valid))) {
|
||||
LOG_WARN("fail to check if first param is time", K(ret), K(exprs));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // end namespace sql
|
||||
} // end namespace oceanbase
|
||||
|
||||
Reference in New Issue
Block a user