You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "tjzheng1002 (via GitHub)" <gi...@apache.org> on 2023/03/14 07:30:56 UTC

[GitHub] [skywalking] tjzheng1002 opened a new issue, #10535: [Bug] When i uses filter to build condition in oal, the filter expressions do not support linking by and, or

tjzheng1002 opened a new issue, #10535:
URL: https://github.com/apache/skywalking/issues/10535

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   OAP server (apache/skywalking)
   
   ### What happened
   
   When i uses filter to build condition in oal, the filter expressions does not support linking by and, or.The documentation says it supports it, but I've tried it.
   
   **The test oal:**
   `test_service_error_count = from(ServiceProblem.*).filter(type == ProblemType.ERROR and tag["org"] == "team").count();`
   ![image](https://user-images.githubusercontent.com/6240715/224925808-447ce4f8-f662-4d76-929c-f6ef28516eca.png)
   **The documentation:**
   ![image](https://user-images.githubusercontent.com/6240715/224926320-6236bb70-a58f-40bb-ad6b-2aef120974cc.png)
   
   But it can support like this:
   `test_service_error_count = from(ServiceProblem.*).filter(type == ProblemType.ERROR) .filter(tag["org"] == "team").count();`
   
   ### What you expected to happen
   
   Support and,or in oal.
   
   ### How to reproduce
   
   When i uses filter to build condition in oal, the filter expressions does not support linking by and, or.
   **The test oal:**
   `test_service_error_count = from(ServiceProblem.*).filter(type == ProblemType.ERROR and tag["org"] == "team").count();`
   ![image](https://user-images.githubusercontent.com/6240715/224925808-447ce4f8-f662-4d76-929c-f6ef28516eca.png)
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [skywalking] wu-sheng closed issue #10535: [Bug] When i uses filter to build condition in oal, the filter expressions do not support linking by and, or

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #10535: [Bug] When i uses filter to build condition in oal, the filter expressions do not support linking by and, or
URL: https://github.com/apache/skywalking/issues/10535


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org