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 21:27:05 UTC
[orc] branch branch-1.7 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 branch-1.7
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-1.7 by this push:
new e1f06d3 ORC-856: Fix exception description in findSubtype (#758)
e1f06d3 is described below
commit e1f06d35d46ef61abac797ace83dc5bddbb858b6
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
(cherry picked from commit 12dfecde8538ed64df1bbe84d0aaa0ad6c1df2d8)
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
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 5dbd382..84bf049 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) {