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

Dots in Field names: Sorting, allow optional use of new Path expression (with escapes) #1852

Open
tatu-at-datastax opened this issue Feb 7, 2025 · 0 comments

Comments

@tatu-at-datastax
Copy link
Contributor

(note: part of #1664; requires implementation of #1851 first. And finally, requires handler for path expressions (issue to be filed))
(note similar to #1850 but for Sorting)

Although Sorting does not (and cannot) make use of new Path expression at this point (might in future), it'd be good to allow use of such expressions from beginning.
So, for document like:

{
  "price.usd": 20
}

user could use either of following references for filtering:

"sort" : {"price.usd": 1}

"sort" : {"price&.usd": 1}

and they would work the same, sorting documents like shown above.

That is, use of escape-by-ampersand is allowed even if not really used or required at this point. This also does not mean that the un-escaped form would be deprecated.

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

No branches or pull requests

1 participant