Skip to content

Commit 7e8d2cd

Browse files
committed
test: add a test case for issue 52933
Signed-off-by: hi-rustin <[email protected]>
1 parent c33b6cd commit 7e8d2cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/executor/window_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,3 +470,11 @@ func TestIssue45964And46050(t *testing.T) {
470470
testReturnColumnNullableAttribute(tk, "cume_dist()", false)
471471
testReturnColumnNullableAttribute(tk, "percent_rank()", false)
472472
}
473+
474+
func TestVarSampAsAWindowFunction(t *testing.T) {
475+
store := testkit.CreateMockStore(t)
476+
tk := testkit.NewTestKit(t, store)
477+
tk.MustExec("use test")
478+
tk.MustExec("create table t1 (c1 int)")
479+
tk.MustExecToErr("select c1, var_samp(c1) over (partition by c1) from t1")
480+
}

0 commit comments

Comments
 (0)