Created
November 27, 2022 11:21
-
-
Save mshakhomirov/db9b4f874fab88c2ac33d73f679768a2 to your computer and use it in GitHub Desktop.
This file contains 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
config { | |
type: "operations", | |
hasOutput: true, | |
schema: "production", | |
disabled: false, | |
name: "reputation_data", | |
tags: ["reputation_data"], | |
description: "reputation_data pipeline real-time updates from events." | |
} | |
create table if not exists ${self()} ( | |
src string | |
) | |
PARTITION BY DATE(_PARTITIONTIME) | |
; | |
insert ${self()} (src) | |
-- insert production.reputation_data (src) | |
select | |
'{"user_id":1,"reputation_level":3.5,"updated_at":"1999-01-01 00:00:01 UTC"}' | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment