aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/ParserSampleRatio.h
blob: b1888271d3a42d71c32d8da7914be1e086ce87d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <Parsers/IParserBase.h>


namespace DB
{

/** Sampling factor of the form 0.1 or 1/10.
  * It is parsed as a rational number without conversion to IEEE-754.
  */
class ParserSampleRatio : public IParserBase
{
protected:
    const char * getName() const override { return "Sample ratio or offset"; }
    bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};

}