@@ -2696,7 +2696,7 @@ var (
26962696 }, {
26972697 input : "select `name`, nth_value(a) over (partition by b) from t" ,
26982698 }, {
2699- input : "select `name`, ntile() over (partition by b) from t" ,
2699+ input : "select `name`, ntile(123 ) over (partition by b) from t" ,
27002700 }, {
27012701 input : "select `name`, percent_rank() over (partition by b) from t" ,
27022702 }, {
@@ -2720,7 +2720,7 @@ var (
27202720 }, {
27212721 input : "select `name`, nth_value(a) over (partition by b order by c asc) from t" ,
27222722 }, {
2723- input : "select `name`, ntile() over (partition by b order by c asc) from t" ,
2723+ input : "select `name`, ntile(123 ) over (partition by b order by c asc) from t" ,
27242724 }, {
27252725 input : "select `name`, percent_rank() over (partition by b order by c asc) from t" ,
27262726 }, {
@@ -6269,7 +6269,7 @@ func TestFunctionCalls(t *testing.T) {
62696269 "select NAME_CONST() from dual" ,
62706270 "select NOW() from dual" ,
62716271 "select NTH_VALUE(col) over mywindow from dual" ,
6272- "select NTILE() over mywindow from dual" ,
6272+ "select NTILE(123 ) over mywindow from dual" ,
62736273 "select NULLIF() from dual" ,
62746274 "select OCT() from dual" ,
62756275 "select OCTET_LENGTH() from dual" ,
@@ -8014,8 +8014,8 @@ var (
80148014 input : "select name, dense_rank(a) over (partition by b) from t" ,
80158015 output : "syntax error at position 26 near 'a'" ,
80168016 }, {
8017- input : "select name, ntile(a ) over (partition by b) from t" ,
8018- output : "syntax error at position 21 near 'a '" ,
8017+ input : "select name, ntile() over (partition by b) from t" ,
8018+ output : "syntax error at position 21 near 'ntile '" ,
80198019 }, {
80208020 input : "select name, percent_rank(a) over (partition by b) from t" ,
80218021 output : "syntax error at position 28 near 'a'" ,
0 commit comments