{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12661","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12661/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12661/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12661/events","html_url":"https://github.com/apache/spark/pull/12661","id":150854071,"number":12661,"title":"[SPARK-14752][SQL] LazilyGenerateOrdering throws NullPointerException","user":{"login":"rajeshbalamohan","id":323339,"avatar_url":"https://avatars.githubusercontent.com/u/323339?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeshbalamohan","html_url":"https://github.com/rajeshbalamohan","followers_url":"https://api.github.com/users/rajeshbalamohan/followers","following_url":"https://api.github.com/users/rajeshbalamohan/following{/other_user}","gists_url":"https://api.github.com/users/rajeshbalamohan/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeshbalamohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeshbalamohan/subscriptions","organizations_url":"https://api.github.com/users/rajeshbalamohan/orgs","repos_url":"https://api.github.com/users/rajeshbalamohan/repos","events_url":"https://api.github.com/users/rajeshbalamohan/events{/privacy}","received_events_url":"https://api.github.com/users/rajeshbalamohan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-25T13:14:53Z","updated_at":"2016-04-25T13:17:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12661","html_url":"https://github.com/apache/spark/pull/12661","diff_url":"https://github.com/apache/spark/pull/12661.diff","patch_url":"https://github.com/apache/spark/pull/12661.patch"},"body":"## What changes were proposed in this pull request?\r\nLazilyGenerateOrdering throws NullPointerException when clubbed with TakeOrderedAndProjectExec. This causes simple queries like \"select i_item_id from item order by i_item_id limit 10;\" would fail in spark-sql. Detailed explain plan and stack traces are available in [SPARK-14752](https://issues.apache.org/jira/browse/SPARK-14752). When deserializing in DirectTaskResult, it goes through nested structure in Kryo causing NPE for generatedOrdering.\r\n\r\n\r\n## How was this patch tested?\r\nManual testing by running multiple SQL queries in multi node cluster.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/214317552","html_url":"https://github.com/apache/spark/pull/12661#issuecomment-214317552","issue_url":"https://api.github.com/repos/apache/spark/issues/12661","id":214317552,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","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":"2016-04-25T13:17:32Z","updated_at":"2016-04-25T13:17:32Z","body":"**[Test build #56897 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/56897/consoleFull)** for PR 12661 at commit [`e83c9bc`](https://github.com/apache/spark/commit/e83c9bc87acc794ca3e9a37c999c05550d425e2b)."}}