Repository navigation
Document that BETWEEN only takes timestamps and integers - #642
Merged
Merged
Conversation
|
🚀 Build success! Latest successful preview: https://preview-642--questdb-documentation.netlify.app/docs/ Commit SHA: eb1ad88
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
BETWEENsections show only timestamp examples and never say the operator is limited to them, soprice BETWEEN 10 AND 100on a DOUBLE column looks valid but fails withthere is no matching operator `between` with the argument type: DOUBLE.What the server does
The only implementation is
BetweenTimestampFunctionFactory, with signaturebetween(NNN). Integer columns convert to timestamps implicitly, so they work; other types don't. Checked on QuestDB 10.2.0:BETWEEN 2 AND 5no matching operator `between` with the argument type: DOUBLEDECIMAL(10,2)VARCHARChanges
query/sql/where.md: after the timestamp examples, a note thatBETWEENis a timestamp operator that also accepts integer columns, plus a numeric range example using>=and<=.query/operators/date-time.md: the same rule in one sentence in theBETWEEN ... ANDintro.