I am trying to select the entire record recorded on Sunday through SparkSQL. I have the following attempt, but in vain.
SELECT * FROM mytable WHERE DATEPART(WEEKDAY, create_time) = 0 SELECT * FROM mytable WHERE strftime("%w", create_time) = 0
How to get day of the week in SparkSQL?
source share