Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New copy #2

Merged
merged 2 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tinybird/.tinyenv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# bump post to deploy to the current live Release, rollback to previous post version is not available
# bump patch or minor to deploy a new Release and auto-promote it to live. Add TB_AUTO_PROMOTE=0 to create the Release in preview status
# bump major to deploy a new Release in preview status
VERSION=0.0.1
VERSION=0.0.1-1



Expand Down
10 changes: 10 additions & 0 deletions tinybird/datasources/copy_untitled_pipe_7648.datasource
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SCHEMA >
`timestamp` DateTime,
`session_id` String,
`action` LowCardinality(String),
`version` LowCardinality(String),
`payload` String

ENGINE MergeTree
ENGINE_PARTITION_KEY toYear(timestamp)
ENGINE_SORTING_KEY timestamp, session_id, payload
9 changes: 9 additions & 0 deletions tinybird/pipes/untitled_pipe_7648.pipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
TOKEN "scheduled_copy_t_496e7bf6641e4f17a8979e17e4104290" READ

NODE untitled_pipe_7648_0
SQL >
SELECT * FROM analytics_events

TYPE COPY
TARGET_DATASOURCE copy_untitled_pipe_7648
COPY_SCHEDULE 1 1 1 1 1