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 Request: Typecasting in GROQ for String Comparison #120

Open
bytegun opened this issue Mar 12, 2024 · 0 comments
Open

Feature Request: Typecasting in GROQ for String Comparison #120

bytegun opened this issue Mar 12, 2024 · 0 comments

Comments

@bytegun
Copy link

bytegun commented Mar 12, 2024

Dear GROQ Development Team,

I'm writing to suggest a new feature for GROQ that would improve the handling of string comparisons, particularly when dealing with numeric-like strings.

Currently, I'm encountering difficulties when comparing strings that represent numbers. Since GROQ compares strings based on alphabetical order, it's challenging to accurately compare strings like "3500" and "500". This limitation makes it cumbersome to perform numeric comparisons within GROQ queries.

To address this issue, I propose the implementation of typecasting functionality in GROQ. With typecasting support, users would be able to explicitly convert string values to numeric types for comparison purposes. This would enable more accurate and intuitive comparisons, especially when dealing with numeric-like strings.

By introducing typecasting capabilities, GROQ would become more versatile and user-friendly, allowing developers to perform numeric comparisons with ease. This enhancement would greatly benefit users who frequently encounter scenarios where numeric-like strings need to be compared.

I believe that incorporating typecasting functionality into GROQ would enhance its capabilities and improve the overall developer experience. I hope you'll consider implementing this feature in future releases.

Thank you for considering my suggestion. I look forward to seeing further advancements in GROQ.

Sincerely

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