Skip to content

Commit

Permalink
Fix error messaging to show the actual decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Oct 16, 2024
1 parent dbe6d82 commit 8689dab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe('function validation', () => {
// date
await expectErrors('FROM a_index | EVAL TEST(NOW())', []);
await expectErrors('FROM a_index | EVAL TEST(1.)', [
'Argument of [test] must be [date], found value [1] type [decimal]',
'Argument of [test] must be [date], found value [1.] type [decimal]',
]);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function validateFunctionLiteralArg(
values: {
name: astFunction.name,
argType: argDef.type as string,
value: typeof actualArg.value === 'number' ? actualArg.value : String(actualArg.value),
value: actualArg.text,
givenType: actualArg.literalType,
},
locations: actualArg.location,
Expand Down

0 comments on commit 8689dab

Please sign in to comment.