Remove accident cerr

This commit is contained in:
alesapin 2019-10-21 17:00:18 +03:00
parent e4a936cf41
commit 17c2f301e2
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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);
} }