Skip to content
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

schema: sequence should always be the one row #30784

Merged
merged 6 commits into from
Dec 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
sequence always be the one row
Signed-off-by: ailinkid <314806019@qq.com>
  • Loading branch information
AilinKid committed Dec 16, 2021
commit 6f2ee0111943a96e542ca444c547e91f7b98858c
5 changes: 2 additions & 3 deletions executor/infoschema_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,8 @@ func (e *memtableRetriever) setDataFromTables(ctx context.Context, sctx sessionc
}
if table.IsSequence() {
tableType = "SEQUENCE"
if rowCount == 0 {
rowCount = 1
}
// sequence is always 1 row regardless of stats.
rowCount = 1
}
if table.HasClusteredIndex() {
pkType = "CLUSTERED"
Expand Down