Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Avogar committed Nov 16, 2023
1 parent 1f8df14 commit 3b6506d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formats/EscapingRuleUtils.cpp
Expand Up @@ -304,7 +304,7 @@ DataTypePtr tryInferDataTypeByEscapingRule(const String & field, const FormatSet
auto type = tryInferDataTypeForSingleField(data, format_settings);

/// If we couldn't infer any type or it's tuple in quotes or it's a number and csv.try_infer_numbers_from_strings = 0, we determine it as a string.
if (!type || isTuple(type) || (isNumber(type) && !format_settings.csv.try_infer_numbers_from_strings))
if (!type || isTuple(type) || (isNumber(removeNullable(type)) && !format_settings.csv.try_infer_numbers_from_strings))
return std::make_shared<DataTypeString>();

return type;
Expand Down

0 comments on commit 3b6506d

Please sign in to comment.