Skip to content

What's the best way to implement Daily Snapshot using Sling? #346

Answered by flarco
karhendana asked this question in Q&A
Discussion options

You must be logged in to vote

You could also do this (should work with current version):

source: postgres
target: bigquery

streams:
  public.table:
    sql: "select *, current_date as snapshot_date from {stream_name}"
    object: public.test_snapshot
    mode: snapshot
    target_options:
      table_keys:
        partition: [snapshot_date]

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by karhendana
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants