You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was considering bringing PowerMock together with spark-fast-tests to provide the ability to verify column transformations involving the system clock (ex: current_timestamp()). This seems like a pretty common use case though, so I figured I'd check in with the community first.
Has anybody had any luck testing functionality that deals with the system clock, which to my understanding is sealed within the Apache Spark framework?
The text was updated successfully, but these errors were encountered:
I have had some success, but the comparison functions seem to want to convert Timestamps to local during comparison, so things can get odd. As far as spark is concerned, you can set the timezone that spark uses in the session, which helps with things like current_timestamp().
I was considering bringing PowerMock together with spark-fast-tests to provide the ability to verify column transformations involving the system clock (ex: current_timestamp()). This seems like a pretty common use case though, so I figured I'd check in with the community first.
Has anybody had any luck testing functionality that deals with the system clock, which to my understanding is sealed within the Apache Spark framework?
The text was updated successfully, but these errors were encountered: