DataType interval is not supported - Spark SQL
问题 I am running a query on AWS EMR and the query errors out on this line - to_date('1970-01-01', 'YYYY-MM-DD') + CAST(concat(mycolumn, ' seconds') AS INTERVAL) AS date_col The error - DataType interval is not supported.(line 521, pos 82) Can someone help me with this? 回答1: I think Spark supports the interval key word. It would be used as: to_date('1970-01-01', 'YYYY-MM-DD') + mycolumn * interval '1 second' AS date_col 来源: https://stackoverflow.com/questions/59366658/datatype-interval-is-not