{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20750","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20750/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20750/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20750/events","html_url":"https://github.com/apache/spark/pull/20750","id":302725050,"number":20750,"title":"[SPARK-23581][SQL] Add interpreted unsafe projection","user":{"login":"hvanhovell","id":9616802,"avatar_url":"https://avatars2.githubusercontent.com/u/9616802?v=4","gravatar_id":"","url":"https://api.github.com/users/hvanhovell","html_url":"https://github.com/hvanhovell","followers_url":"https://api.github.com/users/hvanhovell/followers","following_url":"https://api.github.com/users/hvanhovell/following{/other_user}","gists_url":"https://api.github.com/users/hvanhovell/gists{/gist_id}","starred_url":"https://api.github.com/users/hvanhovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvanhovell/subscriptions","organizations_url":"https://api.github.com/users/hvanhovell/orgs","repos_url":"https://api.github.com/users/hvanhovell/repos","events_url":"https://api.github.com/users/hvanhovell/events{/privacy}","received_events_url":"https://api.github.com/users/hvanhovell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-03-06T14:36:10Z","updated_at":"2018-03-16T16:20:32Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20750","html_url":"https://github.com/apache/spark/pull/20750","diff_url":"https://github.com/apache/spark/pull/20750.diff","patch_url":"https://github.com/apache/spark/pull/20750.patch"},"body":"## What changes were proposed in this pull request?\r\nWe currently can only create unsafe rows using code generation. This is a problem for situations in which code generation fails. There is no fallback, and as a result we cannot execute the query.\r\n\r\nThis PR adds an interpreted version of `UnsafeProjection`. The implementation is modeled after `InterpretedMutableProjection`. It stores the expression results in a `GenericInternalRow`, and it then uses a conversion function to convert the `GenericInternalRow` into an `UnsafeRow`.\r\n\r\nThis PR does not implement the actual code generated to interpreted fallback logic. This will be done in a follow-up.\r\n\r\n## How was this patch tested?\r\nI am piggybacking on exiting `UnsafeProjection` tests, and I have added an interpreted version for each of these."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/373766347","html_url":"https://github.com/apache/spark/pull/20750#issuecomment-373766347","issue_url":"https://api.github.com/repos/apache/spark/issues/20750","id":373766347,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T16:20:32Z","updated_at":"2018-03-16T16:20:32Z","author_association":"NONE","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/88312/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}