Skip to content

Instantly share code, notes, and snippets.

@jingningzhang1
Last active June 23, 2022 23:52
Show Gist options
  • Save jingningzhang1/a993629b841ff3b5f97e124162fbaac8 to your computer and use it in GitHub Desktop.
Save jingningzhang1/a993629b841ff3b5f97e124162fbaac8 to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS plotly_iot_dashboard.bronze_sensors
(
Id BIGINT GENERATED BY DEFAULT AS IDENTITY,
device_id INT,
user_id INT,
calories_burnt DECIMAL(10,2),
miles_walked DECIMAL(10,2),
num_steps DECIMAL(10,2),
timestamp TIMESTAMP,
value STRING
)
USING DELTA
TBLPROPERTIES("delta.targetFileSize"="128mb")
--LOCATION s3://<path>/
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment