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

Feature: allow inclusive range query (array as id) where you only have to specify first elements and succeeding with NONE #3737

Open
2 tasks done
Zercerium opened this issue Mar 20, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation feature New feature or request triage This issue is new

Comments

@Zercerium
Copy link

Zercerium commented Mar 20, 2024

Is your feature request related to a problem?

the query SELECT * FROM temp:['London',NONE]..=['London',NONE] currently returns nothing.

See also #3711

Describe the solution

It would be convenient if this query returns all entries where the first entry in the array is London.
You don't always know the max possible value which the second entry could be (or you have to query it first, but in this case you can directly use WHERE, performance wise I think) for example if it is a uuid or dates in the future, where you could only speculate the max value.

Alternative methods

select * from temp where id[0]="London"
this query works as intended but the mentioned method above would be a bit more convenient

SurrealDB version

surreal 1.3.0

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Zercerium Zercerium added feature New feature or request triage This issue is new labels Mar 20, 2024
@Zercerium Zercerium changed the title Feature: replace none in range syntax with max value if in second place Feature: allow inclusive range query (array as id) where you only have to specify first elements and succeeding with NONE Mar 24, 2024
@Dhghomon Dhghomon added bug Something isn't working documentation Improvements or additions to documentation feature New feature or request and removed feature New feature or request bug Something isn't working labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature New feature or request triage This issue is new
Projects
None yet
Development

No branches or pull requests

2 participants