HCatInputFormat.getTableSchema throws Exception rather than IOException
-----------------------------------------------------------------------

                 Key: HCATALOG-165
                 URL: https://issues.apache.org/jira/browse/HCATALOG-165
             Project: HCatalog
          Issue Type: Bug
          Components: mapreduce
            Reporter: David Capwell


For users, if they want the table schema for what they are reading they need to 
do the following:
this.schema = HCatInputFormat.getTableSchema(context);

For their output they do the same but for HCatOutputFormat:
this.schema = HCatOutputFormat.getTableSchema(context);

The HCatOutputFormat.getTableSchema throws an IOException and the 
HCatInputFormat.getTableSchema throws just Exception.  This is caused by 
"private static InputJobInfo getJobInfo(JobContext jobContext) throws 
Exception" in HCatBaseInputformat

This method should match the HCatBaseOutputFormat's version which throws the 
following
throw new HCatException(ErrorType.ERROR_NOT_INITIALIZED);

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

        

Reply via email to