{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/19222","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/19222/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/19222/comments","events_url":"https://api.github.com/repos/apache/spark/issues/19222/events","html_url":"https://github.com/apache/spark/pull/19222","id":257470094,"number":19222,"title":"[SPARK-10399][CORE][SQL] Introduce multiple MemoryBlocks to choose several types of memory block","user":{"login":"kiszk","id":1315079,"avatar_url":"https://avatars2.githubusercontent.com/u/1315079?v=4","gravatar_id":"","url":"https://api.github.com/users/kiszk","html_url":"https://github.com/kiszk","followers_url":"https://api.github.com/users/kiszk/followers","following_url":"https://api.github.com/users/kiszk/following{/other_user}","gists_url":"https://api.github.com/users/kiszk/gists{/gist_id}","starred_url":"https://api.github.com/users/kiszk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiszk/subscriptions","organizations_url":"https://api.github.com/users/kiszk/orgs","repos_url":"https://api.github.com/users/kiszk/repos","events_url":"https://api.github.com/users/kiszk/events{/privacy}","received_events_url":"https://api.github.com/users/kiszk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-09-13T18:05:08Z","updated_at":"2017-09-23T01:37:20Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/19222","html_url":"https://github.com/apache/spark/pull/19222","diff_url":"https://github.com/apache/spark/pull/19222.diff","patch_url":"https://github.com/apache/spark/pull/19222.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis PR allows us to use one of several types of `MemoryBlock`, such as byte array, int array, long array, or `java.nio.DirectByteBuffer`. To use `java.nio.DirectByteBuffer` allows to have off heap memory which is automatically deallocated by JVM. `spark.unsafe.Platform`  interface refactored from indefinite Objects, to MemoryBlocks and arrays of primitives. \r\n\r\nThis PR uses `MemoryBlock` for `OffHeapColumnVector`, `UTF8String`, and other places.\r\n\r\nFor now, this PR does not use `MemoryBlock` for `BufferHolder` based on @cloud-fan's [suggestion](https://github.com/apache/spark/pull/11494#issuecomment-309694290).\r\n\r\nSince this PR is a successor of #11494, close #11494. Many codes were ported from #11494. Many efforts were put here. I think this PR should credit to @yzotov.\r\n\r\n## How was this patch tested?\r\n\r\nExisting tests\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/331599181","html_url":"https://github.com/apache/spark/pull/19222#issuecomment-331599181","issue_url":"https://api.github.com/repos/apache/spark/issues/19222","id":331599181,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2017-09-23T01:37:20Z","updated_at":"2017-09-23T01:37:20Z","author_association":"NONE","body":"**[Test build #82100 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/82100/testReport)** for PR 19222 at commit [`66bfbfc`](https://github.com/apache/spark/commit/66bfbfcacbcd37b911c6de2289352aebd63d52d6)."}}
{"actor":{"display_login":"SparkQA"}}