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

Function hasStreamingTableExpression

src/Client/ClientBase.cpp:193–204  ·  view source on GitHub ↗

Returns true if any `ASTTableExpression` in the query tree carries a `STREAM` modifier.

Source from the content-addressed store, hash-verified

191
192/// Returns true if any `ASTTableExpression` in the query tree carries a `STREAM` modifier.
193bool hasStreamingTableExpression(const DB::IAST & ast)
194{
195 if (const auto * table_expression = ast.as<DB::ASTTableExpression>())
196 if (table_expression->stream_settings)
197 return true;
198
199 for (const auto & child : ast.children)
200 if (hasStreamingTableExpression(*child))
201 return true;
202
203 return false;
204}
205
206void cleanupTempFile(const DB::ASTPtr & parsed_query, const String & tmp_file)
207{

Callers 1

initOutputFormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected