Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/2841#discussion_r19498392
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetTableOperations.scala
---
@@ -435,23 +446,67 @@ private[parquet] class FilteringParquetRowInputFormat
s"maxSplitSize or minSplitSie should not be negative: maxSplitSize
= $maxSplitSize;" +
s" minSplitSize = $minSplitSize")
}
- val splits = mutable.ArrayBuffer.empty[ParquetInputSplit]
+
+ // Uses strict type checking by default
val getGlobalMetaData =
classOf[ParquetFileWriter].getDeclaredMethod("getGlobalMetaData",
classOf[JList[Footer]])
getGlobalMetaData.setAccessible(true)
val globalMetaData = getGlobalMetaData.invoke(null,
footers).asInstanceOf[GlobalMetaData]
- // if parquet file is empty, return empty splits.
- if (globalMetaData == null) {
- return splits
- }
+ if (globalMetaData == null){
--- End diff --
Small style thing: you should have spaces before { in here and a few other
places (search the diff for `){`).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]