-
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
remove Next() function of all the Executors #5985
Comments
Feels really great to see the thread. 👍 |
I'm working on it |
Next function can be removed directly, this PR can be referred. |
I'm working on it. I will remove next() function in distsql.go. executor/distsql.go: TableReaderExecutor |
@qxhy123 @dreamquster Thanks for your help ! |
I'm working on it. I will remove next() function in executor.go. |
I'm working on it. I will remove next() function in executor/write.go: DeleteExec |
I'm working on it. I will remove next() function in executor/union_scan.go: UnionScanExec |
I'm working on it. I will remove next() function in |
@colinback Thanks for your participation, |
I'm working on it. I will remove next() function in executor/show.go: ShowExec |
@zz-jason Oh sorry, I do not notice that. Then I choose to do executor/grant.go: GrantExec first. |
@Anteoy Thanks for your help. |
@colinback It would be great if you can finish it before next Wednesday. |
@XuHuaiyu , All executors in distsql.go are referenced by RecordSet.Next. Should I change all RecordSet.Next into RecordSet.NextChunk in below picture? |
I'm working on it. I will remove next() function in |
I'm working on it. I will remove next() function in |
I'm working on it. I will remove next() function in |
I'm working on it. I will remove next() function in |
I'm working on it. I will remove next() function in |
@dreamquster Thank you for your help, I'm working on this. |
@colinback Feel free if you wanna try |
@XuHuaiyu I'm OK with it. But I have two problems now.
|
@colinback For question 2: |
@colinback For question 1: |
For question 2, here is my |
@colinback Thank you, we'll take a look. |
@colinback The test fail is caused by the introduction of gofail. You can run |
@XuHuaiyu thanks. It works |
I am working on it. I will remove next() function in executor/aggregate.go. |
I am working on it. I will remove next() function in executor/sort.go. |
I am working on it. I will remove next() function in |
Hi, a friendly ping. @dreamquster |
@XuHuaiyu , I found that all executors in distsql.go are referenced in too many places on March 10. |
Hi, @dreamquster |
done |
We no longer need
Next()
for executors since we already haveNextChunk()
. FunctionNext()
and all the functions and attributes called only byNext()
should also be deleted.After removing
Next()
, we can detect the unused functions by toolunused
:NOTE:
The text was updated successfully, but these errors were encountered: