Aggarwal-Raghav commented on code in PR #6993:
URL: https://github.com/apache/hive/pull/6993#discussion_r4723810515


##########
standalone-metastore/metastore-server/src/main/sql/hive/upgrade-4.2.0-to-4.3.0.hive.sql:
##########
@@ -1,5 +1,149 @@
 SELECT 'Upgrading MetaStore schema from 4.2.0 to 4.3.0';
 
-ALTER TABLE `HIVE_LOCKS` ADD COLUMNS (`HL_CATALOG` string);

Review Comment:
   Even after `Use SYS;`, 
   
   `ALTER TABLE ... ADD COLUMNS` fails on `JdbcSerDe` because existing column 
types get replaced with `"<derived from deserializer>"` as JdbcSerDe is not 
part of `SERDES_USING_METASTORE_FOR_SCHEMA` conf.
   
   Even if by conf tweaking it was made to work,  ADD COLUMNS would append 
`HL_CATALOG` at the end (17 instead of 4 done in HIVE-29244 )but 
"hive.sql.query" would still select only the old 16 columns from RDBMS.
   
   Check this log file: 
[alter_failure.txt](https://github.com/user-attachments/files/35531754/alter_failure.txt)



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to