{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/7034","labels_url":"https://api.github.com/repos/apache/spark/issues/7034/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/7034/comments","events_url":"https://api.github.com/repos/apache/spark/issues/7034/events","html_url":"https://github.com/apache/spark/pull/7034","id":91177040,"number":7034,"title":"[SPARK-8653][SPARK-8245][SQL] Add DataTypeConstraint Support for Expression","user":{"login":"chenghao-intel","id":2367031,"avatar_url":"https://avatars.githubusercontent.com/u/2367031?v=3","gravatar_id":"","url":"https://api.github.com/users/chenghao-intel","html_url":"https://github.com/chenghao-intel","followers_url":"https://api.github.com/users/chenghao-intel/followers","following_url":"https://api.github.com/users/chenghao-intel/following{/other_user}","gists_url":"https://api.github.com/users/chenghao-intel/gists{/gist_id}","starred_url":"https://api.github.com/users/chenghao-intel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenghao-intel/subscriptions","organizations_url":"https://api.github.com/users/chenghao-intel/orgs","repos_url":"https://api.github.com/users/chenghao-intel/repos","events_url":"https://api.github.com/users/chenghao-intel/events{/privacy}","received_events_url":"https://api.github.com/users/chenghao-intel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-06-26T07:11:51Z","updated_at":"2015-07-13T21:48:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7034","html_url":"https://github.com/apache/spark/pull/7034","diff_url":"https://github.com/apache/spark/pull/7034.diff","patch_url":"https://github.com/apache/spark/pull/7034.patch"},"body":"Add Data Type Constraint Support for expression, this aim to merge the function of \r\n`Expression.checkInputDataTypes()` and the trait `ExpectsInputTypes`, besides, also provide an opportunity for expression itself to do the proper expression conversion, other than a general rule.\r\n\r\nhttps://issues.apache.org/jira/browse/SPARK-8653\r\nhttps://issues.apache.org/jira/browse/SPARK-8245\r\n\r\nI enabled the feature in expression `Length` and `FormatNumber` for the example, and probably more expressions will take that as enhancement."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/121071436","html_url":"https://github.com/apache/spark/pull/7034#issuecomment-121071436","issue_url":"https://api.github.com/repos/apache/spark/issues/7034","id":121071436,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","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":"2015-07-13T21:48:52Z","updated_at":"2015-07-13T21:48:52Z","body":" Build triggered."}}