athenaで日付のフォーマットを指定
amazon web services - AWS Athena and date_format - Stack Overflow
athenaで日付のフォーマットを指定
Athenaのクエリでタイムスタンプを任意の書式の文字列に変換したいときに使う。date_format(MySQL方言の書式指定子)とformat_datetime(Joda-Time方言の書式指定子)の2通りで同じ結果が得られるかを比較している。2020年時点の情報。
解決
amazon web services - AWS Athena and date_format - Stack Overflow
select current_timestamp
,date_format (current_timestamp, '%Y_%m_%d')
,format_datetime (current_timestamp, 'y_M_d')