Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

流计算创建的表标签丢失或者异常 #28796

Open
xshiyun opened this issue Nov 15, 2024 · 1 comment
Open

流计算创建的表标签丢失或者异常 #28796

xshiyun opened this issue Nov 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xshiyun
Copy link

xshiyun commented Nov 15, 2024

version:3.3.4.3 Community docker环境
SHOW TABLE TAGS,显示源表标签正常,流计算创建的表标签丢失或异常(标签字段对应错误)
image
下图流计算创建的表标签异常
image
标红的地方像是tag 写入对应错误了,这个里面client_id 标签丢失,child_id 标签异常,user_id 标签值是child_id的
流计算语句:
create stream cc_test_sock_minute into cc_test.device_sock_minute(record_time,spo2_avg,spo2_max,spo2_min,heartrate_avg,heartrate_max,heartrate_min,activity,device_id,heartrate_diff,wear) tags(client_id,child_id,user_id) subtable(concat('device_sock_minute_', lower(client_id))) as select _wstart , avg(case when spo2=0 then null else spo2 end) spo2_avg,max(case when spo2=0 then null else spo2 end) spo2_max,min(case when spo2=0 then null else spo2 end) spo2_min,avg(case when heartrate=0 then null else heartrate end) heartrate_avg,max(case when heartrate=0 then null else heartrate end) heartrate_max,min(case when heartrate=0 then null else heartrate end) heartrate_min,max(case when activity>1 then activity when spo2>0 or heartrate>0 then 1 else 0 end ) activity,last(device_id),spread(heartrate) heartrate_diff,max(wear) wear from cc_test.device_sock partition by client_id,child_id,user_id interval(1m)

新反馈:
image
如上图根据时间顺序创建的源表,流计算过程中使用的tag不是最后一条最新的,使用了第二张表的标签

@xshiyun xshiyun added the bug Something isn't working label Nov 15, 2024
@yu285 yu285 self-assigned this Nov 29, 2024
@yu285
Copy link
Contributor

yu285 commented Nov 29, 2024

收到,我们看下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants