-
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
lightning: refactor for reuse part2 #42626
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
/retest |
/run-integration-br-test |
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.
23 / 41 files viewed
tikvCli *tikvclient.KVStore | ||
tls *common.TLS | ||
pdAddr string | ||
g glue.Glue |
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.
Glue is to let lightning use its host TiDB's SQLExecutor, will we need it in future? such as lightning need TiDB's system session to write its checkpoint in a table
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.
those're not the responsibility of backend, and if it really need we can pass in some object which handles it.
types/types_test/const_test.go
Outdated
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.
same as expression
pkg
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.
reverted, so many cross dependencies😅
/run-integration-br-test |
3 similar comments
/run-integration-br-test |
/run-integration-br-test |
/run-integration-br-test |
executor/importer/import.go
Outdated
return exeerrors.ErrLoadDataCantAccess.GenWithStackByArgs(GetMsgFromBRError(err)) | ||
} | ||
|
||
dataFiles := []mydump.SourceFileMeta{} |
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.
maybe change its type to []*mydump.SourceFileMeta
LoadDataReadBlockSize, | ||
nil, | ||
false, | ||
// TODO: support charset conversion |
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.
a small git conflict with #42644
executor/load_data.go
Outdated
} | ||
|
||
parser, err2 = e.buildParser(ctx, reader, info.Remote) | ||
dataParser, err2 := e.controller.GetParser(ctx, &info) |
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.
seems we can change GetParser(..., *LoadDataReaderInfo) to GetParser(..., LoadDataReaderInfo)
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 9a69515
|
What problem does this PR solve?
Issue Number: ref #40499
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.