[query] Extend min and max to transaction refs #249

Open
opened 2020-08-06 16:57:20 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:57:20 +00:00 (Migrated from github.com)

It's principled that Mentat refuses to aggregate over general refs -- what meaning could sum(?e) have -- but not maximally helpful that I can't find the "latest" transaction ?tx directly. This ticket tracks trying to improve that, perhaps by adding latest and earliest synonyms for max, respectively min that apply just to transaction refs. Although I don't think we track whether a ref is a transaction ref throughout the query engine at this time, so it might be difficult to determine. But we have tx-before and tx-after, although I see no actual guarantee these aren't used for general refs.

It's principled that Mentat refuses to aggregate over general refs -- what meaning could `sum(?e)` have -- but not maximally helpful that I can't find the "latest" transaction `?tx` directly. This ticket tracks trying to improve that, perhaps by adding `latest` and `earliest` synonyms for `max`, respectively `min` that apply just to transaction refs. Although I don't think we track whether a ref is a transaction ref throughout the query engine at this time, so it might be difficult to determine. But we have `tx-before` and `tx-after`, although I see no actual guarantee these aren't used for general refs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#249
No description provided.