*: support columnar inverted index#59571
Conversation
|
Hi @Lloyd-Pottiger. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/test ? |
|
@wuhuizuo: The following commands are available to trigger required jobs: The following commands are available to trigger optional jobs: Use DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@wuhuizuo: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@ti-chi-bot[bot]: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
b0d47bb to
0900788
Compare
0900788 to
3c4e173
Compare
5f00d4a to
9ac9cd2
Compare
7541ff3 to
4a21b72
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #59571 +/- ##
================================================
+ Coverage 73.0943% 75.3838% +2.2895%
================================================
Files 1710 1760 +50
Lines 472729 493091 +20362
================================================
+ Hits 345538 371711 +26173
+ Misses 105887 98738 -7149
- Partials 21304 22642 +1338
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
5bb5cc7 to
6eb5e41
Compare
Co-authored-by: tangenta <tangenta@126.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
| func IsTypeStoredAsInteger(tp byte) bool { | ||
| switch tp { | ||
| case mysql.TypeTiny, mysql.TypeShort, mysql.TypeInt24, mysql.TypeLong, mysql.TypeLonglong: | ||
| return true | ||
| case mysql.TypeYear: | ||
| return true | ||
| // Enum and Set are stored as integer type but they can not be pushed down to TiFlash | ||
| // case mysql.TypeEnum, mysql.TypeSet: | ||
| // return true | ||
| case mysql.TypeDatetime, mysql.TypeDate, mysql.TypeTimestamp, mysql.TypeDuration: | ||
| return true | ||
| } | ||
| return false |
There was a problem hiding this comment.
Why not compact these cases into one branch?
There was a problem hiding this comment.
It is more clear, Integer type and date type.
Co-authored-by: tangenta <tangenta@126.com>
| if index.State == model.StatePublic && index.InvertedInfo != nil { | ||
| ts.UsedColumnarIndexes = append(ts.UsedColumnarIndexes, &tipb.ColumnarIndexInfo{ | ||
| IndexType: tipb.ColumnarIndexType_TypeInverted, | ||
| Index: &tipb.ColumnarIndexInfo_InvertedQueryInfo{ | ||
| InvertedQueryInfo: &tipb.InvertedQueryInfo{ | ||
| IndexId: index.ID, | ||
| ColumnId: index.InvertedInfo.ColumnID, | ||
| }, | ||
| }, | ||
| }) | ||
| } |
There was a problem hiding this comment.
do we need to check whether the index is used or not?
if the numeric column a has inverted index while this SQL don't have predicates on it, do we need to add that index here?
There was a problem hiding this comment.
To simplify, just add all inverted index info now since we all implement a better algorithm soon.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tangenta, winoros, zimulala The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
@Lloyd-Pottiger: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@Lloyd-Pottiger: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@Lloyd-Pottiger: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@Lloyd-Pottiger: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What problem does this PR solve?
Issue Number: close #59880
Problem Summary:
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.