[ https://issues.apache.org/jira/browse/HIVE-2484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121621#comment-13121621 ]
He Yongqiang commented on HIVE-2484: ------------------------------------ sorry, i should be clear: {code} + if (part != null) { + part.getTPartition().getSd().getSerdeInfo().setSerializationLib(serdeName); + if ((alterTbl.getProps() != null) && (alterTbl.getProps().size() > 0)) { + part.getTPartition().getSd().getSerdeInfo().getParameters().putAll( + alterTbl.getProps()); + } + tbl.setFields(Hive.getFieldsFromDeserializer(tbl.getTableName(), tbl. + getDeserializer())); + } else { + tbl.setSerializationLib(alterTbl.getSerdeName()); + if ((alterTbl.getProps() != null) && (alterTbl.getProps().size() > 0)) { + tbl.getTTable().getSd().getSerdeInfo().getParameters().putAll( + alterTbl.getProps()); + } + tbl.setFields(Hive.getFieldsFromDeserializer(tbl.getTableName(), tbl. + getDeserializer())); {code} For the partition level, should not change the table object, and should change the partition object. > Enable ALTER TABLE SET SERDE to work on partition level > ------------------------------------------------------- > > Key: HIVE-2484 > URL: https://issues.apache.org/jira/browse/HIVE-2484 > Project: Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Xiao Li > Attachments: HIVE-2484.patch.2.txt, HIVE-2484.patch.3.txt, > HIVE-2484.patch.txt > > > Allowed ALTER TABLE SET SERDE and ALTER TABLE SET SERDEPROPERTIES to accept > the PARTITION qualifier to work on a specific partition. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira