Fixed tests

This commit is contained in:
Maksim Kita 2021-06-18 12:05:21 +03:00
parent 008adabec2
commit 7b03150b90
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
action = "REPLACE"; action = "REPLACE";
/// Always DICTIONARY /// Always DICTIONARY
settings.ostr << (settings.hilite ? hilite_keyword : "") << action << "DICTIONARY " settings.ostr << (settings.hilite ? hilite_keyword : "") << action << " DICTIONARY "
<< (if_not_exists ? "IF NOT EXISTS " : "") << (settings.hilite ? hilite_none : "") << (if_not_exists ? "IF NOT EXISTS " : "") << (settings.hilite ? hilite_none : "")
<< (!database.empty() ? backQuoteIfNeed(database) + "." : "") << backQuoteIfNeed(table); << (!database.empty() ? backQuoteIfNeed(database) + "." : "") << backQuoteIfNeed(table);
if (uuid != UUIDHelpers::Nil) if (uuid != UUIDHelpers::Nil)

View File

@ -167,7 +167,7 @@ Pipe StorageDictionary::read(
const size_t max_block_size, const size_t max_block_size,
const unsigned /*threads*/) const unsigned /*threads*/)
{ {
auto dictionary = getContext()->getExternalDictionariesLoader().getDictionary(getStorageID().getInternalDictionaryName(), local_context); auto dictionary = getContext()->getExternalDictionariesLoader().getDictionary(dictionary_name, local_context);
auto stream = dictionary->getBlockInputStream(column_names, max_block_size); auto stream = dictionary->getBlockInputStream(column_names, max_block_size);
/// TODO: update dictionary interface for processors. /// TODO: update dictionary interface for processors.
return Pipe(std::make_shared<SourceFromInputStream>(stream)); return Pipe(std::make_shared<SourceFromInputStream>(stream));