forked from bellwether/minerva
Initial commit
This commit is contained in:
commit
0f033a54b7
4 changed files with 109 additions and 0 deletions
12
create_view.sql
Normal file
12
create_view.sql
Normal 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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue