[
https://issues.apache.org/jira/browse/DRILL-7773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167395#comment-17167395
]
ASF GitHub Bot commented on DRILL-7773:
---
oleg-zinovev opened a new pull request #2094:
URL: https://github.com/apache/drill/pull/2094
# [DRILL-7773](https://issues.apache.org/jira/browse/DRILL-7773): Incorrect
conversion result to TIME_EPOCH_BE
## Description
An error was made when converting to BIG ENGIAN.
First, the bytes of an integer were reversed, and only then the result was
extended to long.
Because of this, null zero at the beginning of long did not participate in
the reverse operation
## Testing
(Please describe how this PR has been tested.)
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org
> Incorrect conversion result to TIME_EPOCH_BE
>
>
> Key: DRILL-7773
> URL: https://issues.apache.org/jira/browse/DRILL-7773
> Project: Apache Drill
> Issue Type: Bug
>Affects Versions: 1.17.0
>Reporter: Oleg Zinoviev
>Priority: Major
>
> Run query:
> {code:sql}
> select cast(convert_from(convert_to('23:30:21', 'TIME_EPOCH_BE'),
> 'TIME_EPOCH_BE') as time) as t
> {code}
> Expected result:
> 23:30:21
> Actual result:
> 00:56:23.295
--
This message was sent by Atlassian Jira
(v8.3.4#803005)