Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public void testAnomalies() {

tableAssertTestFail(
"SELECT FORMAT('%s') FROM string_table",
"701: Scalar function format must have at least two arguments, and first argument must be char type.",
"701: Scalar function format must have at least two arguments, and first argument pattern must be TEXT or STRING type.",
DATABASE_NAME);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ && isIntegerNumber(argumentTypes.get(2)))) {
throw new SemanticException(
"Scalar function "
+ functionName.toLowerCase(Locale.ENGLISH)
+ " must have at least two arguments, and first argument must be char type.");
+ " must have at least two arguments, and first argument pattern must be TEXT or STRING type.");
}
return STRING;
} else if (TableBuiltinScalarFunction.GREATEST.getFunctionName().equalsIgnoreCase(functionName)
Expand Down
Loading