0
Ich versuche, das Datum auf nur den Tag mit Athena zu kürzen. Hier ist, was die Eingabe und select-Anweisung wie folgt aussehen: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 –