Skip to content

Commit 4f545c8

Browse files
committed
Update window functions list for DB2
1 parent 057fc4d commit 4f545c8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/languages/db2/db2.functions.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,20 @@ export const functions = flatKeywordList({
302302
// https://www.ibm.com/docs/en/db2-for-zos/11?topic=functions-row
303303
row: ['UNPACK'],
304304
// https://www.ibm.com/docs/en/db2-for-zos/12?topic=expressions-olap-specification
305-
olap: ['FIRST_VALUE', 'LAG', 'LAST_VALUE', 'LEAD', 'NTH_VALUE', 'NTILE', 'RATIO_TO_REPORT'],
305+
olap: [
306+
'CUME_DIST',
307+
'PERCENT_RANK',
308+
'RANK',
309+
'DENSE_RANK',
310+
'NTILE',
311+
'LAG',
312+
'LEAD',
313+
'ROW_NUMBER',
314+
'FIRST_VALUE',
315+
'LAST_VALUE',
316+
'NTH_VALUE',
317+
'RATIO_TO_REPORT',
318+
],
306319
// Type casting
307320
cast: ['CAST'],
308321
});

0 commit comments

Comments
 (0)