-
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
infoschema,planner: implement the CLUSTER_LOG memory table predicate push down #14018
Conversation
Signed-off-by: Lonng <heng@lonng.org>
Codecov Report
@@ Coverage Diff @@
## master #14018 +/- ##
===========================================
Coverage 80.2791% 80.2791%
===========================================
Files 483 483
Lines 122353 122353
===========================================
Hits 98224 98224
Misses 16366 16366
Partials 7763 7763 |
Signed-off-by: Lonng <heng@lonng.org>
Co-Authored-By: djshow832 <873581766@qq.com>
Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng <heng@lonng.org>
|
||
// extracts the time range column, e.g: | ||
// SELECT * FROM t WHERE time='2019-10-10 10:10:10' | ||
// SELECT * FROM t WHERE time>'2019-10-10 10:10:10' AND time<'2019-10-11 10:10:10' |
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.
So you don't deal with (time > ... and time < ...) or (time > ... and time < ...)?
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.
Yes, to simplify the implementation of the diagnostics service search log interface, it can just accept only one range of time (pick a group of the log files in the time range). So the filtering will be executed in TiDB via Selection executor.
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.
Generally, we use the cluster level log search function to locate the problem usually only one range of time. So I think it's enough to cover this scenario.
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.
Rest LGTM
Signed-off-by: Lonng <heng@lonng.org>
…uster-log-push-down
Signed-off-by: Lonng <heng@lonng.org>
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.
LGTM
Please modify the PR title: infoschema, planner: xxx |
@djshow832 Done |
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.
lgtm
/run-all-tests |
@lonng merge failed. |
/run-unit-test |
…push down (pingcap#14018) Signed-off-by: Lonng <heng@lonng.org>
Signed-off-by: Lonng heng@lonng.org
What problem does this PR solve?
This PR implement the predicate push-down part of the
CLUSTER_LOG
memory table.It's a subtask of issue #13567
What is changed and how it works?
CLUSTER_LOG
memory table.ClusterLogTableExtractor
NOTE: The
CLUSTER_LOG
memory table implementation will be split into two PRs to make it reviewable. The retriever will be implemented in the next PR.Check List
Tests
Release note