Skip to content

Commit a638154

Browse files
committed
Support IDENTIFIER() syntax in Snowflake
Fixes #883
1 parent 640c982 commit a638154

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/languages/snowflake/snowflake.functions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export const functions: string[] = [
219219
'HOUR',
220220
'MINUTE',
221221
'SECOND',
222+
'IDENTIFIER', // Not technically a function, but works as one for formatting purposes
222223
'IFF',
223224
'IFNULL',
224225
'ILIKE',

test/snowflake.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,11 @@ describe('SnowflakeFormatter', () => {
214214
FILTER(my_arr, a -> a:value >= 50);
215215
`);
216216
});
217+
218+
// Issue #883
219+
it('supports IDENTIFIER() syntax', () => {
220+
expect(format(`CREATE TABLE identifier($foo);`)).toBe(dedent`
221+
CREATE TABLE identifier($foo);
222+
`);
223+
});
217224
});

0 commit comments

Comments
 (0)