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 90DF3200B6B for ; Fri, 9 Sep 2016 09:57:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F87D160AC2; Fri, 9 Sep 2016 07:57:23 +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 D8252160AB6 for ; Fri, 9 Sep 2016 09:57:22 +0200 (CEST) Received: (qmail 5002 invoked by uid 500); 9 Sep 2016 07:57:22 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 4990 invoked by uid 99); 9 Sep 2016 07:57:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 07:57:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B81652C014C for ; Fri, 9 Sep 2016 07:57:21 +0000 (UTC) Date: Fri, 9 Sep 2016 07:57:21 +0000 (UTC) From: =?utf-8?Q?=E8=83=A1=E6=99=93=E4=B8=9C_=28JIRA=29?= To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SQOOP-3008) GenericJdbcPartitioner.constructTextConditions(String, Object, Object, String, String, boolean, boolean) may occur java.lang.ClassCastException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Sep 2016 07:57:23 -0000 [ https://issues.apache.org/jira/browse/SQOOP-3008?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] =E8=83=A1=E6=99=93=E4=B8=9C updated SQOOP-3008: ----------------------- Attachment: SQOOP-3008.patch I resolved this issue. Welcome to test > GenericJdbcPartitioner.constructTextConditions(String, Object, Object, St= ring, String, boolean, boolean) may occur java.lang.ClassCastException > -------------------------------------------------------------------------= ---------------------------------------------------------------------- > > Key: SQOOP-3008 > URL: https://issues.apache.org/jira/browse/SQOOP-3008 > Project: Sqoop > Issue Type: Bug > Components: connectors/generic > Affects Versions: 1.99.6, 1.99.7 > Reporter: =E8=83=A1=E6=99=93=E4=B8=9C > Attachments: SQOOP-3008.patch > > > org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.constructTextCondi= tions(String, Object, Object, String, String, boolean, boolean)=20 > this function has such cast: > String lbString =3D prefix + bigDecimalToText((BigDecimal)lowerBo= und); > String ubString =3D prefix + bigDecimalToText((BigDecimal)upperBo= und); > and org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.partitionTextC= olumn() has this statement: > constructTextConditions(prefix, 0, 0, > partitionMinValue, partitionMaxValue, true, true) > it will cause java.lang.ClassCastException: java.lang.Integer cannot be c= ast to java.math.BigDecimal -- This message was sent by Atlassian JIRA (v6.3.4#6332)