1#pragma once
2
3#include <Parsers/IParserBase.h>
4
5
6namespace DB
7{
8
9/** Sampling factor of the form 0.1 or 1/10.
10 * It is parsed as a rational number without conversion to IEEE-754.
11 */
12class ParserSampleRatio : public IParserBase
13{
14protected:
15 const char * getName() const { return "Sample ratio or offset"; }
16 bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
17};
18
19}
20