gengliangwang commented on pull request #33258:
URL: https://github.com/apache/spark/pull/33258#issuecomment-877170212
I don't see much difference between the current implementation and
`RuntimeReplaceable` here.
Only 6 lines of code.
```
case class LocalTimestamp() extends CurrentTimestampLike {
override def dataType: DataType = TimestampNTZType
override def eval(input: InternalRow): Any = currentTimestampNTZ()
override def prettyName: String = "localtimestamp"
}
def currentTimestampNTZ(): Long = localDateTimeToMicros(LocalDateTime.now())
```
--
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]