ClickHouse/src/Parsers/ParserSampleRatio.h

20 lines
404 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IParserBase.h>
namespace DB
{
2017-05-27 17:29:55 +00:00
/** 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;
};
}