diff --git a/be/src/olap/rowset/beta_rowset.cpp b/be/src/olap/rowset/beta_rowset.cpp index d8ef290cdaed064..1329917a82e7e3f 100644 --- a/be/src/olap/rowset/beta_rowset.cpp +++ b/be/src/olap/rowset/beta_rowset.cpp @@ -71,7 +71,7 @@ Status BetaRowset::do_load(bool /*use_cache*/) { Status BetaRowset::load_segments(std::vector* segments) { auto fs = _rowset_meta->fs(); - if (!fs) { + if (!fs || _schema == nullptr) { return Status::OLAPInternalError(OLAP_ERR_INIT_FAILED); } for (int seg_id = 0; seg_id < num_segments(); ++seg_id) {