[ https://issues.apache.org/jira/browse/HIVE-7868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14121197#comment-14121197 ]
Hive QA commented on HIVE-7868: ------------------------------- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12666425/HIVE-7868.patch {color:red}ERROR:{color} -1 due to 8 failed/errored test(s), 6142 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_avro_schema_error_message org.apache.hadoop.hive.serde2.avro.TestAvroSerde.badSchemaURLProvidedReturnsErrorSchema org.apache.hadoop.hive.serde2.avro.TestAvroSerde.bothPropertiesSetToNoneReturnsErrorSchema org.apache.hadoop.hive.serde2.avro.TestAvroSerde.emptySchemaProvidedReturnsErrorSchema org.apache.hadoop.hive.serde2.avro.TestAvroSerde.emptySchemaURLProvidedReturnsErrorSchema org.apache.hadoop.hive.serde2.avro.TestAvroSerde.gibberishSchemaProvidedReturnsErrorSchema org.apache.hadoop.hive.serde2.avro.TestAvroSerde.noSchemaProvidedReturnsErrorSchema org.apache.hive.jdbc.miniHS2.TestHiveServer2.testConnection {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/633/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/633/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-633/ Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 8 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12666425 > AvroSerDe error handling could be improved > ------------------------------------------ > > Key: HIVE-7868 > URL: https://issues.apache.org/jira/browse/HIVE-7868 > Project: Hive > Issue Type: Improvement > Reporter: Brock Noland > Assignee: Ferdinand Xu > Attachments: HIVE-7868.patch > > > When an Avro schema is invalid, AvroSerDe returns an error message instead of > throwing an exception. This is described in > {{AvroSerdeUtils.determineSchemaOrReturnErrorSchema}}: > {noformat} > /** > * Attempt to determine the schema via the usual means, but do not throw > * an exception if we fail. Instead, signal failure via a special > * schema. This is used because Hive calls init on the serde during > * any call, including calls to update the serde properties, meaning > * if the serde is in a bad state, there is no way to update that state. > */ > {noformat} > I believe we should find a way to provide a better experience to our users. -- This message was sent by Atlassian JIRA (v6.3.4#6332)