Skip to content

Commit

Permalink
test: add a test case for issue 52933
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
  • Loading branch information
Rustin170506 committed May 9, 2024
1 parent c33b6cd commit 7e8d2cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/executor/window_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,11 @@ func TestIssue45964And46050(t *testing.T) {
testReturnColumnNullableAttribute(tk, "cume_dist()", false)
testReturnColumnNullableAttribute(tk, "percent_rank()", false)
}

func TestVarSampAsAWindowFunction(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
tk.MustExec("create table t1 (c1 int)")
tk.MustExecToErr("select c1, var_samp(c1) over (partition by c1) from t1")
}

0 comments on commit 7e8d2cd

Please sign in to comment.