[
https://issues.apache.org/jira/browse/SQOOP-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15948571#comment-15948571
]
Sqoop QA bot commented on SQOOP-3008:
-------------------------------------
Testing file
[SQOOP-3008.patch|https://issues.apache.org/jira/secure/attachment/12861174/SQOOP-3008.patch]
against branch sqoop2 took 1:17:27.199347.
{color:red}Overall:{color} -1 due to an error(s), see details below:
{color:green}SUCCESS:{color} Clean was successful
{color:green}SUCCESS:{color} Patch applied correctly
{color:green}SUCCESS:{color} Patch add/modify test case
{color:green}SUCCESS:{color} License check passed
{color:green}SUCCESS:{color} Patch compiled
{color:green}SUCCESS:{color} All unit tests passed (executed 1772 tests)
{color:green}SUCCESS:{color} Test coverage did not decreased
([report|https://builds.apache.org/job/PreCommit-SQOOP-Build/2518/artifact/patch-process/cobertura_report.txt])
{color:green}SUCCESS:{color} No new findbugs warnings
([report|https://builds.apache.org/job/PreCommit-SQOOP-Build/2518/artifact/patch-process/findbugs_report.txt])
{color:red}ERROR:{color} Some of integration tests failed
([report|https://builds.apache.org/job/PreCommit-SQOOP-Build/2518/artifact/patch-process/test_integration.txt],
executed 81 tests)
* Test {{integration-tests}}
* Test {{org.apache.sqoop.integration.connector.hdfs.OutputDirectoryTest}}
* Test {{org.apache.sqoop.integration.connector.hdfs.S3Test}}
Console output is available
[here|https://builds.apache.org/job/PreCommit-SQOOP-Build/2518/console].
This message is automatically generated.
> GenericJdbcPartitioner.constructTextConditions(String, Object, Object,
> String, 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: hu xiaodong
> Attachments: SQOOP-3008.patch
>
>
> org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.constructTextConditions(String,
> Object, Object, String, String, boolean, boolean)
> this function has such cast:
> String lbString = prefix + bigDecimalToText((BigDecimal)lowerBound);
> String ubString = prefix + bigDecimalToText((BigDecimal)upperBound);
> and
> org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.partitionTextColumn()
> has this statement:
> constructTextConditions(prefix, 0, 0,
> partitionMinValue, partitionMaxValue, true, true)
> it will cause java.lang.ClassCastException: java.lang.Integer cannot be cast
> to java.math.BigDecimal
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)