From 072a68f8ab9cd5c043cc147eef945791d686bf45 Mon Sep 17 00:00:00 2001 From: hexiaoting Date: Fri, 12 Mar 2021 16:08:16 +0800 Subject: [PATCH] Fix build error --- src/DataTypes/DataTypeLowCardinalityHelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataTypes/DataTypeLowCardinalityHelpers.cpp b/src/DataTypes/DataTypeLowCardinalityHelpers.cpp index 80d154b6234..41ba81814d0 100644 --- a/src/DataTypes/DataTypeLowCardinalityHelpers.cpp +++ b/src/DataTypes/DataTypeLowCardinalityHelpers.cpp @@ -87,7 +87,7 @@ ColumnPtr recursiveRemoveLowCardinality(const ColumnPtr & column) if (const auto * column_map = typeid_cast(column.get())) { - auto nested = column_map->getNestedColumnPtr(); + const auto & nested = column_map->getNestedColumnPtr(); auto nested_no_lc = recursiveRemoveLowCardinality(nested); if (nested.get() == nested_no_lc.get()) return column;