We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33b6cd commit 7e8d2cdCopy full SHA for 7e8d2cd
pkg/executor/window_test.go
@@ -470,3 +470,11 @@ func TestIssue45964And46050(t *testing.T) {
470
testReturnColumnNullableAttribute(tk, "cume_dist()", false)
471
testReturnColumnNullableAttribute(tk, "percent_rank()", false)
472
}
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