updated create_view

This commit is contained in:
Ari Brown 2023-07-27 13:58:17 -04:00
parent 9aae669ca2
commit 0205336c95

View file

@ -1,5 +1,5 @@
-- auto-generated -- auto-generated
CREATE EXTERNAL TABLE IF NOT EXISTS `trajectories`.`original_kitware` CREATE EXTERNAL TABLE IF NOT EXISTS `trajectories`.`kitware_original`
LOCATION 's3://haystac-archive-phase1.trial1/ta1.kitware/ta1/simulation/train/' LOCATION 's3://haystac-archive-phase1.trial1/ta1.kitware/ta1/simulation/train/'
TBLPROPERTIES ('table_type' = 'DELTA'); TBLPROPERTIES ('table_type' = 'DELTA');
@ -8,5 +8,5 @@ TBLPROPERTIES ('table_type' = 'DELTA');
create or replace view trajectories.kitware AS create or replace view trajectories.kitware AS
select select
agent, from_unixtime(cast(to_unixtime(timestamp) AS bigint)) as timestamp, latitude, longitude agent, from_unixtime(cast(to_unixtime(timestamp) AS bigint)) as timestamp, latitude, longitude
from "trajectories"."original_kitware" from "trajectories"."kitware_original"