Merge pull request #22117 from ucasFL/useless-code

remove useless code
This commit is contained in:
Alexander Kuzmenkov 2021-03-26 17:18:14 +03:00 committed by GitHub
commit a455762933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -551,11 +551,6 @@ QueryPlanPtr MergeTreeDataSelectExecutor::readFromParts(
.checksum_on_read = settings.checksum_on_read,
};
/// PREWHERE
String prewhere_column;
if (select.prewhere())
prewhere_column = select.prewhere()->getColumnName();
struct DataSkippingIndexAndCondition
{
MergeTreeIndexPtr index;