fix style

This commit is contained in:
Arthur Passos 2022-07-29 13:56:01 -03:00
parent 59fbd21024
commit f0f19874da
2 changed files with 3 additions and 3 deletions

View File

@ -286,7 +286,7 @@ ColumnPtr IExecutableFunction::executeWithoutSparseColumns(const ColumnsWithType
: res;
keys = keys->convertToFullColumnIfLowCardinality();
auto res_mut_dictionary = DataTypeLowCardinality::createColumnUnique(*res_low_cardinality_type->getDictionaryType());
ColumnPtr res_indexes = res_mut_dictionary->uniqueInsertRangeFrom(*keys, 0, keys->size());
ColumnUniquePtr res_dictionary = std::move(res_mut_dictionary);

View File

@ -17,10 +17,10 @@ def start_cluster():
def test_lc_of_string(start_cluster):
result = node.query("WITH ( SELECT toLowCardinality('a') ) AS bar SELECT bar")
assert result == 'a\n'
assert result == "a\n""
def test_lc_of_int(start_cluster):
result = node.query("WITH ( SELECT toLowCardinality(1) ) AS bar SELECT bar")
assert result == '1\n'
assert result == "1\n"