Created
July 22, 2020 18:18
-
-
Save Nxtra/8a25a7bcb45c7636b23437a408bc1110 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 OR REPLACE STREAM "INCOMING_STREAM" ( | |
"uniqueId" INTEGER, | |
"speed" INTEGER, | |
"bezettingsgraad" INTEGER, | |
"recordTimestamp" TIMESTAMP); | |
CREATE OR REPLACE PUMP "INCOMING_STREAM_PUMP" AS | |
INSERT INTO "INCOMING_STREAM" | |
SELECT STREAM | |
"unieke_id", | |
"voertuigsnelheid_rekenkundig_klasse2", | |
"rekendata_bezettingsgraad", | |
TO_TIMESTAMP(CAST("tijd_waarneming" AS BIGINT) * 1000) AS "recordTimestamp" | |
FROM "SOURCE_SQL_STREAM_001"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment