Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Storages/HivePartitioningUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <Formats/EscapingRuleUtils.h>
#include <Formats/FormatFactory.h>
#include <Processors/Chunk.h>
#include <DataTypes/IDataType.h>

namespace DB
{
Expand Down Expand Up @@ -85,7 +86,7 @@ NamesAndTypesList extractHivePartitionColumnsFromPath(
{
if (const auto type = tryInferDataTypeByEscapingRule(value, format_settings ? *format_settings : getFormatSettings(context), FormatSettings::EscapingRule::Raw))
{
if (type->canBeInsideLowCardinality())
if (type->canBeInsideLowCardinality() && isStringOrFixedString(type))
{
hive_partition_columns_to_read_from_file_path.emplace_back(key, std::make_shared<DataTypeLowCardinality>(type));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Elizabeth Delgado
Elizabeth Cross
42 2020-01-01
[1,2,3] 42.42
Array(Int64) LowCardinality(Float64)
Array(Int64) Float64
101
2071
2071
Expand Down
Loading