diff --git a/cpp-ch/local-engine/Operator/ExpandTransform.cpp b/cpp-ch/local-engine/Operator/ExpandTransform.cpp index 5100ad070638..29e254bc01a7 100644 --- a/cpp-ch/local-engine/Operator/ExpandTransform.cpp +++ b/cpp-ch/local-engine/Operator/ExpandTransform.cpp @@ -110,7 +110,7 @@ void ExpandTransform::work() if (kind == EXPAND_FIELD_KIND_SELECTION) { - auto index = field.get(); + auto index = field.safeGet(); const auto & input_column = input_columns[index]; DB::ColumnWithTypeAndName input_arg;