A potential bug in the future or is this the expected behavior? #1872
Replies: 1 comment 1 reply
-
Hi @muyangye, thanks for this great description of the bug you encountered! Do you think this could be the cause? Then we can create an issue and should be able to quickly solve the bug. If not, I'll try to reproduce the error in the next day or two :-) Thanks again for the great feedback! |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this is a bug or the expected behavior so I am not opening an issue but a discussion. Also, there's currently no processor that satisfies the "How to Reproduce" requirements. However, I still want to report it as users may modify processors on their own and encounter this.
What happened?
I modified the PropertyScope of BooleanOperatorProcessor from PropertyScope.NONE to PropertyScope.MEASUREMENT_PROPERTY:
So now b4, whose PropertyScope is PROPERTY_SCOPE.HEADER_PROPERTY, is not shown in the UI:
But its value is always true:
After I clicked SELECT ALL in the UI and connected to a DataLake, the result is:
Clearly this is not what I expected since the UI only shows b0, b1, and b2. However, it seems that the result takes into account of b4. As evident not only by the above picture but also my debug message that prints all input streams:
However, if I didn't click SELECT ALL but instead clicked b0, b1, and b2 one by one, the result becomes correct:
How to Reproduce?
Requirements:
Again, as far as I can tell, there's no processor that satisfies both 1 and 2. So I am wondering if the developer is expected to set PropertyScope to PropertyScope.NONE when the mapping is Nary. If not, I am pretty sure this will come up in the future when there is such a combination of PropertyMapping, PropertyScope, and input stream described above.
Are you willing to submit a PR?
If everyone thinks this is indeed a bug instead of the expected behavior, I will submit an issue and try to investigate the root cause.
Beta Was this translation helpful? Give feedback.
All reactions