Skip to content

(embulk-input-jdbc) - #4

Closed Answered by hiroyuki-sato
sureshkmr761 asked this question in User forum
Discussion options

You must be logged in to vote

Hello, @sureshkmr761.

If you use use_raw_query_with_incremental, you need to manage the last_record value by yourself (Outside of Embulk command).

Executing embulk run config -c last_record.yml merges two configuration data and execute the task.

You just update last_record.yaml using Workflow tools.

An alternative option use liquid template engine. (Please see, Using variables section)

config.yml

in:
  type: postgresql
  host: host
  password: password
  user: user
  database: embulk_test
  use_raw_query_with_incremental: true
  incremental: true
  incremental_columns:
  - bar_id
  query: |
   select
     id as bar_id,
     col_text,
     col_double,
     col_time
    from sample where id…

Replies: 3 comments

Comment options

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

You must be logged in to vote
0 replies
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
Labels
None yet
3 participants