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

Function getCleanQueryAst

src/Interpreters/InsertDependenciesBuilder.cpp:1587–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1585
1586
1587static String getCleanQueryAst(const ASTPtr q, ContextPtr context)
1588{
1589 String res = q->formatWithSecretsOneLine();
1590 if (auto masker = SensitiveDataMasker::getInstance())
1591 masker->wipeSensitiveData(res);
1592
1593 res = res.substr(0, context->getSettingsRef()[Setting::log_queries_cut_to_length]);
1594
1595 return res;
1596}
1597
1598
1599void InsertDependenciesBuilder::logQueryView(StorageID view_id, std::exception_ptr exception, bool before_start) const

Callers 1

logQueryViewMethod · 0.85

Calls 2

wipeSensitiveDataMethod · 0.80

Tested by

no test coverage detected