Hive
  1. Hive
  2. HIVE-6129

alter exchange is implemented in inverted manner

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      see https://issues.apache.org/jira/browse/HIVE-4095?focusedCommentId=13819885&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13819885

      alter exchange should be implemented accord to document in https://cwiki.apache.org/confluence/display/Hive/Exchange+Partition. i.e

      alter table T1 exchange partition (ds='1') with table T2" 
      

      should be (after creating T1@ds=1)

      moves the data from T2 to T1@ds=1....

      1. HIVE-6129.1.patch.txt
        22 kB
        Navis
      2. HIVE-6129.2.patch
        22 kB
        Harish Butani

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          3h 38m 1 Navis 03/Jan/14 04:23
          Patch Available Patch Available Resolved Resolved
          83d 11h 3m 1 Harish Butani 27/Mar/14 15:27
          Navis made changes -
          Link This issue blocks HIVE-6133 [ HIVE-6133 ]
          Harish Butani made changes -
          Fix Version/s 0.13.0 [ 12324986 ]
          Harish Butani made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Harish Butani added a comment -

          committed to trunk and 0.13

          Show
          Harish Butani added a comment - committed to trunk and 0.13
          Hide
          Hive QA added a comment -

          Overall: +1 all checks pass

          Here are the results of testing the latest attachment:
          https://issues.apache.org/jira/secure/attachment/12636955/HIVE-6129.2.patch

          SUCCESS: +1 5491 tests passed

          Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1977/testReport
          Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1977/console

          Messages:

          Executing org.apache.hive.ptest.execution.PrepPhase
          Executing org.apache.hive.ptest.execution.ExecutionPhase
          Executing org.apache.hive.ptest.execution.ReportingPhase
          

          This message is automatically generated.

          ATTACHMENT ID: 12636955

          Show
          Hive QA added a comment - Overall : +1 all checks pass Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12636955/HIVE-6129.2.patch SUCCESS: +1 5491 tests passed Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1977/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1977/console Messages: Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase This message is automatically generated. ATTACHMENT ID: 12636955
          Hide
          Harish Butani added a comment -

          +1

          Show
          Harish Butani added a comment - +1
          Hide
          Alan Gates added a comment -

          Ran tests on the latest patch, all looks good.

          Show
          Alan Gates added a comment - Ran tests on the latest patch, all looks good.
          Harish Butani made changes -
          Attachment HIVE-6129.2.patch [ 12636955 ]
          Hide
          Harish Butani added a comment -

          Navis this patch was not applying anymore. Have regenned the .q.out files. Please verify.

          Show
          Harish Butani added a comment - Navis this patch was not applying anymore. Have regenned the .q.out files. Please verify.
          Hide
          Hive QA added a comment -

          Overall: +1 all checks pass

          Here are the results of testing the latest attachment:
          https://issues.apache.org/jira/secure/attachment/12621248/HIVE-6129.1.patch.txt

          SUCCESS: +1 4874 tests passed

          Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/799/testReport
          Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/799/console

          Messages:

          Executing org.apache.hive.ptest.execution.PrepPhase
          Executing org.apache.hive.ptest.execution.ExecutionPhase
          Executing org.apache.hive.ptest.execution.ReportingPhase
          

          This message is automatically generated.

          ATTACHMENT ID: 12621248

          Show
          Hive QA added a comment - Overall : +1 all checks pass Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12621248/HIVE-6129.1.patch.txt SUCCESS: +1 4874 tests passed Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/799/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/799/console Messages: Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase This message is automatically generated. ATTACHMENT ID: 12621248
          Navis made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Navis made changes -
          Remote Link This issue links to "review board (Web Link)" [ 13619 ]
          Navis made changes -
          Attachment HIVE-6129.1.patch.txt [ 12621248 ]
          Navis made changes -
          Description alter exchange should be implemented accord to document in https://cwiki.apache.org/confluence/display/Hive/Exchange+Partition. i.e

          {code}
          alter table T1 exchange partition (ds='1') with table T2"
          {code}
          should be (after creating T1@ds=1)
          {quote}
          moves the data from T2 to T1@ds=1....
          {quote}
          see https://issues.apache.org/jira/browse/HIVE-4095?focusedCommentId=13819885&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13819885

          alter exchange should be implemented accord to document in https://cwiki.apache.org/confluence/display/Hive/Exchange+Partition. i.e

          {code}
          alter table T1 exchange partition (ds='1') with table T2"
          {code}
          should be (after creating T1@ds=1)
          {quote}
          moves the data from T2 to T1@ds=1....
          {quote}
          Navis made changes -
          Field Original Value New Value
          Link This issue is related to HIVE-4095 [ HIVE-4095 ]
          Navis created issue -

            People

            • Assignee:
              Navis
              Reporter:
              Navis
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development