Skip to content

Instantly share code, notes, and snippets.

@mshakhomirov
Created November 27, 2022 11:21
Show Gist options
  • Save mshakhomirov/db9b4f874fab88c2ac33d73f679768a2 to your computer and use it in GitHub Desktop.
Save mshakhomirov/db9b4f874fab88c2ac33d73f679768a2 to your computer and use it in GitHub Desktop.
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