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

Function toString

src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:147–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static std::string toString(const RelativeSize & x)
148{
149 return ASTSampleRatio::toString(x.numerator()) + "/" + ASTSampleRatio::toString(x.denominator());
150}
151
152/// Converts sample size to an approximate number of rows (ex. `SAMPLE 1000000`) to relative value (ex. `SAMPLE 0.1`).
153static RelativeSize convertAbsoluteSampleSizeToRelative(const ASTPtr & node, size_t approx_total_rows)

Callers 1

getSamplingMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected