bazelbuild / bazelbuild/bazel

aquery doesn't work with set operations in query

Open
#17,546 2 comments 0 reactions 1 assignee Claimed by @joeleba View on GitHub
P2 team-Performance type: support / not a bug (process)
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

Say we have a dependency chain as `a -> b -> c -> d -> e`.

`bazel cquery deps(a)` returns `b, c, d, e`. `bazel aquery deps(a)` returns the actions created by `b, c, d, e`

Using [`intersect`](https://bazel.build/query/language#tokens), `bazel cquery 'deps(a) intersect deps(c)'` returns `d, e`. However, `bazel aquery 'deps(a) intersect deps(c)'` returns nothing.

I expect `bazel aquery 'deps(a) intersect deps(c)'` to return the actions created by `d, e`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.