r7raul1984 opened a new pull request, #13631: URL: https://github.com/apache/gluten/pull/13631
## What changes are proposed in this pull request? Recursive Hive scans can include visible files inside hidden directories such as `_temporary` and `.backup`, because filtering is applied only to leaf file names after directory traversal. Filter paths before descending at each directory level, reusing the existing path visibility rules. Fixes #13629 ## How was this patch tested? Added a regression test comparing HivePartitionConverter file enumeration with Hadoop TextInputFormat. It covers recursive and non-recursive scans, visible subdirectories, hidden files, and hidden directories at multiple levels. Passed on Spark 3.5 / Scala 2.12 with the Velox profile: - Suite: `org.apache.spark.sql.hive.execution.GlutenHiveTableScanSuite` - Test: `Gluten - Hive recursive file listing excludes hidden directories` - Result: 1 test passed, 0 failed. The pre-fix discrepancy was independently reproduced: recursive scanning included six files instead of the expected two. The same comparison passed after the fix. Native libraries were not rebuilt, and the full test suite was not run. ## Was this patch authored or co-authored using generative AI tooling? Generated-by: Codex gpt-6.1-sol -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
