Skip to content

Commit

Permalink
Fix return type of trim functions (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Swenson authored Aug 10, 2023
1 parent c60a3c6 commit 7bfe21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/malloy/src/dialect/functions/trim_functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ import {
function trimFn(fn: string): DialectFunctionOverloadDef[] {
return [
overload(
minScalar('number'),
minScalar('string'),
[param('value', anyExprType('string'))],
[sqlFragment(`${fn}(`, arg('value'), ')')]
),
overload(
minScalar('number'),
minScalar('string'),
[
param('value', anyExprType('string')),
param('trim_characters', anyExprType('string')),
Expand Down

0 comments on commit 7bfe21d

Please sign in to comment.