| 3145 | } |
| 3146 | |
| 3147 | bool ReadFromMergeTree::isQueryWithSampling() const |
| 3148 | { |
| 3149 | if (context->getSettingsRef()[Setting::parallel_replicas_count] > 1 && data.supportsSampling()) |
| 3150 | return true; |
| 3151 | |
| 3152 | if (query_info.table_expression_modifiers) |
| 3153 | return query_info.table_expression_modifiers->getSampleSizeRatio() != std::nullopt; |
| 3154 | |
| 3155 | const auto & select = query_info.query->as<ASTSelectQuery &>(); |
| 3156 | return select.sampleSize() != nullptr; |
| 3157 | } |
| 3158 | |
| 3159 | Pipe ReadFromMergeTree::spreadMarkRanges( |
| 3160 | RangesInDataParts && parts_with_ranges, |
no test coverage detected