Skip to content

Commit

Permalink
Enabled tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonss committed Jan 18, 2023
1 parent c7b23fc commit 84bca8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions telemetry/data_feature_usage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ func TestTablePartition(t *testing.T) {
"partition p4 values less than (15))")
tk.MustExec("alter table pt1 first partition less than (9)")
tk.MustExec("alter table pt1 last partition less than (21)")
// TODO: Uncomment when supported
//tk.MustExec("alter table pt1 reorganize partition p4 into (partition p4 values less than (15), partition p5 values less than (18))")
tk.MustExec("alter table pt1 reorganize partition p4 into (partition p4 values less than (13), partition p5 values less than (15))")
tk.MustExec("drop table if exists pt1")
tk.MustExec("create table pt1 (d datetime primary key, v varchar(255)) partition by range columns(d)" +
" interval (1 day) first partition less than ('2022-01-01') last partition less than ('2022-02-22')")
Expand All @@ -278,8 +277,7 @@ func TestTablePartition(t *testing.T) {
require.Equal(t, int64(1), usage.TablePartition.TablePartitionCreateIntervalPartitionsCnt)
require.Equal(t, int64(1), usage.TablePartition.TablePartitionAddIntervalPartitionsCnt)
require.Equal(t, int64(1), usage.TablePartition.TablePartitionDropIntervalPartitionsCnt)
// TODO: Uncomment when supported
//require.Equal(t, int64(1), usage.TablePartition.TablePartitionReorganizePartitionCnt)
require.Equal(t, int64(1), usage.TablePartition.TablePartitionReorganizePartitionCnt)

tk.MustExec("drop table if exists pt2")
tk.MustExec("create table pt2 (a int,b int) partition by range(a) (" +
Expand Down

0 comments on commit 84bca8b

Please sign in to comment.