Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zclllyybb committed Oct 11, 2023
1 parent 0cb1a4b commit 537e097
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion be/src/vec/runtime/vdatetime_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,12 @@ bool DateV2Value<T>::from_date_format_str(const char* format, int format_len, co
break;
// Micro second
case 'f':
tmp = val + min(6, val_end - val);
tmp = val;
// when there's still something to the end, fix the scale of ms.
while (tmp < val_end && isdigit(*tmp)) {
tmp++;
}

if (!str_to_int64(val, &tmp, &int_value)) {
return false;
}
Expand Down

0 comments on commit 537e097

Please sign in to comment.