thomasrebele commented on PR #6225:
URL: https://github.com/apache/hive/pull/6225#issuecomment-3612108621
@zabetak, I had a quick try:
```
String input = "2012-12-21T10:05:03.123Z";
Instant instant = Instant.parse(input);
System.out.println("timestamp: " + instant.toEpochMilli());
```
gives `timestamp: 1356084303123`
However, `set hive.test.currenttimestamp=2012-12-21 10:05:03.123; SELECT
CURRENT_TIME_MILLIS();`
gives:
```
output:
+----------------+
| _c0 |
+----------------+
| 1764852051325 |
+----------------+
```
So somehow the `set hive.test.currenttimestamp` is ignored. Indeed,
`org.apache.hive.hplsql.functions.FunctionDatetime` uses
System.currentTimeMillis().
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]