fix new query range core in no work thread

This commit is contained in:
ChangerR 2024-12-18 01:45:22 +00:00 committed by ob-robot
parent b96c5c1b38
commit 4fe0b05c36

View File

@ -608,12 +608,14 @@ int ObPreRangeGraph::preliminary_extract_query_range(const ObIArray<ColumnItem>
const ColumnIdInfoMap *geo_column_id_map /* = NULL*/)
{
int ret = OB_SUCCESS;
ObRawExprFactory expr_factory(allocator_);
ObQueryRangeCtx ctx(exec_ctx);
if (OB_FAIL(fill_column_metas(range_columns))) {
if (OB_ISNULL(exec_ctx)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpeced null", K(ret), K(exec_ctx));
} else if (OB_FAIL(fill_column_metas(range_columns))) {
LOG_WARN("failed to fill column metas");
} else if (OB_FAIL(ctx.init(this, range_columns, expr_constraints,
params, &expr_factory,
params, exec_ctx->get_expr_factory(),
phy_rowid_for_table_loc, ignore_calc_failure, index_prefix,
geo_column_id_map))) {
LOG_WARN("failed to init query range context");