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

Can Seq Support Subquery? #2050

Open
dengyakui opened this issue Dec 25, 2023 · 1 comment
Open

Can Seq Support Subquery? #2050

dengyakui opened this issue Dec 25, 2023 · 1 comment

Comments

@dengyakui
Copy link

dengyakui commented Dec 25, 2023

Some times, I have some queries like below, but since the subquery feature was not supported by Seq yet, i can's do this query.
image

in the above query:

  1. filter the requestId by the reponse body's some status or message flag
{  "customResponseCode": 500 }
  1. select the payloads from request by above log's requestId

it was equalivelant to sql's in query, like:

select * from product 
where productId in 
(select productId from orders where blabla)
where blabla

and below pseudocode is just what I want to do:

// filter bad request ids
var requestIds = stream.where(l=>l.ReqeustPath='/api/xxx')
.GroupBy(l=>l.RequestId)
.Where(g=>g.any(l=>l.ResponseBody.SomeFlag=false))
.select (g=>g.Key)

// fetch payloads by request ids
var requestPayloads = stream.where(x=>x.RequestID in requestIds).Select( l=> l.Request.Body)
@nblumhardt
Copy link
Member

Thanks for reaching out. Right now, no, but this is definitely on our radar for a future milestone, we'll be reviewing our priorities early in the new year and will update this ticket with some more information then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants