{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/29015695","id":29015695,"diff_hunk":"@@ -0,0 +1,425 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.apache.spark.sql.sources\n+\n+import java.io.IOException\n+\n+import scala.collection.mutable.ArrayBuffer\n+\n+import org.apache.hadoop.fs.{FileSystem, Path}\n+\n+import org.apache.spark.rdd.RDD\n+import org.apache.spark.sql.types._\n+import org.apache.spark.sql.{Row, SQLContext, SaveMode}\n+import org.apache.spark.util.Utils\n+\n+class SimpleFSBasedSource extends RelationProvider {\n+  override def createRelation(\n+      sqlContext: SQLContext,\n+      parameters: Map[String, String]): BaseRelation = {\n+    SimpleFSBasedRelation(parameters)(sqlContext)\n+  }\n+}\n+\n+case class SimpleFSBasedRelation\n+    (parameter: Map[String, String])\n+    (val sqlContext: SQLContext)\n+  extends FSBasedRelation {\n+\n+  class SimpleOutputWriter extends OutputWriter {\n+    override def write(row: Row): Unit = TestResult.writtenRows += row\n+  }\n+\n+  override val path = parameter(\"path\")\n+\n+  override def dataSchema: StructType =\n+    DataType.fromJson(parameter(\"schema\")).asInstanceOf[StructType]\n+\n+  override def buildScan(\n+      requiredColumns: Array[String],\n+      filters: Array[Filter],\n+      inputPaths: Array[String]): RDD[Row] = {\n+    val basePath = new Path(path)\n+    val fs = basePath.getFileSystem(sqlContext.sparkContext.hadoopConfiguration)\n+\n+    // Used to test queries like \"INSERT OVERWRITE tbl SELECT * FROM tbl\". Source directory\n+    // shouldn't be removed before scanning the data.\n+    assert(inputPaths.map(new Path(_)).forall(fs.exists))\n+\n+    TestResult.requiredColumns = requiredColumns\n+    TestResult.filters = filters\n+    TestResult.inputPaths = inputPaths\n+\n+    Option(TestResult.rowsToRead).getOrElse(sqlContext.emptyResult)\n+  }\n+\n+  override def outputWriterClass: Class[_ <: OutputWriter] = classOf[SimpleOutputWriter]\n+}\n+\n+object TestResult {\n+  var requiredColumns: Array[String] = _\n+  var filters: Array[Filter] = _\n+  var inputPaths: Array[String] = _\n+  var rowsToRead: RDD[Row] = _\n+  var writtenRows: ArrayBuffer[Row] = ArrayBuffer.empty[Row]\n+\n+  def reset(): Unit = {\n+    requiredColumns = null\n+    filters = null\n+    inputPaths = null\n+    rowsToRead = null\n+    writtenRows.clear()\n+  }\n+}\n+\n+class FSBasedRelationSuite extends DataSourceTest {\n+  import caseInsensitiveContext._\n+  import caseInsensitiveContext.implicits._\n+\n+  var basePath: Path = _\n+\n+  var fs: FileSystem = _\n+\n+  val dataSchema =\n+    StructType(\n+      Seq(\n+        StructField(\"a\", IntegerType, nullable = false),\n+        StructField(\"b\", StringType, nullable = false)))\n+\n+  val testDF = (for {\n+    i <- 1 to 3\n+    p <- 1 to 2\n+  } yield (i, s\"val_$i\", p)).toDF(\"a\", \"b\", \"p1\")\n+\n+  before {\n+    basePath = new Path(Utils.createTempDir().getCanonicalPath)\n+    fs = basePath.getFileSystem(sparkContext.hadoopConfiguration)\n+    TestResult.reset()\n+  }\n+\n+  ignore(\"load() - partitioned table - partition column not included in data files\") {\n+    fs.mkdirs(new Path(basePath, \"p1=1/p2=hello\"))\n+    fs.mkdirs(new Path(basePath, \"p1=2/p2=world\"))\n+\n+    val df = load(\n+      source = classOf[SimpleFSBasedSource].getCanonicalName,\n+      options = Map(\n+        \"path\" -> basePath.toString,\n+        \"schema\" -> dataSchema.json))\n+\n+    df.queryExecution.analyzed.collect {\n+      case LogicalRelation(relation: SimpleFSBasedRelation) =>\n+        assert(relation.dataSchema === dataSchema)\n+      case _ =>\n+        fail(\"Couldn't find expected SimpleFSBasedRelation instance\")\n+    }\n+\n+    val expectedSchema =\n+      StructType(\n+        dataSchema ++ Seq(\n+          StructField(\"p1\", IntegerType, nullable = true),\n+          StructField(\"p2\", StringType, nullable = true)))\n+\n+    assert(df.schema === expectedSchema)\n+\n+    df.select(\"b\").where($\"a\" > 0 && $\"p1\" === 1).collect()\n+\n+    // Check for column pruning, filter push-down, and partition pruning\n+    assert(TestResult.requiredColumns.toSet === Set(\"a\", \"b\"))\n+    assert(TestResult.filters === Seq(GreaterThan(\"a\", 0)))\n+    assert(TestResult.inputPaths === Seq(new Path(basePath, \"p1=1\").toString))\n+  }\n+\n+  ignore(\"load() - partitioned table - partition column included in data files\") {\n+    val data = sparkContext.parallelize(Seq.empty[String])\n+    data.saveAsTextFile(new Path(basePath, \"p1=1/p2=hello\").toString)\n+    data.saveAsTextFile(new Path(basePath, \"p1=2/p2=world\").toString)\n+\n+    val dataSchema =\n+      StructType(\n+        Seq(\n+          StructField(\"a\", IntegerType, nullable = false),\n+          StructField(\"p1\", IntegerType, nullable = true),\n+          StructField(\"b\", StringType, nullable = false)))\n+\n+    val df = load(\n+      source = classOf[SimpleFSBasedSource].getCanonicalName,\n+      options = Map(\n+        \"path\" -> basePath.toString,\n+        \"schema\" -> dataSchema.json))\n+\n+    df.queryExecution.analyzed.collect {\n+      case LogicalRelation(relation: SimpleFSBasedRelation) =>\n+        assert(relation.dataSchema === dataSchema)\n+      case _ =>\n+        fail(\"Couldn't find expected SimpleFSBasedRelation instance\")\n+    }\n+\n+    val expectedSchema =\n+      StructType(\n+        Seq(\n+          StructField(\"a\", IntegerType, nullable = false),\n+          StructField(\"p1\", IntegerType, nullable = true),\n+          StructField(\"b\", StringType, nullable = false),\n+          StructField(\"p2\", StringType, nullable = true)))\n+\n+    assert(df.schema === expectedSchema)\n+\n+    df.select(\"b\").where($\"a\" > 0 && $\"p1\" === 1).collect()\n+\n+    // Check for column pruning, filter push-down, and partition pruning\n+    assert(TestResult.requiredColumns.toSet === Set(\"a\", \"b\"))\n+    assert(TestResult.filters === Seq(GreaterThan(\"a\", 0)))\n+    assert(TestResult.inputPaths === Seq(new Path(basePath, \"p1=1\").toString))\n+  }\n+\n+  ignore(\"save() - partitioned table - Overwrite\") {\n+    testDF.save(\n+      source = classOf[SimpleFSBasedSource].getCanonicalName,\n+      mode = SaveMode.Overwrite,\n+      options = Map(\n+        \"path\" -> basePath.toString,\n+        \"schema\" -> dataSchema.json),\n+      partitionColumns = Seq(\"p1\"))\n+\n+    // Written rows shouldn't contain dynamic partition column\n+    val expectedRows = for (i <- 1 to 3; _ <- 1 to 2) yield Row(i, s\"val_$i\")\n+    assert(TestResult.writtenRows.sameElements(expectedRows))\n+  }\n+\n+  ignore(\"save() - partitioned table - Overwrite - select and overwrite the same table\") {\n+    TestResult.rowsToRead = testDF.rdd\n+\n+    val df = load(\n+      source = classOf[SimpleFSBasedSource].getCanonicalName,\n+      options = Map(\n+        \"path\" -> basePath.toString,\n+        \"schema\" -> dataSchema.json))\n+\n+    df.save(\n+      source = classOf[SimpleFSBasedSource].getCanonicalName,\n+      mode = SaveMode.Overwrite,\n+      options = Map(\n+        \"path\" -> basePath.toString,\n+        \"schema\" -> dataSchema.json),\n+      partitionColumns = Seq(\"p1\"))\n+\n+    // Written rows shouldn't contain dynamic partition column\n+    val expectedRows = for (i <- 1 to 3; _ <- 1 to 2) yield Row(i, s\"val_$i\")\n+    assert(TestResult.writtenRows.sameElements(expectedRows))\n+  }\n+\n+  ignore(\"save() - partitioned table - Append\") {","path":"sql/core/src/test/scala/org/apache/spark/sql/sources/FSBasedRelationSuite.scala","position":227,"original_position":227,"commit_id":"3b22c3291cd920eb02a345dace2556dc23d57efb","original_commit_id":"3b22c3291cd920eb02a345dace2556dc23d57efb","user":{"login":"yhuai","id":2072857,"avatar_url":"https://avatars.githubusercontent.com/u/2072857?v=3","gravatar_id":"","url":"https://api.github.com/users/yhuai","html_url":"https://github.com/yhuai","followers_url":"https://api.github.com/users/yhuai/followers","following_url":"https://api.github.com/users/yhuai/following{/other_user}","gists_url":"https://api.github.com/users/yhuai/gists{/gist_id}","starred_url":"https://api.github.com/users/yhuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhuai/subscriptions","organizations_url":"https://api.github.com/users/yhuai/orgs","repos_url":"https://api.github.com/users/yhuai/repos","events_url":"https://api.github.com/users/yhuai/events{/privacy}","received_events_url":"https://api.github.com/users/yhuai/received_events","type":"User","site_admin":false},"body":"Seems if we want to append and data exist, we need to discover the partitioning structures and make sure we can safely write data.","created_at":"2015-04-24T00:24:01Z","updated_at":"2015-04-24T00:24:01Z","html_url":"https://github.com/apache/spark/pull/5526#discussion_r29015695","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/5526","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/29015695"},"html":{"href":"https://github.com/apache/spark/pull/5526#discussion_r29015695"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/5526"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5526","id":33356317,"html_url":"https://github.com/apache/spark/pull/5526","diff_url":"https://github.com/apache/spark/pull/5526.diff","patch_url":"https://github.com/apache/spark/pull/5526.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/5526","number":5526,"state":"open","locked":false,"title":"[SQL] [WIP] Partitioning support for the data sources API","user":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"body":"**NOTE:** Currently this is only a tentative PR discussing API design.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/apache/spark/5526)\n<!-- Reviewable:end -->\n","created_at":"2015-04-15T13:53:02Z","updated_at":"2015-04-24T00:24:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e8cd3cbf8cf377d4b7b24617add99409d0a9743","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/5526/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/5526/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/5526/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/3b22c3291cd920eb02a345dace2556dc23d57efb","head":{"label":"liancheng:partitioning-support","ref":"partitioning-support","sha":"3b22c3291cd920eb02a345dace2556dc23d57efb","user":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"repo":{"id":17232535,"name":"spark","full_name":"liancheng/spark","owner":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liancheng/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/liancheng/spark","forks_url":"https://api.github.com/repos/liancheng/spark/forks","keys_url":"https://api.github.com/repos/liancheng/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liancheng/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liancheng/spark/teams","hooks_url":"https://api.github.com/repos/liancheng/spark/hooks","issue_events_url":"https://api.github.com/repos/liancheng/spark/issues/events{/number}","events_url":"https://api.github.com/repos/liancheng/spark/events","assignees_url":"https://api.github.com/repos/liancheng/spark/assignees{/user}","branches_url":"https://api.github.com/repos/liancheng/spark/branches{/branch}","tags_url":"https://api.github.com/repos/liancheng/spark/tags","blobs_url":"https://api.github.com/repos/liancheng/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liancheng/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liancheng/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/liancheng/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liancheng/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/liancheng/spark/languages","stargazers_url":"https://api.github.com/repos/liancheng/spark/stargazers","contributors_url":"https://api.github.com/repos/liancheng/spark/contributors","subscribers_url":"https://api.github.com/repos/liancheng/spark/subscribers","subscription_url":"https://api.github.com/repos/liancheng/spark/subscription","commits_url":"https://api.github.com/repos/liancheng/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/liancheng/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/liancheng/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/liancheng/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/liancheng/spark/contents/{+path}","compare_url":"https://api.github.com/repos/liancheng/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liancheng/spark/merges","archive_url":"https://api.github.com/repos/liancheng/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liancheng/spark/downloads","issues_url":"https://api.github.com/repos/liancheng/spark/issues{/number}","pulls_url":"https://api.github.com/repos/liancheng/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/liancheng/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/liancheng/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liancheng/spark/labels{/name}","releases_url":"https://api.github.com/repos/liancheng/spark/releases{/id}","created_at":"2014-02-27T01:39:03Z","updated_at":"2015-03-31T08:56:24Z","pushed_at":"2015-04-23T16:30:56Z","git_url":"git://github.com/liancheng/spark.git","ssh_url":"git@github.com:liancheng/spark.git","clone_url":"https://github.com/liancheng/spark.git","svn_url":"https://github.com/liancheng/spark","homepage":null,"size":95666,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"6c5ed8a6d552abd967d27cdb94b68d46ccb57221","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-04-24T00:18:39Z","pushed_at":"2015-04-24T00:21:08Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":1554844,"stargazers_count":3721,"watchers_count":3721,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3242,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":297,"forks":3242,"open_issues":297,"watchers":3721,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/5526"},"html":{"href":"https://github.com/apache/spark/pull/5526"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/5526"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/5526/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/5526/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/5526/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/3b22c3291cd920eb02a345dace2556dc23d57efb"}}}}