I am trying to select all record recorded at Sunday through SparkSQL. I have the following try but in vain.
SELECT * FROM mytable WHERE DATEPART(WEEKDAY, cre
This works for me:
spark.sql("select dayofweek(time) as dow from some_table")
Where time needs to be in date format
time