diff --git a/packages/malloy/src/dialect/trino/dialect_functions.ts b/packages/malloy/src/dialect/trino/dialect_functions.ts index b0ec74151..ed869f6b9 100644 --- a/packages/malloy/src/dialect/trino/dialect_functions.ts +++ b/packages/malloy/src/dialect/trino/dialect_functions.ts @@ -386,14 +386,14 @@ const sequence: OverloadedDefinitionBlueprint = { }, }; -const trino_reverse: DefinitionBlueprint = { +const string_reverse: DefinitionBlueprint = { takes: {'str': 'string'}, returns: 'string', impl: {sql: 'REVERSE(CAST(${str} AS VARCHAR))'}, }; export const TRINO_DIALECT_FUNCTIONS: DefinitionBlueprintMap = { - reverse: trino_reverse, + reverse: string_reverse, // aggregate functions approx_percentile, arbitrary, @@ -533,18 +533,13 @@ const array_least_frequent: OverloadedDefinitionBlueprint = { }; const reverse: OverloadedDefinitionBlueprint = { + ngirts: {...string_reverse}, yarra: { takes: {'x': {array: T}}, returns: {array: T}, generic: {'T': ['any']}, impl: {function: 'REVERSE'}, }, - ngirts: { - takes: {'str_v': T}, - generic: {'T': ['string', 'null']}, - returns: 'string', - impl: {function: 'REVERSE'}, - }, }; export const PRESTO_DIALECT_FUNCTIONS: DefinitionBlueprintMap = {