gpt4 book ai didi

java - 如何创建执行计划,其中导出的流和 siddhi 查询插入具有相同的名称?

转载 作者:行者123 更新时间:2023-12-01 18:17:59 25 4
gpt4 key购买 nike

我尝试使用此链接 Create execution Plan 中提供的示例创建计划但我收到以下错误。

Stream OutStats is already defined as StreamDefinition{streamId='OutStats', attributeList=[Attribute{name='meta_ip', type=STRING}, Attribute{name='userName', type=STRING}, Attribute{name='requestCount', type=LONG}]}, hence cannot define StreamDefinition{streamId='OutStats', attributeList=[Attribute{name='meta_ip', type=STRING}, Attribute{name='userName', type=STRING}, Attribute{name='searchKey', type=STRING}]}

如果我将查询的插入部分更改为其他名称,它可以正常工作,但我担心如果导出的流名称和插入不相同,可能会产生问题。在创建执行计划之前,我创建了 org.foo.data.search.stats 和 org.foo.data.out.stats。这是一个错误还是我做错了什么?他们自己的测试用例也给出了同样的错误。链接:EventFlowTestCase

最佳答案

在第一个流中,您有 Attribute{name='requestCount', type=LONG}并在第二个流中添加 Attribute{name='searchKey', type=STRING}。

您的情况中的此错误意味着“定义流中的第四个属性与输入/输出/其他等流中的第四个属性不同”。

请记住,名称、类型和顺序很重要。

关于java - 如何创建执行计划,其中导出的流和 siddhi 查询插入具有相同的名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28472776/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com