| 145 | } |
| 146 | |
| 147 | static 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`). |
| 153 | static RelativeSize convertAbsoluteSampleSizeToRelative(const ASTPtr & node, size_t approx_total_rows) |