fix: unitest error
This commit is contained in:
parent
16ed3be979
commit
3e2de990d9
|
@ -3665,50 +3665,6 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
|
||||||
.estimateReturnRowsFunc = diffEstReturnRows,
|
.estimateReturnRowsFunc = diffEstReturnRows,
|
||||||
.processFuncByRow = diffFunctionByRow,
|
.processFuncByRow = diffFunctionByRow,
|
||||||
},
|
},
|
||||||
#if 0
|
|
||||||
{
|
|
||||||
.name = "forecast",
|
|
||||||
.type = FUNCTION_TYPE_FORECAST,
|
|
||||||
.classification = FUNC_MGT_TIMELINE_FUNC | FUNC_MGT_IMPLICIT_TS_FUNC |
|
|
||||||
FUNC_MGT_FORBID_STREAM_FUNC | FUNC_MGT_FORBID_SYSTABLE_FUNC | FUNC_MGT_KEEP_ORDER_FUNC | FUNC_MGT_PRIMARY_KEY_FUNC,
|
|
||||||
.translateFunc = translateForecast,
|
|
||||||
.getEnvFunc = getSelectivityFuncEnv,
|
|
||||||
.initFunc = functionSetup,
|
|
||||||
.processFunc = NULL,
|
|
||||||
.finalizeFunc = NULL,
|
|
||||||
.estimateReturnRowsFunc = forecastEstReturnRows,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.name = "_frowts",
|
|
||||||
.type = FUNCTION_TYPE_FORECAST_ROWTS,
|
|
||||||
.classification = FUNC_MGT_PSEUDO_COLUMN_FUNC | FUNC_MGT_FORECAST_PC_FUNC | FUNC_MGT_KEEP_ORDER_FUNC,
|
|
||||||
.translateFunc = translateTimePseudoColumn,
|
|
||||||
.getEnvFunc = getTimePseudoFuncEnv,
|
|
||||||
.initFunc = NULL,
|
|
||||||
.sprocessFunc = NULL,
|
|
||||||
.finalizeFunc = NULL
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.name = "_flow",
|
|
||||||
.type = FUNCTION_TYPE_FORECAST_LOW,
|
|
||||||
.classification = FUNC_MGT_PSEUDO_COLUMN_FUNC | FUNC_MGT_FORECAST_PC_FUNC | FUNC_MGT_KEEP_ORDER_FUNC,
|
|
||||||
.translateFunc = translateForecastConf,
|
|
||||||
.getEnvFunc = getForecastConfEnv,
|
|
||||||
.initFunc = NULL,
|
|
||||||
.sprocessFunc = NULL,
|
|
||||||
.finalizeFunc = NULL
|
|
||||||
},
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
.name = "_fhigh",
|
|
||||||
.type = FUNCTION_TYPE_FORECAST_HIGH,
|
|
||||||
.classification = FUNC_MGT_PSEUDO_COLUMN_FUNC | FUNC_MGT_FORECAST_PC_FUNC | FUNC_MGT_KEEP_ORDER_FUNC,
|
|
||||||
.translateFunc = translateForecastConf,
|
|
||||||
.getEnvFunc = getForecastConfEnv,
|
|
||||||
.initFunc = NULL,
|
|
||||||
.sprocessFunc = NULL,
|
|
||||||
.finalizeFunc = NULL
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
.name = "statecount",
|
.name = "statecount",
|
||||||
.type = FUNCTION_TYPE_STATE_COUNT,
|
.type = FUNCTION_TYPE_STATE_COUNT,
|
||||||
|
@ -4883,6 +4839,50 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
|
||||||
.sprocessFunc = randFunction,
|
.sprocessFunc = randFunction,
|
||||||
.finalizeFunc = NULL
|
.finalizeFunc = NULL
|
||||||
},
|
},
|
||||||
|
#if 0
|
||||||
|
{
|
||||||
|
.name = "forecast",
|
||||||
|
.type = FUNCTION_TYPE_FORECAST,
|
||||||
|
.classification = FUNC_MGT_TIMELINE_FUNC | FUNC_MGT_IMPLICIT_TS_FUNC |
|
||||||
|
FUNC_MGT_FORBID_STREAM_FUNC | FUNC_MGT_FORBID_SYSTABLE_FUNC | FUNC_MGT_KEEP_ORDER_FUNC | FUNC_MGT_PRIMARY_KEY_FUNC,
|
||||||
|
.translateFunc = translateForecast,
|
||||||
|
.getEnvFunc = getSelectivityFuncEnv,
|
||||||
|
.initFunc = functionSetup,
|
||||||
|
.processFunc = NULL,
|
||||||
|
.finalizeFunc = NULL,
|
||||||
|
.estimateReturnRowsFunc = forecastEstReturnRows,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.name = "_frowts",
|
||||||
|
.type = FUNCTION_TYPE_FORECAST_ROWTS,
|
||||||
|
.classification = FUNC_MGT_PSEUDO_COLUMN_FUNC | FUNC_MGT_FORECAST_PC_FUNC | FUNC_MGT_KEEP_ORDER_FUNC,
|
||||||
|
.translateFunc = translateTimePseudoColumn,
|
||||||
|
.getEnvFunc = getTimePseudoFuncEnv,
|
||||||
|
.initFunc = NULL,
|
||||||
|
.sprocessFunc = NULL,
|
||||||
|
.finalizeFunc = NULL
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.name = "_flow",
|
||||||
|
.type = FUNCTION_TYPE_FORECAST_LOW,
|
||||||
|
.classification = FUNC_MGT_PSEUDO_COLUMN_FUNC | FUNC_MGT_FORECAST_PC_FUNC | FUNC_MGT_KEEP_ORDER_FUNC,
|
||||||
|
.translateFunc = translateForecastConf,
|
||||||
|
.getEnvFunc = getForecastConfEnv,
|
||||||
|
.initFunc = NULL,
|
||||||
|
.sprocessFunc = NULL,
|
||||||
|
.finalizeFunc = NULL
|
||||||
|
},
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
.name = "_fhigh",
|
||||||
|
.type = FUNCTION_TYPE_FORECAST_HIGH,
|
||||||
|
.classification = FUNC_MGT_PSEUDO_COLUMN_FUNC | FUNC_MGT_FORECAST_PC_FUNC | FUNC_MGT_KEEP_ORDER_FUNC,
|
||||||
|
.translateFunc = translateForecastConf,
|
||||||
|
.getEnvFunc = getForecastConfEnv,
|
||||||
|
.initFunc = NULL,
|
||||||
|
.sprocessFunc = NULL,
|
||||||
|
.finalizeFunc = NULL
|
||||||
|
},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue