[ https://issues.apache.org/jira/browse/HIVE-1893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978226#action_12978226 ]
Carl Steinbach commented on HIVE-1893: -------------------------------------- I grepped through the Hive source code and found this problem in many places. Instead of modifying all of these files to add null checks I recommend instead that we create a HiveFileSystem wrapper class and put the checks there, and then modify Hive code to access FileSystem objects through the wrapper. This will allow Hive to rely on the FileSystem spec even when implementations of the FileSystem spec don't adhere to it. > ConditionalResolverSkewJoin.getTasks may throw NullPointerException > ------------------------------------------------------------------- > > Key: HIVE-1893 > URL: https://issues.apache.org/jira/browse/HIVE-1893 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.4.0, 0.4.1, 0.5.0, 0.6.0 > Environment: RedHat 2.6.18-164.11.1.el5, JDK 1.6.0_06 > Reporter: Zhai Yantang > Fix For: 0.7.0 > > > In ConditionalResolverSkewJoin.getTasks(HiveConf, Object), FileStatus[] > fstatus = inpFs.listStatus(dirPath) and then fstatus.length is accessed. > However, DistributedFileSystem.listStatus(Path p) could return null, thus > fstatus may be null, and then fstatus.length will throw NullPointerException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.