-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Is (-inf
or +inf)
a good choice instead of `[-inf
or +inf]
` to express range info?
#9756
Comments
From the code perspective, |
I got it. So we should use |
Another case is that the |
When excute
desc select * from t;
We get
The range info here is
[-inf,+inf]
, according to #9231 and #8588, we can improve it as[NULL,+inf)
or(NULL,+inf)
whenexplain select * from t use index(idx) where a is not null;
It seems that
(-inf
or+inf)
is more reasonable than[-inf
or+inf]
.Should we use
(-inf
or+inf)
even the scan is not a full range scan?The text was updated successfully, but these errors were encountered: