Merge pull request #43076 from canhld94/ch_canh_minor

Better logging for mark range filtering on projection parts
This commit is contained in:
Antonio Andelic 2022-11-10 09:33:12 +01:00 committed by GitHub
commit 1954ff385d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1466,6 +1466,7 @@ MarkRanges MergeTreeDataSelectExecutor::markRangesFromPKRange(
}
size_t used_key_size = key_condition.getMaxKeyColumn() + 1;
const String & part_name = part->isProjectionPart() ? fmt::format("{}.{}", part->name, part->getParentPart()->name) : part->name;
std::function<void(size_t, size_t, FieldRef &)> create_field_ref;
/// If there are no monotonic functions, there is no need to save block reference.
@ -1578,7 +1579,7 @@ MarkRanges MergeTreeDataSelectExecutor::markRangesFromPKRange(
}
}
LOG_TRACE(log, "Used generic exclusion search over index for part {} with {} steps", part->name, steps);
LOG_TRACE(log, "Used generic exclusion search over index for part {} with {} steps", part_name, steps);
}
else
{
@ -1586,7 +1587,7 @@ MarkRanges MergeTreeDataSelectExecutor::markRangesFromPKRange(
/// we can use binary search algorithm to find the left and right endpoint key marks of such interval.
/// The returned value is the minimum range of marks, containing all keys for which KeyCondition holds
LOG_TRACE(log, "Running binary search on index range for part {} ({} marks)", part->name, marks_count);
LOG_TRACE(log, "Running binary search on index range for part {} ({} marks)", part_name, marks_count);
size_t steps = 0;