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 19:19:00 GMT

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

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

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

{color:green}Overall:{color} +1 all checks pass

{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 fast unit tests passed (executed 672 tests)
{color:green}SUCCESS:{color} All slow unit tests passed (executed 1 tests)
{color:green}SUCCESS:{color} All fast integration tests passed (executed 27 tests)
{color:green}SUCCESS:{color} All slow integration tests passed (executed 42 tests)

Console output is available [here|https://builds.apache.org/job/PreCommit-SQOOP-Build/1346/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, SQOOP-2356.patch, 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