{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13474","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13474/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13474/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13474/events","html_url":"https://github.com/apache/spark/pull/13474","id":158243509,"number":13474,"title":"[SPARK-15547][SQL] nested case class in encoder can have different number of fields from the real schema","user":{"login":"cloud-fan","id":3182036,"avatar_url":"https://avatars.githubusercontent.com/u/3182036?v=3","gravatar_id":"","url":"https://api.github.com/users/cloud-fan","html_url":"https://github.com/cloud-fan","followers_url":"https://api.github.com/users/cloud-fan/followers","following_url":"https://api.github.com/users/cloud-fan/following{/other_user}","gists_url":"https://api.github.com/users/cloud-fan/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-fan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-fan/subscriptions","organizations_url":"https://api.github.com/users/cloud-fan/orgs","repos_url":"https://api.github.com/users/cloud-fan/repos","events_url":"https://api.github.com/users/cloud-fan/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-fan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-02T21:25:49Z","updated_at":"2016-06-03T06:00:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13474","html_url":"https://github.com/apache/spark/pull/13474","diff_url":"https://github.com/apache/spark/pull/13474.diff","patch_url":"https://github.com/apache/spark/pull/13474.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThere are 2 kinds of `GetStructField`:\r\n \r\n1. resolved from `UnresolvedExtractValue`, and it will have a `name` property.\r\n2. created when we build deserializer expression for nested tuple, no `name` property.\r\n\r\nWhen we want to validate the ordinals of nested tuple, we should only catch `GetStructField` without the name property.\r\n\r\n\r\n## How was this patch tested?\r\n\r\nnew test in `EncoderResolutionSuite`"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/223497508","html_url":"https://github.com/apache/spark/pull/13474#issuecomment-223497508","issue_url":"https://api.github.com/repos/apache/spark/issues/13474","id":223497508,"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},"created_at":"2016-06-03T06:00:12Z","updated_at":"2016-06-03T06:00:12Z","body":"Let's wait for #13269 first."}}
{"actor":{"display_login":"liancheng"}}