mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Remove accident cerr
This commit is contained in:
parent
e4a936cf41
commit
17c2f301e2
@ -361,9 +361,11 @@ void buildSourceConfiguration(AutoPtr<Document> doc, AutoPtr<Element> root, cons
|
|||||||
buildConfigurationFromFunctionWithKeyValueArguments(doc, source_element, source->elements->as<const ASTExpressionList>());
|
buildConfigurationFromFunctionWithKeyValueArguments(doc, source_element, source->elements->as<const ASTExpressionList>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Check all AST fields are filled, throws exception
|
||||||
|
* in other case
|
||||||
|
*/
|
||||||
void checkAST(const ASTCreateQuery & query)
|
void checkAST(const ASTCreateQuery & query)
|
||||||
{
|
{
|
||||||
std::cerr << queryToString(query) << std::endl;
|
|
||||||
if (!query.is_dictionary || query.dictionary == nullptr)
|
if (!query.is_dictionary || query.dictionary == nullptr)
|
||||||
throw Exception("Cannot convert dictionary to configuration from non-dictionary AST.", ErrorCodes::INCORRECT_DICTIONARY_DEFINITION);
|
throw Exception("Cannot convert dictionary to configuration from non-dictionary AST.", ErrorCodes::INCORRECT_DICTIONARY_DEFINITION);
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ using DictionaryConfigurationPtr = Poco::AutoPtr<Poco::Util::AbstractConfigurati
|
|||||||
|
|
||||||
/// Convert dictionary AST to Poco::AbstractConfiguration
|
/// Convert dictionary AST to Poco::AbstractConfiguration
|
||||||
/// This function is necessary because all loadable objects configuration are Poco::AbstractConfiguration
|
/// This function is necessary because all loadable objects configuration are Poco::AbstractConfiguration
|
||||||
|
/// Can throw exception if query is ill-formed
|
||||||
DictionaryConfigurationPtr getDictionaryConfigurationFromAST(const ASTCreateQuery & query);
|
DictionaryConfigurationPtr getDictionaryConfigurationFromAST(const ASTCreateQuery & query);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user