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

   ### 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
   
   I have a trace with several spans in the storage, the traceId is `123456789` 
and one of the serviceId is `djF8bW9ja19hX3NlcnZpY2V8bnMxfGMxfC0=.1`.
   When I use a single `traceId` or `serviceId` as the condition for querying, 
the result is correct. But if I use the `traceId` and `serviceId` at the same 
time, the `serviceId` does not work. The following query data includes a 
nonexistent serviceId `??`, but still can get the trace result with traceId 
`123456789`.
   
   ```
   groups: "trace"
   name: "segment"
   time_range {
     begin {
     }
     end {
       seconds: 9223372036
       nanos: 854000000
     }
   }
   limit: 20
   order_by {
     index_rule_name: "latency"
     sort: SORT_DESC
   }
   criteria {
     le {
       op: LOGICAL_OP_AND
       left {
         condition {
           name: "service_id"
           op: BINARY_OP_EQ
           value {
             str {
               value: "??"
             }
           }
           match_option {
           }
         }
       }
       right {
         le {
           op: LOGICAL_OP_AND
           left {
             condition {
               name: "trace_id"
               op: BINARY_OP_EQ
               value {
                 str {
                   value: "123456789"
                 }
               }
               match_option {
               }
             }
           }
         }
       }
     }
   }
   ```
   
   ### What you expected to happen
   
   The above query should not return any traces, because the service `??` does 
not exist.
   
   ### How to reproduce
   
   Use the above condition for querying.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### 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-unsubscr...@skywalking.apache.org.apache.org

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

Reply via email to