We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
explain
At present, the range representation is a little confusing:
TiDB(root@127.0.0.1:test) > explain select * from t use index(idx); +-------------------+-------+------+---------------------------------------------------------------------+ | id | count | task | operator info | +-------------------+-------+------+---------------------------------------------------------------------+ | IndexReader_5 | 2.00 | root | index:IndexScan_4 | | └─IndexScan_4 | 2.00 | cop | table:t, index:a, range:[NULL,+inf], keep order:false, stats:pseudo | +-------------------+-------+------+---------------------------------------------------------------------+ 2 rows in set (0.00 sec) TiDB(root@127.0.0.1:test) > explain select * from t use index(idx) where a is not null; +-------------------+-------+------+---------------------------------------------------------------------+ | id | count | task | operator info | +-------------------+-------+------+---------------------------------------------------------------------+ | IndexReader_6 | 2.00 | root | index:IndexScan_5 | | └─IndexScan_5 | 2.00 | cop | table:t, index:a, range:[-inf,+inf], keep order:false, stats:pseudo | +-------------------+-------+------+---------------------------------------------------------------------+ 2 rows in set (0.00 sec)
as you can see in the above:
[NULL,+inf]
[-inf,+inf]
Describe the feature you'd like:
Can we regard NULL as the smallest value:
NULL
[NULL,+inf)
(NULL, +inf)
Describe alternatives you've considered:
No
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered:
(-inf
+inf)
[-inf
+inf]
It's the same issue with #9231. For the same reason #9231 (comment), I'm going to close it as well.
Sorry, something went wrong.
No branches or pull requests
Feature Request
At present, the range representation is a little confusing:
as you can see in the above:
[NULL,+inf]
[-inf,+inf]
Describe the feature you'd like:
Can we regard
NULL
as the smallest value:[NULL,+inf)
to express a full range(NULL, +inf)
to express a range without NULL valueDescribe alternatives you've considered:
No
Teachability, Documentation, Adoption, Migration Strategy:
No
The text was updated successfully, but these errors were encountered: