How to set jdbc/partitionColumn type to Date in spark 2.4.1

后端 未结 4 1929
清歌不尽
清歌不尽 2021-01-05 20:14

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\");         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 20:26

    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...

提交回复
热议问题