Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-1840

Transform spec literals should be checked during validate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemML 0.15
    • None
    • None

    Description

      Currently, there is no validation happening for transform specifications during initial compilation. This is very annoying, especially when trying to encode large files, which takes a while to read in, just to find out that the given transform specification was invalid json. Here is an example:

      Caused by: org.apache.wink.json4j.JSONException: Expecting '{' on line 1, column 4 instead, obtained token: 'Token: String - 'ids''
              at org.apache.wink.json4j.internal.Parser.parseObject(Parser.java:193)
              at org.apache.wink.json4j.internal.Parser.parse(Parser.java:130)
              at org.apache.wink.json4j.internal.Parser.parse(Parser.java:95)
              at org.apache.wink.json4j.JSONObject.<init>(JSONObject.java:138)
              at org.apache.sysml.runtime.transform.encode.EncoderFactory.createEncoder(EncoderFactory.java:56)
      

      This task aims to parse the transform specification if its available as a literal string during the language validation step.

      Attachments

        Activity

          People

            mboehm7 Matthias Boehm
            mboehm7 Matthias Boehm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: