diff --git a/utils/funcexp/func_char_length.cpp b/utils/funcexp/func_char_length.cpp index 73f987f1b..22c576bc4 100644 --- a/utils/funcexp/func_char_length.cpp +++ b/utils/funcexp/func_char_length.cpp @@ -96,8 +96,7 @@ int64_t Func_char_length::getIntVal(rowgroup::Row& row, case execplan::CalpontSystemCatalog::DATETIME: { string date = dataconvert::DataConvert::datetimeToString(parm[0]->data()->getDatetimeIntVal(row, isNull)); - //adjust for microseconds not counted - return (int64_t)date.size() - 7; + return (int64_t)date.size(); } default: