spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cloud-fan <...@git.apache.org>
Subject [GitHub] spark pull request #22603: [SPARK-25062][SQL] Clean up BlockLocations in InM...
Date Fri, 05 Oct 2018 15:28:11 GMT
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22603#discussion_r223048148
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileIndexSuite.scala
---
    @@ -257,3 +277,19 @@ class FakeParentPathFileSystem extends RawLocalFileSystem {
         URI.create("mockFs://some-bucket")
       }
     }
    +
    +class SpecialBlockLocationFileSystem extends RawLocalFileSystem {
    +
    +  class SpecialBlockLocation(
    +    names: Array[String],
    +    hosts: Array[String],
    +    offset: Long,
    +    length: Long) extends BlockLocation(names, hosts, offset, length)
    +
    +  override def getFileBlockLocations(
    +    file: FileStatus,
    --- End diff --
    
    ditto


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message