Ignore 'not null' of virtual table in optimizer
This commit is contained in:
parent
ccb1813be7
commit
6ad1d8c1c5
@ -2177,6 +2177,8 @@ int ObTransformUtils::is_column_expr_not_null(ObNotNullContext &ctx,
|
||||
OB_ISNULL(table = stmt->get_table_item_by_id(expr->get_table_id()))) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("table item is null", K(ret), K(expr->get_table_id()), K(*stmt));
|
||||
} else if (is_virtual_table(table->ref_id_)) {
|
||||
// 'NOT NULL' of the virtual table is unreliable
|
||||
} else if (ObOptimizerUtil::find_item(ctx.right_table_ids_, table->table_id_)) {
|
||||
// do nothing
|
||||
} else if (table->is_basic_table()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user