Skip to content

Commit

Permalink
Update the VPC table creation query
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Sep 27, 2024
1 parent 5ae1889 commit 9847621
Showing 1 changed file with 9 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
CREATE EXTERNAL TABLE IF NOT EXISTS {table_name} (
version int,
account_id string,
interface_id string,
srcaddr string,
dstaddr string,
srcport int,
dstport int,
accountId string,
interfaceId string,
srcAddr string,
dstAddr string,
srcPort int,
dstPort int,
protocol bigint,
packets bigint,
bytes bigint,
start bigint,
`end` bigint,
action string,
log_status string,
vpc_id string,
subnet_id string,
instance_id string,
tcp_flags int,
type string,
pkt_srcaddr string,
pkt_dstaddr string,
region string,
az_id string,
sublocation_type string,
sublocation_id string,
pkt_src_aws_service string,
pkt_dst_aws_service string,
flow_direction string,
traffic_path int
logStatus string
)
USING parquet
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ' '
OPTIONS (
recursiveFileLookup='true'
)
Expand Down

0 comments on commit 9847621

Please sign in to comment.