XMLWordPrintableJSON

Details

    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

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: