Github user marmbrus commented on the issue:
https://github.com/apache/spark/pull/15702
Not a dumb question! You can certainly use processing time if those are
the semantics you require. I do think there is a little bit of work we need to
do to ensure determinism for these functions. Specifically, `now()` in SQL is
supposed to return the moment query execution began. For streaming we'll need
to record this and make sure that we give the same time even in the case of
failures (based on the batch id with the current execution model).
Good point on the documentation. The thing you are missing is that it must
be used in a window function, which does require `TimestampType`. I can see
how to make this more clear.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]