[英]Error encountered while configuring the stage: 'null' while running custom code in python transform, data fusion
I was trying to write a custom python code in the python transform plugin in data fusion.我试图在数据融合中的 python 转换插件中编写自定义 python 代码。 I tried to run the example code in the documentation and even created sample data to match the documentation.我尝试运行文档中的示例代码,甚至创建了示例数据以匹配文档。 The plugin seems to throw this error- Error encountered while configuring the stage: 'null'.该插件似乎抛出了这个错误 - 配置阶段时遇到的错误:'null'。 Is this a bug in the plugin?这是插件中的错误吗?
I have faced the same issue and solved我遇到了同样的问题并解决了
all you have to do is: select the function description and then click on shift + Tab
to make a back a little bit enter image description here您所要做的就是: select function 描述然后单击shift + Tab
稍微返回一点在此处输入图像描述
OR you can just remove the function description, and it will work fine.或者您可以删除 function 描述,它会正常工作。
also, make sure that the last line emitter.emit(record)
back a little bit, to be in the right space of function body另外,确保最后一行emitter.emit(record)
向后一点,在function body 的正确空间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.