QiangCai commented on a change in pull request #3667: [HOTFIX] Enhanced
compatibility with Spark's FilePartition interface
URL: https://github.com/apache/carbondata/pull/3667#discussion_r392010381
##########
File path:
integration/spark/src/main/spark2.3/org/apache/carbondata/spark/adapter/CarbonToSparkAdapter.scala
##########
@@ -17,12 +17,12 @@
package org.apache.carbondata.spark.adapter
-import scala.collection.mutable.ArrayBuffer
+import scala.collection.mutable.{ArrayBuffer, WrappedArray}
import org.apache.spark.sql.execution.datasources.{FilePartition,
PartitionedFile}
object CarbonToSparkAdapter {
def createFilePartition(index: Int, files: ArrayBuffer[PartitionedFile]) = {
- FilePartition(index, files.toArray.toSeq)
Review comment:
better to modify CsvRDDHelper directly and remove
adapter/CarbonToSparkAdapter.scala (both 2.3 and 2.4)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services