DROP TABLE IF EXISTS ex_games; CREATE EXTERNAL TABLE IF NOT EXISTS ex_games (src TEXT) URL = 's3://firebolt-publishing-public/help_center_assets/firebolt_sample_dataset/' OBJECT_PATTERN = 'help_center_assets/firebolt_sample_dataset/games.json' TYPE = (JSON PARSE_AS_TEXT = TRUE); DROP TABLE IF EXISTS ex_levels; CREATE EXTERNAL TABLE IF NOT EXISTS ex_levels ( LevelID INTEGER, GameID INTEGER, Level INTEGER, Name TEXT, LevelType TEXT, NextLevel INTEGER NULL, MinPointsToPass INTEGER, MaxPoints INTEGER, NumberOfLaps INTEGER, MaxPlayers INTEGER, MinPlayers INTEGER, PointsPerLap REAL, MusicTrack TEXT, SceneDetails TEXT, MaxPlayTimeSeconds INTEGER, LevelIcon TEXT ) URL = 's3://firebolt-publishing-public/help_center_assets/firebolt_sample_dataset/' OBJECT_PATTERN = 'help_center_assets/firebolt_sample_dataset/levels.csv' TYPE = (CSV SKIP_HEADER_ROWS = 1); DROP TABLE IF EXISTS ex_players; CREATE EXTERNAL TABLE IF NOT EXISTS ex_players (src TEXT) URL = 's3://firebolt-publishing-public/help_center_assets/firebolt_sample_dataset/' OBJECT_PATTERN = 'help_center_assets/firebolt_sample_dataset/players.json' TYPE = (JSON PARSE_AS_TEXT = TRUE); DROP TABLE IF EXISTS ex_tournaments; CREATE EXTERNAL TABLE IF NOT EXISTS ex_tournaments ( TournamentID INTEGER, Name TEXT, GameID INTEGER, TotalPrizeDollars INTEGER, StartDateTime TIMESTAMP, EndDateTime TIMESTAMP, RulesDefinition TEXT ) URL = 's3://firebolt-publishing-public/help_center_assets/firebolt_sample_dataset/' OBJECT_PATTERN = 'help_center_assets/firebolt_sample_dataset/tournaments.csv' TYPE = (CSV SKIP_HEADER_ROWS = 1); DROP TABLE IF EXISTS ex_playstats; CREATE EXTERNAL TABLE IF NOT EXISTS ex_playstats ( "GameID" INTEGER, "PlayerID" INTEGER, "Timestamp" TIMESTAMP, "SelectedCar" TEXT, "CurrentLevel" INTEGER, "CurrentSpeed" REAL, "CurrentPlayTime" BIGINT, "CurrentScore" BIGINT, "Event" TEXT, "ErrorCode" TEXT ) URL = 's3://firebolt-publishing-public/help_center_assets/firebolt_sample_dataset/' OBJECT_PATTERN = 'help_center_assets/firebolt_sample_dataset/playstats/*.parquet' TYPE = (PARQUET); DROP TABLE IF EXISTS ex_rankings; CREATE EXTERNAL TABLE IF NOT EXISTS ex_rankings ( "GameID" INTEGER, "PlayerID" INTEGER, "MaxLevel" INTEGER, "TotalScore" BIGINT, "PlaceWon" INTEGER ) URL = 's3://firebolt-publishing-public/help_center_assets/firebolt_sample_dataset/' OBJECT_PATTERN = 'help_center_assets/firebolt_sample_dataset/rankings/*.parquet' TYPE = (PARQUET);