zwq199400 commented on PR #6285:
URL: https://github.com/apache/kyuubi/pull/6285#issuecomment-2046896597

   When I connect to HIVE to read data, an error message will appear as follows:
   `Caused by: java.lang.ClassCastException: 
org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus cannot be cast to 
org.apache.spark.sql.execution.datasources.FileStatusWithMetadata
        at 
scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
        at 
scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
        at 
scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
        at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
        at scala.collection.TraversableLike.map(TraversableLike.scala:286)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:279)
        at scala.collection.AbstractTraversable.map(Traversable.scala:108)
        at 
org.apache.spark.sql.execution.datasources.FilePartition$.$anonfun$maxSplitBytes$2(FilePartition.scala:116)
        at scala.collection.immutable.Stream.flatMap(Stream.scala:489)
        at 
org.apache.spark.sql.execution.datasources.FilePartition$.maxSplitBytes(FilePartition.scala:116)
        at 
org.apache.kyuubi.spark.connector.hive.read.HiveScan.partitions(HiveScan.scala:89)
        at 
org.apache.spark.sql.execution.datasources.v2.FileScan.planInputPartitions(FileScan.scala:177)
        at 
org.apache.spark.sql.execution.datasources.v2.FileScan.planInputPartitions$(FileScan.scala:176)
        at 
org.apache.kyuubi.spark.connector.hive.read.HiveScan.planInputPartitions(HiveScan.scala:41)`
   
   
   compared 
org.apache.spark.sql.execution.datasources.PartitioningAwareFileIndex#listFiles 
method,  found that the calling method for the PartitionDirectory class has 
changed in [SPARK-43039] [https://github.com/apache/spark/pull/40677](url)
   
   So is this modification correct?


-- 
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]

Reply via email to