From dc6506128a0bdbc5ff3fd67f8ed8bf2bcd5b4e5b Mon Sep 17 00:00:00 2001 From: stavby <38085172+stavby@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:09:19 +0300 Subject: [PATCH 1/3] Add COALESCE function to trino language Added 'COALESCE' function to the list of supported built in functions in trino and corrected spelling errors in comments. --- src/languages/trino/trino.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/languages/trino/trino.ts b/src/languages/trino/trino.ts index 3d90a391..68cf3494 100644 --- a/src/languages/trino/trino.ts +++ b/src/languages/trino/trino.ts @@ -240,6 +240,7 @@ export const language = { 'CHECKSUM', 'CHR', 'CLASSIFY', + 'COALESCE', 'CODEPOINT', 'COLOR', 'COMBINATIONS', @@ -585,7 +586,7 @@ export const language = { 'ZIP_WITH' ], builtinVariables: [ - // Not support + // Not Supporteded ], typeKeywords: [ // https://trino.io/docs/current/language/types.html @@ -623,7 +624,7 @@ export const language = { ], scopeKeywords: ['CASE', 'END', 'WHEN', 'THEN', 'ELSE'], pseudoColumns: [ - // Not support + // Not Supporteded ], tokenizer: { root: [ @@ -705,7 +706,7 @@ export const language = { [/"/, { token: TokenClassConsts.IDENTIFIER_QUOTE, next: '@pop' }] ], scopes: [ - // Not Support + // Not Supported ], complexDataTypes: [ [/WITHOUT\s+TIME\s+ZONE\b/i, { token: TokenClassConsts.TYPE }], From 34099496f3a4a4bb7880f7e2ea5b853aa89b5687 Mon Sep 17 00:00:00 2001 From: stavby <38085172+stavby@users.noreply.github.com> Date: Sun, 17 May 2026 11:23:05 +0300 Subject: [PATCH 2/3] revert "Not Supported" hotfix --- src/languages/trino/trino.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/languages/trino/trino.ts b/src/languages/trino/trino.ts index 68cf3494..f7f9bcf1 100644 --- a/src/languages/trino/trino.ts +++ b/src/languages/trino/trino.ts @@ -586,7 +586,7 @@ export const language = { 'ZIP_WITH' ], builtinVariables: [ - // Not Supporteded + // Not support ], typeKeywords: [ // https://trino.io/docs/current/language/types.html @@ -624,7 +624,7 @@ export const language = { ], scopeKeywords: ['CASE', 'END', 'WHEN', 'THEN', 'ELSE'], pseudoColumns: [ - // Not Supporteded + // Not support ], tokenizer: { root: [ @@ -706,7 +706,7 @@ export const language = { [/"/, { token: TokenClassConsts.IDENTIFIER_QUOTE, next: '@pop' }] ], scopes: [ - // Not Supported + // Not support ], complexDataTypes: [ [/WITHOUT\s+TIME\s+ZONE\b/i, { token: TokenClassConsts.TYPE }], From 887c91c8a545b23f695ffbacd99cfbd5b31a6804 Mon Sep 17 00:00:00 2001 From: stavby <38085172+stavby@users.noreply.github.com> Date: Sun, 17 May 2026 11:23:39 +0300 Subject: [PATCH 3/3] Correct comment capitalization in trino.ts --- src/languages/trino/trino.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/trino/trino.ts b/src/languages/trino/trino.ts index f7f9bcf1..228a40d2 100644 --- a/src/languages/trino/trino.ts +++ b/src/languages/trino/trino.ts @@ -706,7 +706,7 @@ export const language = { [/"/, { token: TokenClassConsts.IDENTIFIER_QUOTE, next: '@pop' }] ], scopes: [ - // Not support + // Not Support ], complexDataTypes: [ [/WITHOUT\s+TIME\s+ZONE\b/i, { token: TokenClassConsts.TYPE }],