Skip to content

Commit 81eaf40

Browse files
authored
Support named function arguments in Trino with => operator (#510)
2 parents b424cc6 + c7519d2 commit 81eaf40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/languages/trino/trino.formatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const trino: DialectOptions = {
148148
operators: [
149149
'%',
150150
'->',
151+
'=>',
151152
':',
152153
'||',
153154
// Row pattern syntax

test/trino.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('TrinoFormatter', () => {
4747
supportsIdentifiers(format, [`""-qq`]);
4848
supportsBetween(format);
4949
// Missing: '?' operator (for row patterns)
50-
supportsOperators(format, ['%', '->', '||', '|', '^', '$'], ['AND', 'OR']);
50+
supportsOperators(format, ['%', '->', '=>', '||', '|', '^', '$'], ['AND', 'OR']);
5151
supportsArrayLiterals(format);
5252
supportsArrayAndMapAccessors(format);
5353
supportsJoin(format);

0 commit comments

Comments
 (0)