sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sqoop QA bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-2356) Sqoop2: Derby upgrade should automatically rename jobs that have conflicting names
Date Wed, 13 May 2015 06:06:00 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-2356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541417#comment-14541417
] 

Sqoop QA bot commented on SQOOP-2356:
-------------------------------------

Testing file [SQOOP-2356.patch|https://issues.apache.org/jira/secure/attachment/12732485/SQOOP-2356.patch]
against branch sqoop2 took 0:00:04.902814.

{color:red}Overall:{color} -1 due to an error

{color:red}ERROR:{color} failed to apply patch (exit code 1):
{code}error: cannot apply binary patch to 'test/src/test/resources/repository/derby/derby-repository-1.99.3.tar.gz'
without full index line
error: test/src/test/resources/repository/derby/derby-repository-1.99.3.tar.gz: patch does
not apply
{code}

{color:green}SUCCESS:{color} Clean was successful

Console output is available [here|https://builds.apache.org/job/PreCommit-SQOOP-Build/1342/console].

This message is automatically generated.

> Sqoop2: Derby upgrade should automatically rename jobs that have conflicting names
> ----------------------------------------------------------------------------------
>
>                 Key: SQOOP-2356
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2356
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Abraham Elmahrek
>            Assignee: Abraham Elmahrek
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2356.patch, SQOOP-2356.patch
>
>
> The following should work:
> {code}
> CREATE SEQUENCE job_renamer AS BIGINT START WITH 0;
> UPDATE SQOOP.SQ_JOB set SQB_NAME = SQB_NAME || '_' || CAST(NEXT VALUE FOR job_renamer
AS CHAR(100)) where SQB_ID IN (
> SELECT j1.SQB_ID FROM SQOOP.SQ_JOB AS j1 INNER JOIN ( SELECT SQB_NAME FROM SQOOP.SQ_JOB
GROUP BY (SQB_NAME) HAVING COUNT > 1 ) AS j2 ON j1.SQB_NAME = j2.SQB_NAME
> );
> drop SEQUENCE job_renamer RESTRICT;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message