Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D81AF200C7B for ; Sat, 20 May 2017 20:58:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CC1AD160BBE; Sat, 20 May 2017 18:58:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1DB9B160BA7 for ; Sat, 20 May 2017 20:58:07 +0200 (CEST) Received: (qmail 85104 invoked by uid 500); 20 May 2017 18:58:07 -0000 Mailing-List: contact dev-help@orc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@orc.apache.org Delivered-To: mailing list dev@orc.apache.org Received: (qmail 85093 invoked by uid 99); 20 May 2017 18:58:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 May 2017 18:58:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E8F221A008D for ; Sat, 20 May 2017 18:58:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 3LJ7t8dziM-B for ; Sat, 20 May 2017 18:58:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 117195F36B for ; Sat, 20 May 2017 18:58:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 72FFBE00C7 for ; Sat, 20 May 2017 18:58:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id CF2152193C for ; Sat, 20 May 2017 18:58:04 +0000 (UTC) Date: Sat, 20 May 2017 18:58:04 +0000 (UTC) From: "Shawn Hooton (JIRA)" To: dev@orc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ORC-198) Exception with MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 20 May 2017 18:58:09 -0000 Shawn Hooton created ORC-198: -------------------------------- Summary: Exception with Key: ORC-198 URL: https://issues.apache.org/jira/browse/ORC-198 Project: ORC Issue Type: Bug Components: Java Affects Versions: 1.5.0 Reporter: Shawn Hooton Attachments: example-v1.json Using the command (sample payload attached): java -jar orc-tools-1.5.0-SNAPSHOT-uber.jar convert ~/example-v1.json throws exception: Scanning /home/shh/example-v1.json for schema Exception in thread "main" java.lang.IllegalArgumentException: precision 8 is out of range 1 .. 10 at org.apache.orc.TypeDescription.withPrecision(TypeDescription.java:418) at org.apache.orc.tools.json.NumericType.getSchema(NumericType.java:105) at org.apache.orc.tools.json.StructType.getSchema(StructType.java:110) at org.apache.orc.tools.json.JsonSchemaFinder.getSchema(JsonSchemaFinder.java:257) at org.apache.orc.tools.convert.ConvertTool.computeSchema(ConvertTool.java:48) at org.apache.orc.tools.convert.ConvertTool.main(ConvertTool.java:58) at org.apache.orc.tools.Driver.main(Driver.java:112) Because org/apache/orc/tools/json/NumericType,getSchema() method incorrectly calls .withPrecision() before .withScale() Pull request incoming -- This message was sent by Atlassian JIRA (v6.3.15#6346)