[CP] [UPGRADE] Fix oracle virtual index upgrade problem
This commit is contained in:
@ -23,7 +23,7 @@ int ObVirtualTableProjector::project_row(const ObIArray<Column> &columns, ObNewR
|
||||
if (columns.count() < 0) {
|
||||
ret = OB_INVALID_ARGUMENT;
|
||||
LOG_WARN("columns is empty", K(ret));
|
||||
} else if (output_column_ids_.count() != row.count_) {
|
||||
} else if (output_column_ids_.count() > row.count_) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("column num not match", KR(ret), K(row), K_(output_column_ids));
|
||||
} else if (OB_ISNULL(row.cells_) && row.count_ != 0) {
|
||||
@ -31,6 +31,7 @@ int ObVirtualTableProjector::project_row(const ObIArray<Column> &columns, ObNewR
|
||||
LOG_WARN("row count is not valid", KR(ret), K(row));
|
||||
} else if (OB_ISNULL(row.cells_)) {
|
||||
// just skip, won't project row
|
||||
// column not specified, eg: count(*)
|
||||
} else {
|
||||
int64_t cell_idx = 0;
|
||||
FOREACH_CNT_X(column_id, output_column_ids_, OB_SUCCESS == ret) {
|
||||
|
||||
Reference in New Issue
Block a user