Skip to content

Commit

Permalink
parser: support trace analyze table statement (pingcap#37155)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysp authored Aug 17, 2022
1 parent d5ce00e commit 8cf2e80
Show file tree
Hide file tree
Showing 3 changed files with 4,277 additions and 4,270 deletions.
4 changes: 4 additions & 0 deletions executor/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ func TestTraceExec(t *testing.T) {
require.Greater(t, len(rows), 1)
require.True(t, rowsOrdered(rows))

rows = tk.MustQuery("trace format='row' analyze table trace").Rows()
require.Greater(t, len(rows), 1)
require.True(t, rowsOrdered(rows))

tk.MustExec("trace format='log' insert into trace (c1, c2, c3) values (1, 2, 3)")
rows = tk.MustQuery("trace format='log' select * from trace where id = 0;").Rows()
require.GreaterOrEqual(t, len(rows), 1)
Expand Down
Loading

0 comments on commit 8cf2e80

Please sign in to comment.