Co-authored-by: Murphy <96611012+murphyatwork@users.noreply.github.com>
This commit is contained in:
parent
95f15ea692
commit
ce2f48c0f8
|
|
@ -74,6 +74,8 @@ public:
|
|||
|
||||
bool is_index() const { return _type == TAccessPathType::type::INDEX; }
|
||||
|
||||
bool is_root() const { return _type == TAccessPathType::type::ROOT; }
|
||||
|
||||
bool is_from_predicate() const { return _from_predicate; }
|
||||
|
||||
bool is_extended() const { return _extended; }
|
||||
|
|
|
|||
|
|
@ -409,6 +409,10 @@ Status OlapChunkSource::_init_column_access_paths(Schema* schema) {
|
|||
} else {
|
||||
LOG(WARNING) << "failed to convert column access path: " << res.status();
|
||||
}
|
||||
} else if (path->is_root() && !path->children().empty()) {
|
||||
// Check if this is a ROOT path for JSON field that has been pruned
|
||||
// For JSON fields, the root column might be pruned but sub-paths are still needed
|
||||
VLOG_ROW << "Skipping pruned JSON root path: " << root;
|
||||
} else {
|
||||
LOG(WARNING) << "failed to find column in schema: " << root;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue