[ https://issues.apache.org/jira/browse/HIVE-7286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14043092#comment-14043092 ]
Szehon Ho commented on HIVE-7286: --------------------------------- Hi, I have some high-level comments. This is a good idea, but I think it will be much cleaner once HIVE-5976 is implemented? One more thought, I'm a bit hesitant on enforcing all new HiveSerdes to must plugin to this test. It seems hard for some Serde, the way the test is written. As test uses metastore schema, to get Avro to plugin, you have written a lot of test-code to translate metastore-table to avro schema, and even tests to test that code, maybe its over-complicated. There is a conf SERDESUSINGMETASTOREFORSCHEMA, would it work to first enforce tests for those serdes? Or not sure if the test can be re-factored to make it simpler for avro to be pluged-in? What do you think? > Parameterize HCatMapReduceTest for testing against all Hive storage formats > --------------------------------------------------------------------------- > > Key: HIVE-7286 > URL: https://issues.apache.org/jira/browse/HIVE-7286 > Project: Hive > Issue Type: Test > Components: HCatalog > Reporter: David Chen > Assignee: David Chen > Attachments: HIVE-7286.1.patch > > > Currently, HCatMapReduceTest, which is extended by the following test suites: > * TestHCatDynamicPartitioned > * TestHCatNonPartitioned > * TestHCatPartitioned > * TestHCatExternalDynamicPartitioned > * TestHCatExternalNonPartitioned > * TestHCatExternalPartitioned > * TestHCatMutableDynamicPartitioned > * TestHCatMutableNonPartitioned > * TestHCatMutablePartitioned > These tests run against RCFile. Currently, only TestHCatDynamicPartitioned is > run against any other storage format (ORC). > Ideally, HCatalog should be tested against all storage formats supported by > Hive. The easiest way to accomplish this is to turn HCatMapReduceTest into a > parameterized test fixture that enumerates all Hive storage formats. Until > HIVE-5976 is implemented, we would need to manually create the mapping of > SerDe to InputFormat and OutputFormat. This way, we can explicitly keep track > of which storage formats currently work with HCatalog or which ones are > untested or have test failures. The test fixture should also use Reflection > to find all classes in the classpath that implements the SerDe interface and > raise a failure if any of them are not enumerated. -- This message was sent by Atlassian JIRA (v6.2#6252)