Skip to content

Delete by Embulk #5

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

You must be logged in to vote

embulk-output-redshift Configuration

before_load: if set, this SQL will be executed before loading all records. In truncate_insert mode, the SQL will be executed after truncating. replace mode doesn't support this option.
after_load: if set, this SQL will be executed after loading all records.

You can't use multiple after_load keys. Maybe, It works concat SQL statements with the ; sign.

after_load: |
  delete from rd_table where Id not in (select Id from pg_table);
  delete from rd_table where Id not in (select Id from pg_database.pg_table1)"

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@sureshkmr761
Comment options

@hiroyuki-sato
Comment options

@sureshkmr761
Comment options

@hiroyuki-sato
Comment options

Answer selected by dmikurube
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