mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Minor: Comment reworded and style fixes
This commit is contained in:
parent
5fc89bce7c
commit
2cb3d37913
@ -823,11 +823,12 @@ public:
|
||||
type_res = std::make_shared<LeftDataType>(left.getPrecision(), left.getScale());
|
||||
else if constexpr (IsDataTypeDecimal<RightDataType>)
|
||||
type_res = std::make_shared<RightDataType>(right.getPrecision(), right.getScale());
|
||||
// Special case for DateTime: binary OPS should not looze the timezone of the result type,
|
||||
// but reuse timezone of DateTime argument.
|
||||
// NOTE: binary plus/minus are not allowed on DateTime64, and we are not handling it here.
|
||||
else if constexpr (std::is_same_v<ResultDataType, DataTypeDateTime>)
|
||||
{
|
||||
// Special case for DateTime: binary OPS should reuse timezone
|
||||
// of DateTime argument as timezeone of result type.
|
||||
// NOTE: binary plus/minus are not allowed on DateTime64, and we are not handling it here.
|
||||
|
||||
const TimezoneMixin * tz = nullptr;
|
||||
if constexpr (std::is_same_v<RightDataType, DataTypeDateTime>)
|
||||
tz = &right;
|
||||
|
@ -315,7 +315,7 @@ public:
|
||||
|
||||
const DateLUTImpl * time_zone_tmp = nullptr;
|
||||
if (std::is_same_v<DataType, DataTypeDateTime64> || std::is_same_v<DataType, DataTypeDateTime>)
|
||||
time_zone_tmp = &extractTimeZoneFromFunctionArguments(block, arguments, 3, 0);
|
||||
time_zone_tmp = &extractTimeZoneFromFunctionArguments(block, arguments, 3, 0);
|
||||
else
|
||||
time_zone_tmp = &DateLUT::instance();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user