-
Notifications
You must be signed in to change notification settings - Fork 3.7k
branch-3.1: [Fix](function) Fix wrong decimal of unix_timestamp (#55013) #55962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
branch-3.1: [Fix](function) Fix wrong decimal of unix_timestamp (#55013) #55962
Conversation
when the input datetime has decimal part start with zero, the result was
wrong before. now fixed.
before:
```sql
mysql> select UNIX_TIMESTAMP('2015-11-13 10:20:19.012');
+-------------------------------------------+
| UNIX_TIMESTAMP('2015-11-13 10:20:19.012') |
+-------------------------------------------+
| 1447381219.120 |
+-------------------------------------------+
```
now:
```sql
mysql> select UNIX_TIMESTAMP('2015-11-13 10:20:19.012');
+-------------------------------------------+
| UNIX_TIMESTAMP('2015-11-13 10:20:19.012') |
+-------------------------------------------+
| 1447381219.012 |
+-------------------------------------------+
```
|
run buildall |
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
TPC-H: Total hot run time: 32525 ms |
TPC-DS: Total hot run time: 193347 ms |
ClickBench: Total hot run time: 29 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
pick #55013