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

*: Fix issue 39999, used wrong column id list for checking partitions (#40003) #40061

Closed
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
Prev Previous commit
Updated explain output
mjonss committed Dec 20, 2022

Verified

This commit was signed with the committer’s verified signature.
oliviertassinari Olivier Tassinari
commit 64ac370efd2392f64c9cd519d3be1c377e580a3d
14 changes: 7 additions & 7 deletions executor/partition_table_test.go
Original file line number Diff line number Diff line change
@@ -3148,11 +3148,11 @@ from
query += ` and c.serial_id = t.serial_id`
tk.MustQuery(query).Check(testkit.Rows("-2.01"))
tk.MustQuery("explain format='brief' " + query).Check(testkit.Rows(""+
`IndexJoin 0.80 root inner join, inner:TableReader, outer key:test39999.t.txn_account_id, test39999.t.serial_id, inner key:test39999.c.txt_account_id, test39999.c.serial_id, equal cond:eq(test39999.t.serial_id, test39999.c.serial_id), eq(test39999.t.txn_account_id, test39999.c.txt_account_id)`,
`├─TableReader(Build) 0.80 root data:Selection`,
`│ └─Selection 0.80 cop[tikv] eq(test39999.t.broker, "0009"), not(isnull(test39999.t.serial_id))`,
`│ └─TableFullScan 1.00 cop[tikv] table:t keep order:false`,
`└─TableReader(Probe) 0.80 root partition:all data:Selection`,
` └─Selection 0.80 cop[tikv] eq(test39999.c.occur_trade_date, 2022-11-17 00:00:00.000000)`,
` └─TableRangeScan 0.80 cop[tikv] table:c range: decided by [eq(test39999.c.txt_account_id, test39999.t.txn_account_id) eq(test39999.c.serial_id, test39999.t.serial_id) eq(test39999.c.occur_trade_date, 2022-11-17 00:00:00.000000)], keep order:false`))
"IndexJoin 0.80 root inner join, inner:TableReader, outer key:test39999.t.txn_account_id, test39999.t.serial_id, inner key:test39999.c.txt_account_id, test39999.c.serial_id, equal cond:eq(test39999.t.serial_id, test39999.c.serial_id), eq(test39999.t.txn_account_id, test39999.c.txt_account_id)",
"├─TableReader(Build) 0.80 root data:Selection",
"│ └─Selection 0.80 cop[tikv] eq(test39999.t.broker, \"0009\"), not(isnull(test39999.t.serial_id))",
"│ └─TableFullScan 1.00 cop[tikv] table:t keep order:false",
"└─TableReader(Probe) 1.00 root partition:all data:Selection",
" └─Selection 1.00 cop[tikv] eq(test39999.c.occur_trade_date, 2022-11-17 00:00:00.000000)",
" └─TableRangeScan 1.00 cop[tikv] table:c range: decided by [test39999.t.txn_account_id test39999.t.serial_id], keep order:false"))
}