fix: timestamp function can be null propagate

This commit is contained in:
PatZhuang 2024-09-29 19:15:42 +00:00 committed by ob-robot
parent 0731d2b929
commit 8480c382d6

View File

@ -2879,6 +2879,7 @@ inline bool is_valid_sys_func(const ObItemType type)
T_FUN_SYS_LEAST,
T_FUN_SYS_GREATEST,
T_FUN_SYS_CAST,
T_FUN_SYS_TIMESTAMP,
};
for (int64_t i = 0; !ret && i < sizeof(WHITE_LIST) / sizeof(ObItemType); ++i) {
ret = (type == WHITE_LIST[i]);