I am trying to build a simple stream pipeline using file | script | file I choose python as scripting language How do I write long python scripts in the Data Flow UI ? The code that I want to execute by giving in the UI :
def input():
return "Pre" + payload;
def output():
return payload + "Post";
result = locals()[channel]()
What is the convention ?
I am getting TokenizationError:UnExpectedChar errors. If try to escape spacial characters I am getting splitter exceptions during the execution
See the Error and PipeLine On Data Flow UI Adding Python Script Here as it is