Skip to content

Commit

Permalink
documented new columns for metadata table in athena named query
Browse files Browse the repository at this point in the history
  • Loading branch information
johnweng001 committed Mar 8, 2024
1 parent 85fce37 commit ebf555e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/cloudformation/geocore-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Resources:
Database: !Ref GeoCoreDatabase
WorkGroup: !Ref GeoCoreAthenaWorkGroup
QueryString:
!Sub "CREATE EXTERNAL TABLE IF NOT EXISTS `metadata`(
!Sub "CREATE EXTERNAL TABLE `metadata`(
`features_type` string,
`features_geometry_type` string,
`features_geometry_coordinates` string,
Expand Down Expand Up @@ -509,16 +509,16 @@ Resources:
'transient_lastDdlTime'='1647981845',
'typeOfData'='file');

-- To add a new column(s) update below
-- To add a new column(s) update below and run each manually. This named query is for documentation purpose only.

ALTER EXTERNAL TABLE `metadata`
ADD COLUMN IF NOT EXISTS `features_popularity` int;
ADD COLUMN `features_popularity` int;

ALTER EXTERNAL TABLE `metadata`
ADD COLUMN IF NOT EXISTS `features_properties_eocollection` string;
ADD COLUMN `features_properties_eocollection` string;

ALTER EXTERNAL TABLE `metadata`
ADD COLUMN IF NOT EXISTS `features_properties_eofilters` string;
ADD COLUMN `features_properties_eofilters` string;
"
GeoCoreAthenaWorkGroup:
Expand Down

0 comments on commit ebf555e

Please sign in to comment.