FilterRowKind transform plugin

Description

Filter the data by RowKind

Options

name type required default value
include_kinds array yes
exclude_kinds array yes

include_kinds [array]

The row kinds to include

exclude_kinds [array]

The row kinds to exclude.

You can only config one of include_kinds and exclude_kinds.

common options [string]

Transform plugin common parameters, please refer to Transform Plugin for details

Examples

The RowKink of the data generate by FakeSource is INSERT, If we use FilterRowKink transform and exclude the INSERT data, we will write zero rows into sink.

  1. env {
  2. job.mode = "BATCH"
  3. }
  4. source {
  5. FakeSource {
  6. result_table_name = "fake"
  7. row.num = 100
  8. schema = {
  9. fields {
  10. id = "int"
  11. name = "string"
  12. age = "int"
  13. }
  14. }
  15. }
  16. }
  17. transform {
  18. FilterRowKind {
  19. source_table_name = "fake"
  20. result_table_name = "fake1"
  21. exclude_kinds = ["INSERT"]
  22. }
  23. }
  24. sink {
  25. Console {
  26. source_table_name = "fake1"
  27. }
  28. }