hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-23074) SchemaTool sql script execution errors when updating the metadata's schema
Date Wed, 01 Apr 2020 01:38:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-23074?focusedWorklogId=413661&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-413661
]

ASF GitHub Bot logged work on HIVE-23074:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Apr/20 01:37
            Start Date: 01/Apr/20 01:37
    Worklog Time Spent: 10m 
      Work Description: John1Tang commented on pull request #961: HIVE-23074: add "IF NOT
EXISTS" for create & "IF EXISTS" for drop to …
URL: https://github.com/apache/hive/pull/961
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 413661)
    Remaining Estimate: 40m  (was: 50m)
            Time Spent: 20m  (was: 10m)

> SchemaTool sql script execution errors when updating the metadata's schema
> --------------------------------------------------------------------------
>
>                 Key: HIVE-23074
>                 URL: https://issues.apache.org/jira/browse/HIVE-23074
>             Project: Hive
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.1.2
>         Environment: running machine: centos7.2 
> metadata db: PostgreSQL 11.3 on x86_64-pc-linux-gnu
> hive version: upgrade from version 3.0.0 to 3.1.2
>            Reporter: John1Tang
>            Assignee: John1Tang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.1.2
>
>   Original Estimate: 1h
>          Time Spent: 20m
>  Remaining Estimate: 40m
>
> SchemaTool sql script executed with conflicts on indices and columns and missed " for
avoiding keywords when updating the metadata's schema
> {code:java}
> bin/schematool -dbType postgres -upgradeSchemaFrom 3.0.0{code}
> went like this:
> {code:java}
> ALTER TABLE "GLOBAL_PRIVS" ADD COLUMN "AUTHORIZER" character varying(128) DEFAULT NULL::character
varying
> Error: ERROR: column "AUTHORIZER" of relation "GLOBAL_PRIVS" already exists (state=42701,code=0){code}
> {code:java}
> ALTER TABLE COMPLETED_TXN_COMPONENTS ADD COLUMN IF NOT EXISTS CTC_UPDATE_DELETE char(1)
NULL
> Error: ERROR: relation "completed_txn_components" does not exist (state=42P01,code=0)
> {code}
> I've already come up with a solution and created a pull request for this issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message