Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.0
Description
The passed error message parameters and places holders in message format can not be matched. From the code maintainability perspective, it would be nice to detect such cases while running tests.
For example, the error message format could look like:
"CANNOT_UP_CAST_DATATYPE" : { "message" : [ "Cannot up cast <expression> from <sourceType> to <targetType>.", "<details>" ], "sqlState" : "42846" },
but the passed message parameters have extra parameter:
messageParameters = Map( "expression" -> "CAST('aaa' AS LONG)", "sourceType" -> "STRING", "targetType" -> "LONG", "op" -> "CAST", // unused parameter "details" -> "implicit cast" ))
Attachments
Issue Links
- links to