I am trying to retrieve data from oracle using spark-sql-2.4.1 version. I tried to set the JdbcOptions as below :
.option(\"lowerBound\", \"31-MAR-02\");
The given parameters have type timestamp, but you're providing the only date. Timestamp has format as yyyy-mm-dd hh:mm:ss, so you need to provide your dates as 2002-03-31 00:00:00 and 2019-05-01 23:59:59 correspondingly...
yyyy-mm-dd hh:mm:ss
2002-03-31 00:00:00
2019-05-01 23:59:59