aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Storages/SelectQueryInfo.cpp
blob: 665da7fee70a938cfdfdb195c311618a46633122 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <Storages/SelectQueryInfo.h>
#include <Parsers/ASTSelectQuery.h>

namespace DB
{

bool SelectQueryInfo::isFinal() const
{
    if (table_expression_modifiers)
        return table_expression_modifiers->hasFinal();

    const auto & select = query->as<ASTSelectQuery &>();
    return select.final();
}

}