-
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
Makefile: add gotag enableassert
for make server_check
#51057
Merged
ti-chi-bot
merged 26 commits into
pingcap:master
from
winoros:add-test-tag-for-check-bin
Oct 18, 2024
Merged
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d67f9ea
Makefile: add gotag for make server_check
winoros 1dec276
Merge branch 'master' into add-test-tag-for-check-bin
winoros cb95d45
fix missed internal source type
winoros 38b996e
enlarge the mem limit
winoros 2c86f2f
test the cache size
winoros 463c538
don't use v1 stats in integration tests
winoros cb89d39
Revert "don't use v1 stats in integration tests"
winoros 0a53994
reset the lfu size
winoros 4fe0145
Merge branch 'master' into add-test-tag-for-check-bin
winoros 3856648
Merge remote-tracking branch 'origin/master' into add-test-tag-for-ch…
winoros fc3de1f
add one new tag for integration test
winoros 6f6b5bc
try to fix bazel file & static check
winoros 0a494bf
Merge remote-tracking branch 'origin/master' into add-test-tag-for-ch…
winoros be6f387
quick fix with detect full schema downward
AilinKid b6bfa46
Update comment thrown in testkit.go
winoros 99884e5
Merge branch 'master' into add-test-tag-for-check-bin
winoros be4c1c9
address comments
winoros 532f689
Merge remote-tracking branch 'yiding/add-test-tag-for-check-bin' into…
winoros b58586d
fix bazel file
winoros 23df741
fix make check
winoros e3c8c17
fix
winoros 918faba
Merge remote-tracking branch 'origin/master' into add-test-tag-for-ch…
winoros 313a88e
Merge remote-tracking branch 'origin/master' into add-test-tag-for-ch…
winoros 6289065
Merge branch 'master' into add-test-tag-for-check-bin
winoros bb82b4f
add a new finding
winoros 9f5929a
try to fix flaky test
winoros File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1123,10 +1123,25 @@ func (p *LogicalJoin) ExtractUsedCols(parentUsedCols []*expression.Column) (left | |
} | ||
lChild := p.Children()[0] | ||
rChild := p.Children()[1] | ||
lSchema := lChild.Schema() | ||
rSchema := rChild.Schema() | ||
// parentused col = t2.a | ||
// leftChild schema = t1.a(t2.a) + and others | ||
// rightChild schema = t3 related + and others | ||
if join, ok := lChild.(*LogicalJoin); ok { | ||
if join.FullSchema != nil { | ||
lSchema = join.FullSchema | ||
} | ||
} | ||
if join, ok := rChild.(*LogicalJoin); ok { | ||
if join.FullSchema != nil { | ||
rSchema = join.FullSchema | ||
} | ||
} | ||
for _, col := range parentUsedCols { | ||
if lChild.Schema().Contains(col) { | ||
if lSchema != nil && lSchema.Contains(col) { | ||
leftCols = append(leftCols, col) | ||
} else if rChild.Schema().Contains(col) { | ||
} else if rSchema != nil && rSchema.Contains(col) { | ||
Comment on lines
+1126
to
+1144
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found by integration test. |
||
rightCols = append(rightCols, col) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2024 PingCAP, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
//go:build !intest | ||
|
||
package intest | ||
|
||
// InTest checks if the code is running in test. | ||
const InTest = false |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It's a missed one. Found by the intest tag.