Java.sql for Spark: Examples using Dates, Times, etc

Last updated:
Table of Contents

WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.

Spark version 2.4.8 used

String to sql.Timestamp

Use Timestamp.valueOf("YYYY-MM-DD hh:mm:ss.fff")

time.Instant to sql.Timestamp

Use Timestamp.from(instantObject)

Dialogue & Discussion