belugabehr commented on pull request #1728:
URL: https://github.com/apache/hive/pull/1728#issuecomment-738293741
@pvary Just so we are clear "now()" is not an SQL function. It's
implemented on this DBListener class:
```
private int now() {
long millis = System.currentTimeMillis();
millis /= 1000;
if (millis > Integer.MAX_VALUE) {
LOG.warn("We've passed max int value in seconds since the epoch, " +
"all notification times will be the same!");
return Integer.MAX_VALUE;
}
return (int)millis;
}
```
https://github.com/apache/hive/blob/master/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java#L941-L950
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]