[ https://issues.apache.org/jira/browse/HIVE-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashutosh Chauhan updated HIVE-1237: ----------------------------------- Attachment: hive-1237.patch returnObjectInspector should always be created, otherwise will throw NPE as demonstrated here. Patch which does that. Also, included a test case which fails without patch but passes with the patch. > select coalesce(null) from src dies > ----------------------------------- > > Key: HIVE-1237 > URL: https://issues.apache.org/jira/browse/HIVE-1237 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Namit Jain > Attachments: hive-1237.patch > > > select coalesce(null) from src ; > FAILED: Unknown exception: null -- 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