Initial commit

This commit is contained in:
Ari Brown 2023-07-27 13:46:44 -04:00
commit 0f033a54b7
4 changed files with 109 additions and 0 deletions

12
create_view.sql Normal file
View file

@ -0,0 +1,12 @@
-- auto-generated
CREATE EXTERNAL TABLE IF NOT EXISTS `trajectories`.`original_kitware`
LOCATION 's3://haystac-archive-phase1.trial1/ta1.kitware/ta1/simulation/train/'
TBLPROPERTIES ('table_type' = 'DELTA');
-- view to accomodate for the fact that Athena can't handle timezones
-- required in order to unload the data in any format that's not CSV
create or replace view trajectories.kitware AS
select
agent, from_unixtime(cast(to_unixtime(timestamp) AS bigint)) as timestamp, latitude, longitude
from "trajectories"."original_kitware"