Common parameters of sink connectors

name type required default value
source_table_name string no -
parallelism int no -

source_table_name [string]

When source_table_name is not specified, the current plug-in processes the data set dataset output by the previous plugin in the configuration file;

When source_table_name is specified, the current plug-in is processing the data set corresponding to this parameter.

parallelism [int]

When parallelism is not specified, the parallelism in env is used by default.

When parallelism is specified, it will override the parallelism in env.

Examples

  1. source {
  2. FakeSourceStream {
  3. parallelism = 2
  4. result_table_name = "fake"
  5. field_name = "name,age"
  6. }
  7. }
  8. transform {
  9. Filter {
  10. source_table_name = "fake"
  11. fields = [name]
  12. result_table_name = "fake_name"
  13. }
  14. Filter {
  15. source_table_name = "fake"
  16. fields = [age]
  17. result_table_name = "fake_age"
  18. }
  19. }
  20. sink {
  21. Console {
  22. source_table_name = "fake_name"
  23. }
  24. Console {
  25. source_table_name = "fake_age"
  26. }
  27. }

If the job only have one source and one(or zero) transform and one sink, You do not need to specify source_table_name and result_table_name for connector. If the number of any operator in source, transform and sink is greater than 1, you must specify the source_table_name and result_table_name for each connector in the job.