订阅流表时报错exception=Only a table can append to another table?是哪里出错了?

订阅流表时报错exception=Only a table can append to another table?是哪里出错了?


自定义的handler函数 ,然后订阅也报错 exception=FROM clause must return a table. 

attachments-2021-12-3ddrQmCe61bc12cc486e8.png

请先 登录 后评论

1 个回答

Yating Xie

subscribeTable加上参数 msgAsTable=true。

默认值是false,表示订阅的数据是由列组成的元组。你的两个报错都是这个原因

subscribeTable(tableName="trades1", actionName="tradesStats22", offset=0, handler=func, msgAsTable=true)
请先 登录 后评论