[
https://issues.apache.org/jira/browse/HIVE-25551?focusedWorklogId=655490&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-655490
]
ASF GitHub Bot logged work on HIVE-25551:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Sep/21 13:14
Start Date: 27/Sep/21 13:14
Worklog Time Spent: 10m
Work Description: nrg4878 commented on pull request #2669:
URL: https://github.com/apache/hive/pull/2669#issuecomment-927862889
Fix has been pushed to master. Please close this PR.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 655490)
Time Spent: 40m (was: 0.5h)
> 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: 40m
> 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)