0
私はAthenaを使用して日付をちょうどその日に切り捨てようとしています。あなたは基礎となるPrestoDBエンジンからの日時関数を使用する必要があなたのタイムスタンプ列の日付を取得するにはAWS Athena date_Part
create table ...
usagestartdate timestamp,
usageneddate timestamp,
...
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = ',',
'field.delim' = ',',
"timestamp.formats" = "yyyy-MM-dd'T'HH:mm:ss.SSSSS'Z'")
LOCATION 's3:
then to get just the day
select...
resource string
day(usagestartdate)
sum(usagehours)
https://prestodb.io/docs/current/functions/datetime.html –