{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/45236894","id":45236894,"diff_hunk":"@@ -0,0 +1,428 @@\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.execution.datasources.parquet;\n+\n+import static org.apache.parquet.column.ValuesType.DEFINITION_LEVEL;\n+import static org.apache.parquet.column.ValuesType.REPETITION_LEVEL;\n+import static org.apache.parquet.column.ValuesType.VALUES;\n+\n+import org.apache.hadoop.mapreduce.InputSplit;\n+import org.apache.hadoop.mapreduce.TaskAttemptContext;\n+import org.apache.parquet.column.ColumnDescriptor;\n+import org.apache.parquet.column.Dictionary;\n+import org.apache.parquet.column.page.*;\n+import org.apache.parquet.column.Encoding;\n+import org.apache.parquet.column.values.ValuesReader;\n+import org.apache.parquet.io.api.Binary;\n+import org.apache.parquet.schema.Type;\n+import org.apache.spark.sql.catalyst.expressions.UnsafeRow;\n+import org.apache.spark.unsafe.Platform;\n+\n+import java.io.IOException;\n+import java.util.*;\n+\n+/**\n+ * A specialized RecordReader that reads into UnsafeRows directly using the Parquet column APIs.\n+ *\n+ * TODO: handle complex types.\n+ */\n+public class UnsafeRowParquetRecordReader extends SpecificParquetRecordReaderBase<UnsafeRow> {\n+  /**\n+   * Batch of unsafe rows that we assemble and the current index we've returned. Everytime this\n+   * batch is used up (batchIdx == numBatched), we populated the batch.\n+   */\n+  private UnsafeRow[] rows = new UnsafeRow[64];\n+  private int batchIdx = 0;\n+  private int numBatched = 0;\n+\n+  /**\n+   * For each request column, the reader to read this column.\n+   * columnsReaders[i] populated the UnsafeRow's attribute at i.\n+   */\n+  private ColumnReader[] columnReaders;\n+\n+  /**\n+   * The number of rows that have been returned.\n+   */\n+  private long rowsReturned;\n+\n+  /**\n+   * The number of rows that have been reading, including the current in flight row group.\n+   */\n+  private long totalCountLoadedSoFar = 0;\n+\n+  /**\n+   * Implementation of RecordReader API.\n+   */\n+  @Override\n+  public void initialize(InputSplit inputSplit, TaskAttemptContext taskAttemptContext)\n+      throws IOException, InterruptedException {\n+    super.initialize(inputSplit, taskAttemptContext);\n+\n+    int rowByteSize = UnsafeRow.calculateBitSetWidthInBytes(requestedSchema.getFieldCount());\n+    rowByteSize += 8 * requestedSchema.getFieldCount();\n+\n+    byte[] buffer = new byte[rowByteSize * rows.length];\n+    for (int i = 0; i < rows.length; ++i) {\n+      rows[i] = new UnsafeRow();\n+      rows[i].pointTo(buffer, Platform.BYTE_ARRAY_OFFSET + i * rowByteSize,\n+          requestedSchema.getFieldCount(), rowByteSize);\n+    }\n+\n+    /**\n+     * Check that the requested schema is supported.\n+     */\n+    for (Type t: requestedSchema.getFields()) {\n+      if (!t.isPrimitive()) throw new IOException(\"Unsupported schema\");\n+    }\n+\n+    // TODO: this needs to handle the schema resolution rules\n+  }\n+\n+  @Override\n+  public boolean nextKeyValue() throws IOException, InterruptedException {\n+    if (batchIdx >= numBatched) {\n+      if (!loadBatch()) return false;\n+    }\n+    ++batchIdx;\n+    return true;\n+  }\n+\n+  @Override\n+  public UnsafeRow getCurrentValue() throws IOException, InterruptedException {\n+    return rows[batchIdx - 1];\n+  }\n+\n+  @Override\n+  public float getProgress() throws IOException, InterruptedException {\n+    return (float) rowsReturned / totalRowCount;\n+  }\n+\n+  /**\n+   * Decodes a batch of values into `rows`. This function is the hot path.\n+   */\n+  private boolean loadBatch() throws IOException {\n+    // no more records left\n+    if (rowsReturned >= totalRowCount) { return false; }\n+    checkEndOfRowGroup();\n+\n+    int num = (int)Math.min(rows.length, totalCountLoadedSoFar - rowsReturned);\n+    rowsReturned += num;\n+\n+    for (int i = 0; i < columnReaders.length; ++i) {\n+      switch (columnReaders[i].descriptor.getType()) {\n+        case BOOLEAN:\n+          decodeBooleanBatch(i, num);\n+          break;\n+        case INT32:\n+          decodeIntBatch(i, num);\n+          break;\n+        case INT64:\n+          decodeLongBatch(i, num);\n+          break;\n+        case FLOAT:\n+          decodeFloatBatch(i, num);\n+          break;\n+        case DOUBLE:\n+          decodeDoubleBatch(i, num);\n+          break;\n+      }\n+      numBatched = num;\n+      batchIdx = 0;\n+    }\n+    return true;\n+  }\n+\n+  private void decodeBooleanBatch(int col, int num) throws IOException {\n+    for (int n = 0; n < num; ++n) {\n+      if (columnReaders[col].next() != 0) {\n+        rows[n].setBoolean(col, columnReaders[col].nextBoolean());\n+      } else {\n+        rows[n].setNullAt(col);\n+      }\n+    }\n+  }\n+\n+  private void decodeIntBatch(int col, int num) throws IOException {\n+    for (int n = 0; n < num; ++n) {\n+      if (columnReaders[col].next() != 0) {\n+        rows[n].setInt(col, columnReaders[col].nextInt());\n+      } else {\n+        rows[n].setNullAt(col);\n+      }\n+    }\n+  }\n+\n+  private void decodeLongBatch(int col, int num) throws IOException {\n+    for (int n = 0; n < num; ++n) {\n+      if (columnReaders[col].next() != 0) {\n+        rows[n].setLong(col, columnReaders[col].nextLong());\n+      } else {\n+        rows[n].setNullAt(col);\n+      }\n+    }\n+  }\n+\n+  private void decodeFloatBatch(int col, int num) throws IOException {\n+    for (int n = 0; n < num; ++n) {\n+      if (columnReaders[col].next() != 0) {\n+        rows[n].setFloat(col, columnReaders[col].nextFloat());\n+      } else {\n+        rows[n].setNullAt(col);\n+      }\n+    }\n+  }\n+\n+  private void decodeDoubleBatch(int col, int num) throws IOException {\n+    for (int n = 0; n < num; ++n) {\n+      if (columnReaders[col].next() != 0) {\n+        rows[n].setDouble(col, columnReaders[col].nextDouble());\n+      } else {\n+        rows[n].setNullAt(col);\n+      }\n+    }\n+  }\n+\n+  /**\n+   *\n+   * Decoder to return values from a single column.\n+   */\n+  private static final class ColumnReader {\n+    /**\n+     * Total number of values read.\n+     */\n+    private long valuesRead;\n+\n+    /**\n+     * value that indicates the end of the current page. That is,\n+     * if valuesRead == endOfPageValueCount, we are at the end of the page.\n+     */\n+    private long endOfPageValueCount;\n+\n+    /**\n+     * The dictionary, if this column has dictionary encoding.\n+     */\n+    private final Dictionary dictionary;\n+\n+    /**\n+     * If true, the current page is dictionary encoded.\n+     */\n+    private boolean useDictionary;\n+\n+    /**\n+     * Repetition/Definition/Value readers.\n+     */\n+    private IntIterator repetitionLevelColumn;\n+    private IntIterator definitionLevelColumn;\n+    private ValuesReader dataColumn;\n+\n+    /**\n+     * Total number of values in this column (in this row group).\n+     */\n+    private final long totalValueCount;\n+\n+    /**\n+     * Total values in the current page.\n+     */\n+    private int pageValueCount;\n+\n+    private PageReader pageReader;\n+    private ColumnDescriptor descriptor;\n+\n+    public ColumnReader(ColumnDescriptor descriptor, PageReader pageReader) throws IOException {\n+      this.descriptor = descriptor;\n+      this.pageReader = pageReader;\n+\n+      DictionaryPage dictionaryPage = pageReader.readDictionaryPage();\n+      if (dictionaryPage != null) {\n+        try {\n+          this.dictionary = dictionaryPage.getEncoding().initDictionary(descriptor, dictionaryPage);\n+          this.useDictionary = true;\n+        } catch (IOException e) {\n+          throw new IOException(\"could not decode the dictionary for \" + descriptor, e);\n+        }\n+      } else {\n+        this.dictionary = null;\n+        this.useDictionary = false;\n+      }\n+      this.totalValueCount = pageReader.getTotalValueCount();\n+      if (totalValueCount == 0) {\n+        throw new IOException(\"totalValueCount == 0\");\n+      }\n+    }\n+\n+    /**\n+     * TODO: Hoist the useDictionary branch to decode*Batch and make the batch page aligned.\n+     */\n+    public boolean nextBoolean() {\n+      if (!useDictionary) {\n+        return dataColumn.readBoolean();\n+      } else {\n+        return dictionary.decodeToBoolean(dataColumn.readValueDictionaryId());\n+      }\n+    }\n+\n+    public int nextInt() {\n+      if (!useDictionary) {\n+        return dataColumn.readInteger();\n+      } else {\n+        return dictionary.decodeToInt(dataColumn.readValueDictionaryId());\n+      }\n+    }\n+\n+    public long nextLong() {\n+      if (!useDictionary) {\n+        return dataColumn.readLong();\n+      } else {\n+        return dictionary.decodeToLong(dataColumn.readValueDictionaryId());\n+      }\n+    }\n+\n+    public float nextFloat() {\n+      if (!useDictionary) {\n+        return dataColumn.readFloat();\n+      } else {\n+        return dictionary.decodeToFloat(dataColumn.readValueDictionaryId());\n+      }\n+    }\n+\n+    public double nextDouble() {\n+      if (!useDictionary) {\n+        return dataColumn.readDouble();\n+      } else {\n+        return dictionary.decodeToDouble(dataColumn.readValueDictionaryId());\n+      }\n+    }\n+\n+    public Binary nextBinary() {\n+      if (!useDictionary) {\n+        return dataColumn.readBytes();\n+      } else {\n+        return dictionary.decodeToBinary(dataColumn.readValueDictionaryId());\n+      }\n+    }\n+\n+    private int next() throws IOException {\n+      if (valuesRead >= endOfPageValueCount) {\n+        if (valuesRead >= totalValueCount) {\n+          // How do we get here? Throw end of stream exception?\n+          return 0;\n+        }\n+        readPage();\n+      }\n+      ++valuesRead;\n+      // TODO: Don't read for flat schemas\n+      //repetitionLevel = repetitionLevelColumn.nextInt();\n+      return definitionLevelColumn.nextInt();\n+    }\n+\n+    private void readPage() throws IOException {\n+      DataPage page = pageReader.readPage();\n+      // TODO: Why is this a visitor?","path":"sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/UnsafeRowParquetRecordReader.java","position":519,"original_position":336,"commit_id":"b6a3b62bb32b414c5243e640c69a5482da78bfd6","original_commit_id":"56f86c5e7ef447738c5bfd67d1a58a8c1d755f0a","user":{"login":"julienledem","id":367841,"avatar_url":"https://avatars.githubusercontent.com/u/367841?v=3","gravatar_id":"","url":"https://api.github.com/users/julienledem","html_url":"https://github.com/julienledem","followers_url":"https://api.github.com/users/julienledem/followers","following_url":"https://api.github.com/users/julienledem/following{/other_user}","gists_url":"https://api.github.com/users/julienledem/gists{/gist_id}","starred_url":"https://api.github.com/users/julienledem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienledem/subscriptions","organizations_url":"https://api.github.com/users/julienledem/orgs","repos_url":"https://api.github.com/users/julienledem/repos","events_url":"https://api.github.com/users/julienledem/events{/privacy}","received_events_url":"https://api.github.com/users/julienledem/received_events","type":"User","site_admin":false},"body":"That's fair. We could add a type param for that (Visitor<R, T>... Void visit(page) throws T). But really, you'd want to reuse the existing code I think.\r\nYour methods readPageV[1|2] already catch IOException and throw another one, so you could throw something else there too.\r\nYou could use a switch statement or instanceof but the visitor is the only way I know of that will make compilation fail if we add a 3rd page format.\r\nsuggestions welcome in any case.","created_at":"2015-11-18T18:14:01Z","updated_at":"2015-11-18T18:14:01Z","html_url":"https://github.com/apache/spark/pull/9774#discussion_r45236894","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/9774","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/45236894"},"html":{"href":"https://github.com/apache/spark/pull/9774#discussion_r45236894"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/9774"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9774","id":50999054,"html_url":"https://github.com/apache/spark/pull/9774","diff_url":"https://github.com/apache/spark/pull/9774.diff","patch_url":"https://github.com/apache/spark/pull/9774.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/9774","number":9774,"state":"open","locked":false,"title":"[WIP] [SPARK-11787] [SQL] Improve Parquet scan performance when using…","user":{"login":"nongli","id":242468,"avatar_url":"https://avatars.githubusercontent.com/u/242468?v=3","gravatar_id":"","url":"https://api.github.com/users/nongli","html_url":"https://github.com/nongli","followers_url":"https://api.github.com/users/nongli/followers","following_url":"https://api.github.com/users/nongli/following{/other_user}","gists_url":"https://api.github.com/users/nongli/gists{/gist_id}","starred_url":"https://api.github.com/users/nongli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nongli/subscriptions","organizations_url":"https://api.github.com/users/nongli/orgs","repos_url":"https://api.github.com/users/nongli/repos","events_url":"https://api.github.com/users/nongli/events{/privacy}","received_events_url":"https://api.github.com/users/nongli/received_events","type":"User","site_admin":false},"body":"… flat schemas.\r\n\r\nWIP: this still needs to implement more types and some type conversion logic.\r\n\r\nThis patch adds an alternate to the Parquet RecordReader from the parquet-mr project\r\nthat is much faster for flat schemas. Instead of using the general converter mechanism\r\nfrom parquet-mr, this directly uses the lower level APIs from parquet-columnar and a\r\ncustomer RecordReader that directly assembles into UnsafeRows.\r\n\r\nThis is optionally disabled and only used for supported schemas.\r\n\r\nUsing the benchmark in PerfTest (I'll remove before this is ready to merge) the rate\r\nfor the entire query changes from:\r\n\r\nFor 1 Column:\r\n  Before: 11.3M rows/second\r\n  After: 18.2M rows/second\r\n\r\nFor 2 Columns:\r\n  Before: 7.2M rows/second\r\n  After: 11.2M rows/second\r\n\r\nFor 5 Columns:\r\n  Before: 2.9M rows/second\r\n  After: 4.5M rows/second","created_at":"2015-11-17T20:21:39Z","updated_at":"2015-11-18T18:14:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e8c7f2d6f0da59bd16d9b4db98ae720bfdcf064","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/9774/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/9774/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/9774/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/b6a3b62bb32b414c5243e640c69a5482da78bfd6","head":{"label":"nongli:parquet","ref":"parquet","sha":"b6a3b62bb32b414c5243e640c69a5482da78bfd6","user":{"login":"nongli","id":242468,"avatar_url":"https://avatars.githubusercontent.com/u/242468?v=3","gravatar_id":"","url":"https://api.github.com/users/nongli","html_url":"https://github.com/nongli","followers_url":"https://api.github.com/users/nongli/followers","following_url":"https://api.github.com/users/nongli/following{/other_user}","gists_url":"https://api.github.com/users/nongli/gists{/gist_id}","starred_url":"https://api.github.com/users/nongli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nongli/subscriptions","organizations_url":"https://api.github.com/users/nongli/orgs","repos_url":"https://api.github.com/users/nongli/repos","events_url":"https://api.github.com/users/nongli/events{/privacy}","received_events_url":"https://api.github.com/users/nongli/received_events","type":"User","site_admin":false},"repo":{"id":30051398,"name":"spark","full_name":"nongli/spark","owner":{"login":"nongli","id":242468,"avatar_url":"https://avatars.githubusercontent.com/u/242468?v=3","gravatar_id":"","url":"https://api.github.com/users/nongli","html_url":"https://github.com/nongli","followers_url":"https://api.github.com/users/nongli/followers","following_url":"https://api.github.com/users/nongli/following{/other_user}","gists_url":"https://api.github.com/users/nongli/gists{/gist_id}","starred_url":"https://api.github.com/users/nongli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nongli/subscriptions","organizations_url":"https://api.github.com/users/nongli/orgs","repos_url":"https://api.github.com/users/nongli/repos","events_url":"https://api.github.com/users/nongli/events{/privacy}","received_events_url":"https://api.github.com/users/nongli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nongli/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/nongli/spark","forks_url":"https://api.github.com/repos/nongli/spark/forks","keys_url":"https://api.github.com/repos/nongli/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nongli/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nongli/spark/teams","hooks_url":"https://api.github.com/repos/nongli/spark/hooks","issue_events_url":"https://api.github.com/repos/nongli/spark/issues/events{/number}","events_url":"https://api.github.com/repos/nongli/spark/events","assignees_url":"https://api.github.com/repos/nongli/spark/assignees{/user}","branches_url":"https://api.github.com/repos/nongli/spark/branches{/branch}","tags_url":"https://api.github.com/repos/nongli/spark/tags","blobs_url":"https://api.github.com/repos/nongli/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nongli/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nongli/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/nongli/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nongli/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/nongli/spark/languages","stargazers_url":"https://api.github.com/repos/nongli/spark/stargazers","contributors_url":"https://api.github.com/repos/nongli/spark/contributors","subscribers_url":"https://api.github.com/repos/nongli/spark/subscribers","subscription_url":"https://api.github.com/repos/nongli/spark/subscription","commits_url":"https://api.github.com/repos/nongli/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/nongli/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/nongli/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/nongli/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/nongli/spark/contents/{+path}","compare_url":"https://api.github.com/repos/nongli/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nongli/spark/merges","archive_url":"https://api.github.com/repos/nongli/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nongli/spark/downloads","issues_url":"https://api.github.com/repos/nongli/spark/issues{/number}","pulls_url":"https://api.github.com/repos/nongli/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/nongli/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/nongli/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nongli/spark/labels{/name}","releases_url":"https://api.github.com/repos/nongli/spark/releases{/id}","created_at":"2015-01-30T02:01:12Z","updated_at":"2015-01-30T02:01:28Z","pushed_at":"2015-11-18T17:27:09Z","git_url":"git://github.com/nongli/spark.git","ssh_url":"git@github.com:nongli/spark.git","clone_url":"https://github.com/nongli/spark.git","svn_url":"https://github.com/nongli/spark","homepage":null,"size":129330,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"8019f66df5c65e21d6e4e7e8fbfb7d0471ba3e37","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-11-18T17:13:24Z","pushed_at":"2015-11-18T17:40:41Z","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":384857,"stargazers_count":6229,"watchers_count":6229,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5758,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":369,"forks":5758,"open_issues":369,"watchers":6229,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/9774"},"html":{"href":"https://github.com/apache/spark/pull/9774"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/9774"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/9774/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/9774/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/9774/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/b6a3b62bb32b414c5243e640c69a5482da78bfd6"}}}}