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
SPARK 1.5.0 has a date_format function that accepts a format as an argument. This format returns a name of a week day from a timestamp:
date_format
select date_format(my_timestamp, 'EEEE') from ....
Result: e.g. 'Tuesday'