[Fix](load) fix partiotion Null pointer exception (#22965)

This commit is contained in:
zzzxl
2023-08-17 14:09:47 +08:00
committed by GitHub
parent 41bce29ae3
commit 8b51da0523

View File

@ -1259,6 +1259,9 @@ Status VOlapTableSink::_single_partition_generate(RuntimeState* state, vectorize
}
break;
}
if (partition == nullptr) {
return Status::OK();
}
for (int j = 0; j < partition->indexes.size(); ++j) {
auto tid = partition->indexes[j].tablets[tablet_index];
auto it = _channels[j]->_channels_by_tablet.find(tid);