[FEAT MERGE] [v4.2] add table generator and several random utility functions

This commit is contained in:
raywill
2023-04-13 08:22:22 +00:00
committed by ob-robot
parent 94159e6675
commit 27488211d2
34 changed files with 1659 additions and 79 deletions

View File

@ -3074,6 +3074,19 @@ int ObResolverUtils::check_partition_range_value_result_type(const ObPartitionFu
return ret;
}
bool ObResolverUtils::is_expr_can_be_used_in_table_function(const ObRawExpr &expr)
{
bool bret = false;
if (expr.get_result_type().is_ext()) {
// for UDF
bret = true;
} else if (T_FUN_SYS_GENERATOR == expr.get_expr_type()) {
// for generator(N) stream function
bret = true;
}
return bret;
}
int ObResolverUtils::check_partition_range_value_result_type(const ObPartitionFuncType part_func_type,
const ObExprResType &column_type,
const ObString &column_name,