-
Notifications
You must be signed in to change notification settings - Fork 637
pubsub/kvindexer:support for big numbers - v2 (backport #797) #840
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
Conversation
* Applied Michaels patch * Added corner case tests, failing curently * Support for big floats and ints added * Added new util file * Fixed linter error * added internal package * Revert "added internal package" This reverts commit ef7f2b4. * added internal/indexer * Moved utils to internal * Fixed linter * Updated docs * Applied @sergio-mena s PR comments * Fixed linter * Return with error in compare float * Changelog entries * Apply lasaroj's comments. Co-authored-by: Lasaro <lasaro@informal.systems> * applied some PR comments * updated docs Co-authored-by: Sergio Mena <sergio@informal.systems> * Added errors and logger * Fixed linter * Fixed sentence in comment * Removed changelog * Avoid converting to string when parsing int to float * Added unexpected types to error messages * Added comment on the 8atom regex in pubsub --------- Co-authored-by: Lasaro <lasaro@informal.systems> Co-authored-by: Sergio Mena <sergio@informal.systems> (cherry picked from commit f667d3f)
libs/pubsub/query/query.go
Outdated
// TODO(creachadair): The existing implementation allows anything number shaped | ||
// to be treated as a number. This preserves the parts of that behavior we had | ||
// tests for, but we should probably get rid of that. | ||
8000 | // We use this regex to support queries of the from "8atom", "6.5stake", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// We use this regex to support queries of the from "8atom", "6.5stake", | |
// We use this regex to support queries of the form "8atom", "6.5stake", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this behavior should be deprecated. If a unit must be specified, it should be in another field of the query.
in any case, the deprecation should happen in main, not here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss this when @jmalicevic is back.
Co-authored-by: Lasaro <lasaro@informal.systems>
This is an automatic backport of pull request #797 done by Mergify.
Mergify commands and options
More conditions and actions can be found in the documentation.
You can also trigger Mergify actions by commenting on this pull request:
@Mergifyio refresh
will re-evaluate the rules@Mergifyio rebase
will rebase this PR on its base branch@Mergifyio update
will merge the base branch into this PR@Mergifyio backport <destination>
will backport this PR on<destination>
branchAdditionally, on Mergify dashboard you can:
Finally, you can contact us on https://mergify.com