[ https://issues.apache.org/jira/browse/HIVE-25551?focusedWorklogId=655516&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-655516 ]
ASF GitHub Bot logged work on HIVE-25551: ----------------------------------------- Author: ASF GitHub Bot Created on: 27/Sep/21 14:03 Start Date: 27/Sep/21 14:03 Worklog Time Spent: 10m Work Description: ayushtkn commented on pull request #2669: URL: https://github.com/apache/hive/pull/2669#issuecomment-927906203 Thanx @nrg4878 -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 655516) Time Spent: 1h (was: 50m) > Schema upgrade for MSSQL fails when adding TYPE column in DBS table > ------------------------------------------------------------------- > > Key: HIVE-25551 > URL: https://issues.apache.org/jira/browse/HIVE-25551 > Project: Hive > Issue Type: Bug > Reporter: Ayush Saxena > Assignee: Ayush Saxena > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 1h > Remaining Estimate: 0h > > The schema upgrade is failing with: > {noformat} > ALTER TABLE "DBS" ADD "TYPE" nvarchar(32) DEFAULT "NATIVE" NOT NULL; > Error: The name "NATIVE" is not permitted in this context. Valid expressions > are constants, constant expressions, and (in some contexts) variables. Column > names are not permitted. (state=S0001,code=128) > Aborting command set because "force" is false and command failed: "ALTER > TABLE "DBS" ADD "TYPE" nvarchar(32) DEFAULT "NATIVE" NOT NULL;" > [ERROR] 2021-09-23 18:34:34.917 [main] MetastoreSchemaTool - Upgrade FAILED! > Metastore state would be inconsistent !! > Upgrade FAILED! Metastore state would be inconsistent !! > [ERROR] 2021-09-23 18:34:34.917 [main] MetastoreSchemaTool - Underlying > cause: java.io.IOException : Schema script failed, errorcode OTHER > Underlying cause: java.io.IOException : Schema script failed, errorcode OTHER > [ERROR] 2021-09-23 18:34:34.917 [main] MetastoreSchemaTool - Use --verbose > for detailed stacktrace. > Use --verbose for detailed stacktrace. > [ERROR] 2021-09-23 18:34:34.917 [main] MetastoreSchemaTool - *** schemaTool > failed *** > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)