Skip to main content
Solved

how to know what values are present in action for filed remover compoennet in SDK


ashok verma
Discovered Fame

in Control hub i will know what are values are present in action for Field Remover but in SDK how to know.

field_remover = pipeline_builder_14.add_stage('Field Remover')

for field_remover.action, what values are present how i will know through SDK

Thanks,

Ashok.

Best answer by dima

Click the double arrow icon next to any config in a dropdown and it’ll convert the configuration label to its underlying value. That’s what you can set via SDK (in this case “Remove Listed Fields” => “REMOVE”).

View original
Did this topic help you find an answer to your question?

3 replies

dima
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • 83 replies
  • Answer
  • January 6, 2022

Click the double arrow icon next to any config in a dropdown and it’ll convert the configuration label to its underlying value. That’s what you can set via SDK (in this case “Remove Listed Fields” => “REMOVE”).


ashok verma
Discovered Fame
  • Author
  • Discovered Fame
  • 13 replies
  • January 7, 2022

i would like to know form SDK directly not from UI.

for example where can i find mapping like “Remove Listed Fields” => “REMOVE” “Keep listed fields” => “KEEP”.

Either i have to guess or  give a trail/error based approach. Instead of this i need to know from SDK dierctly what are the appropriate values.


dima
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • 83 replies
  • January 7, 2022

You can't. The SDK is designed to supplement the typical UI-driven workflow, not to replace it entirely. 


Reply