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

Method formatForErrorMessage

src/Analyzer/TableExpressionModifiers.cpp:82–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82String TableExpressionModifiers::formatForErrorMessage() const
83{
84 WriteBufferFromOwnString buffer;
85 if (has_final)
86 buffer << "FINAL";
87
88 if (sample_size_ratio)
89 {
90 if (has_final)
91 buffer << ' ';
92 buffer << "SAMPLE " << ASTSampleRatio::toString(*sample_size_ratio);
93 }
94
95 if (sample_offset_ratio)
96 {
97 if (has_final || sample_size_ratio)
98 buffer << ' ';
99 buffer << "OFFSET " << ASTSampleRatio::toString(*sample_offset_ratio);
100 }
101
102 if (stream_settings)
103 {
104 if (has_final || sample_size_ratio || sample_offset_ratio)
105 buffer << ' ';
106 buffer << "STREAM";
107 if (stream_settings->cursor_tree)
108 buffer << " CURSOR";
109 }
110
111 return buffer.str();
112}
113
114}

Calls 2

toStringFunction · 0.70
strMethod · 0.45

Tested by

no test coverage detected