I am trying to use SPARK SQL for doing some aggregations on a data on CSV format. I am having confusion between dayofweek(timestamp_col) vs date_format(timestamp_col,\'w\').