Created
November 7, 2017 15:35
-
-
Save chaudum/0409973c09d5d8677865e3457f4e305f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE "mqtt"."raw" ( | |
"client_id" STRING, | |
"packet_id" INTEGER, | |
"topic" STRING, | |
"ts" TIMESTAMP, | |
"payload" OBJECT(ignored), | |
"day__generated" TIMESTAMP GENERATED ALWAYS AS date_trunc('day', ts) | |
) PARTITIONED BY ("day__generated"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment