Skip to content

Commit 764876c

Browse files
authored
Merge pull request #280 from ClibMouse/bug_fix_2520
bug_fix_2520 (new_guid)
2 parents 2588852 + bd670bf commit 764876c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/Parsers/Kusto/KustoFunctions/KQLStringFunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ bool MakeString::convertImpl(String & out, IParser::Pos & pos)
376376

377377
bool NewGuid::convertImpl(String & out, IParser::Pos & pos)
378378
{
379-
return directMapping(out, pos, "generateUUIDv4");
379+
return directMapping(out, pos, "generateUUIDv4", {0, 0});
380380
}
381381

382382
bool ParseCSV::convertImpl(String & out, IParser::Pos & pos)

tests/queries/0_stateless/02366_kql_func_string.reference

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,4 @@ $-অ-P-WXY
487487
PQRSTUVWXYZ
488488
PQ
489489
{م爱🐂অ
490+
-- new_guid --

tests/queries/0_stateless/02366_kql_func_string.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,6 @@ MyTable | project t = strcat(make_string(col1), '-', make_string(col2), '-', mak
468468
print str = make_string(range(80, 85), 86, 87, range(88, 90));
469469
print str = make_string(dynamic([]), 80, 81);
470470
print str = make_string(123, 1605, 29233 ,128002, 2437);
471+
472+
print '-- new_guid --';
473+
print t = new_guid(1) -- { clientError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }

0 commit comments

Comments
 (0)