You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "Yiqun Zhang (Jira)" <ji...@apache.org> on 2021/07/23 04:11:00 UTC

[jira] [Created] (ORC-856) Fix exception description in findSubtype

Yiqun Zhang created ORC-856:
-------------------------------

             Summary: Fix exception description in findSubtype
                 Key: ORC-856
                 URL: https://issues.apache.org/jira/browse/ORC-856
             Project: ORC
          Issue Type: Bug
          Components: Java
    Affects Versions: 1.7.0, master
            Reporter: Yiqun Zhang
             Fix For: 1.7.0


{code:java}
public static void findSubtype(TypeDescription schema,
                                 int goal,
                                 TypeVisitor visitor) {
    TypeDescription current = schema;
    int id = schema.getId();
    if (goal < id || goal > schema.getMaximumId()) {
      throw new IllegalArgumentException("Unknown type id " + id + " in " +
          current.toJson());
    }
    ....
}
{code}
"Unknown type id " + {color:red}id{color} + " in " + current.toJson()
 Need to be modified to goal here
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)