You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2021/07/23 06:25:16 UTC

[orc] branch main updated: ORC-856: Fix exception description in findSubtype (#758)

This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/main by this push:
     new 12dfecd  ORC-856: Fix exception description in findSubtype (#758)
12dfecd is described below

commit 12dfecde8538ed64df1bbe84d0aaa0ad6c1df2d8
Author: guiyanakaung <gu...@gmail.com>
AuthorDate: Fri Jul 23 14:25:08 2021 +0800

    ORC-856: Fix exception description in findSubtype (#758)
    
    ### What changes were proposed in this pull request?
    
    Fix the exception description in the findSubtype method
    
    ### Why are the changes needed?
    
    Avoid misleading exception output
    
    ### How was this patch tested?
    
    N/A
---
 java/core/src/java/org/apache/orc/impl/ParserUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/core/src/java/org/apache/orc/impl/ParserUtils.java b/java/core/src/java/org/apache/orc/impl/ParserUtils.java
index 9bfe1f3..15cbc38 100644
--- a/java/core/src/java/org/apache/orc/impl/ParserUtils.java
+++ b/java/core/src/java/org/apache/orc/impl/ParserUtils.java
@@ -306,7 +306,7 @@ public class ParserUtils {
     TypeDescription current = schema;
     int id = schema.getId();
     if (goal < id || goal > schema.getMaximumId()) {
-      throw new IllegalArgumentException("Unknown type id " + id + " in " +
+      throw new IllegalArgumentException("Unknown type id " + goal + " in " +
           current.toJson());
     }
     while (id != goal) {