Author: rohini Date: Thu Mar 30 17:31:59 2023 New Revision: 1908807 URL: http://svn.apache.org/viewvc?rev=1908807&view=rev Log: PIG-5432: OrcStorage fails to detect schema in some cases (jtolar via rohini)
Modified: pig/trunk/CHANGES.txt pig/trunk/src/org/apache/pig/impl/util/Utils.java Modified: pig/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1908807&r1=1908806&r2=1908807&view=diff ============================================================================== --- pig/trunk/CHANGES.txt (original) +++ pig/trunk/CHANGES.txt Thu Mar 30 17:31:59 2023 @@ -133,6 +133,8 @@ OPTIMIZATIONS BUG FIXES +PIG-5432: OrcStorage fails to detect schema in some cases (jtolar via rohini) + PIG-5439: pig.exec.reducers.max does not take effect for skewed join (vnarayanan7 via rohini) PIG-5431: Date datatype is different between Hive 1.x and Hive 3.x (rohini) Modified: pig/trunk/src/org/apache/pig/impl/util/Utils.java URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/impl/util/Utils.java?rev=1908807&r1=1908806&r2=1908807&view=diff ============================================================================== --- pig/trunk/src/org/apache/pig/impl/util/Utils.java (original) +++ pig/trunk/src/org/apache/pig/impl/util/Utils.java Thu Mar 30 17:31:59 2023 @@ -655,9 +655,14 @@ public class Utils { continue; } } else { - return depthFirstSearchForFile( + Path result = depthFirstSearchForFile( fileSystem.listStatus(f.getPath(), VISIBLE_FILES), fileSystem, filter); + + // return the first found result, else continue searching through statusArray + if (result != null) { + return result; + } } }