Update Pipe.cpp

Add comment.
This commit is contained in:
Nikolai Kochetov 2021-04-20 16:53:28 +03:00 committed by GitHub
parent 03273cad9c
commit bc5b34fb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,6 +251,9 @@ static Pipes removeEmptyPipes(Pipes pipes)
return res;
}
/// Calculate comon header for pipes.
/// This function is needed only to remove ColumnConst from common header in case if some columns are const, and some not.
/// E.g. if the first header is `x, const y, const z` and the second is `const x, y, const z`, the common header will be `x, y, const z`.
static Block getCommonHeader(const Pipes & pipes)
{
Block res;