Description
test("spark.sql.datetime.java8API.enabled=true") { withJdbcStatement() { st => st.execute("set spark.sql.datetime.java8API.enabled=true") val rs = st.executeQuery("select timestamp '2020-05-28 00:00:00'") rs.next() // scalastyle:off println(rs.getObject(1)) } }
fails with
HiveThriftBinaryServerSuite: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff] at java.sql.Timestamp.valueOf(Timestamp.java:204) at org.apache.hive.jdbc.HiveBaseResultSet.evaluate(HiveBaseResultSet.java:444) at org.apache.hive.jdbc.HiveBaseResultSet.getColumnValue(HiveBaseResultSet.java:424) at org.apache.hive.jdbc.HiveBaseResultSet.getObject(HiveBaseResultSet.java:464
It seems it might be needed in HiveResult.toHiveString?
cc maxgekk
Attachments
Issue Links
- causes
-
SPARK-32057 SparkExecuteStatementOperation does not set CANCELED state correctly
- Resolved
- links to