Johndee Burks created HIVE-4890: ----------------------------------- Summary: Make the list of SerDes supported by REPLACECOLS a configuration property Key: HIVE-4890 URL: https://issues.apache.org/jira/browse/HIVE-4890 Project: Hive Issue Type: New Feature Affects Versions: 0.10.0 Environment: CDH4.3, Hive 0.10 Reporter: Johndee Burks Priority: Minor
It would be nice to make the SerDes supported by REPLACECOLS configurable via a configuration property. For instance you cannot use this REPLACECOLS on a table with a RegEx SerDe, brought up here https://issues.apache.org/jira/browse/HIVE-4672. 3062 } else if (alterTbl.getOp() == AlterTableDesc.AlterTableTypes.REPLACECOLS) { 3063 // change SerDe to LazySimpleSerDe if it is columnsetSerDe 3064 if (tbl.getSerializationLib().equals( 3065 "org.apache.hadoop.hive.serde.thrift.columnsetSerDe")) { 3066 console 3067 .printInfo("Replacing columns for columnsetSerDe and changing to LazySimpleSerDe"); 3068 tbl.setSerializationLib(LazySimpleSerDe.class.getName()); 3069 } else if (!tbl.getSerializationLib().equals( 3070 MetadataTypedColumnsetSerDe.class.getName()) 3071 && !tbl.getSerializationLib().equals(LazySimpleSerDe.class.getName()) 3072 && !tbl.getSerializationLib().equals(ColumnarSerDe.class.getName()) 3073 && !tbl.getSerializationLib().equals(DynamicSerDe.class.getName())) { 3074 formatter.consoleError(console, 3075 "Replace columns is not supported for this table. " 3076 + "SerDe may be incompatible.", 3077 formatter.ERROR); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira