Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The schema upgrade is failing with:
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 ***
Attachments
Issue Links
- is broken by
-
HIVE-24451 Add schema changes for MSSQL
- Closed
- links to