top() in the middle of a KQL query #387
Unanswered
alightgoesout
asked this question in
Q&A
Replies: 1 comment 3 replies
-
If you look at the actual grammar on that branch, query-str := $bom? query
query := selector q-ws* "||" q-ws* query | selector
selector := filter q-ws* selector-operator q-ws* selector | filter
selector-operator := ">>" | ">" | "++" | "+"
filter := "top(" q-ws* ")" | matchers https://github.com/kdl-org/kdl/blob/kdl-v2/QUERY-SPEC.md#full-grammar Unless I'm misreading my own grammar/spec wrong. Maybe what's missing is mentioning this fact further up in the spec? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The KQL grammar (on the v2 branch) allows the
top()
filter in the middle of a query. What shoulda > top() > b
return ? I see several possibilities:top() > b
(after all, the spec says that top returns all toplevel children of the current document)a > b
(ignoretop()
, but that seems weird)Beta Was this translation helpful? Give feedback.
All reactions