[BugFix] remove the annoying warning log of json (backport #63414) (#63458)

Co-authored-by: Murphy <96611012+murphyatwork@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2025-09-23 11:33:53 +00:00 committed by GitHub
parent 95f15ea692
commit ce2f48c0f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -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; }

View File

@ -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;
}