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] 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 }],