MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / toString

Function toString

src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:169–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167using RelativeSize = boost::rational<ASTSampleRatio::BigNum>;
168
169static std::string toString(const RelativeSize & x)
170{
171 return ASTSampleRatio::toString(x.numerator()) + "/" + ASTSampleRatio::toString(x.denominator());
172}
173
174/// Converts sample size to an approximate number of rows (ex. `SAMPLE 1000000`) to relative value (ex. `SAMPLE 0.1`).
175static RelativeSize convertAbsoluteSampleSizeToRelative(const ASTSampleRatio::Rational & ratio, size_t approx_total_rows)

Callers 1

getSamplingMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected