{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/50942084","id":50942084,"diff_hunk":"@@ -130,4 +130,49 @@ class MiscFunctionsSuite extends SparkFunSuite with ExpressionEvalHelper {\n       }\n     }\n   }\n+\n+  test(\"aesEncrypt\") {\n+    checkEvaluation(Base64(AesEncrypt(Literal(\"ABC\".getBytes),\n+      Literal(\"1234567890123456\".getBytes))), \"y6Ss+zCYObpCbgfWfyNWTw==\")\n+    checkEvaluation(Base64(AesEncrypt(Literal(\"\".getBytes),\n+      Literal(\"1234567890123456\".getBytes))), \"BQGHoM3lqYcsurCRq3PlUw==\")\n+\n+    // Before testing this, installing Java Cryptography Extension (JCE)\n+    // Unlimited Strength Jurisdiction Policy Files first\n+//    checkEvaluation(Base64(AesEncrypt(Literal(\"ABC\".getBytes),\n+//      Literal(\"12345678901234561234567890123456\".getBytes))), \"nYfCuJeRd5eD60yXDw7WEA==\")","path":"sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala","position":14,"original_position":14,"commit_id":"94768224126acf303e9e8b6d2697388f0fec1d23","original_commit_id":"94768224126acf303e9e8b6d2697388f0fec1d23","user":{"login":"vectorijk","id":3419881,"avatar_url":"https://avatars.githubusercontent.com/u/3419881?v=3","gravatar_id":"","url":"https://api.github.com/users/vectorijk","html_url":"https://github.com/vectorijk","followers_url":"https://api.github.com/users/vectorijk/followers","following_url":"https://api.github.com/users/vectorijk/following{/other_user}","gists_url":"https://api.github.com/users/vectorijk/gists{/gist_id}","starred_url":"https://api.github.com/users/vectorijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vectorijk/subscriptions","organizations_url":"https://api.github.com/users/vectorijk/orgs","repos_url":"https://api.github.com/users/vectorijk/repos","events_url":"https://api.github.com/users/vectorijk/events{/privacy}","received_events_url":"https://api.github.com/users/vectorijk/received_events","type":"User","site_admin":false},"body":"@cloud-fan @marmbrus ping?","created_at":"2016-01-27T05:11:20Z","updated_at":"2016-01-27T05:11:20Z","html_url":"https://github.com/apache/spark/pull/10527#discussion_r50942084","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/10527","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/50942084"},"html":{"href":"https://github.com/apache/spark/pull/10527#discussion_r50942084"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/10527"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10527","id":54803493,"html_url":"https://github.com/apache/spark/pull/10527","diff_url":"https://github.com/apache/spark/pull/10527.diff","patch_url":"https://github.com/apache/spark/pull/10527.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/10527","number":10527,"state":"open","locked":false,"title":"[SPARK-12567][SQL] Add aes_{encrypt,decrypt} UDFs","user":{"login":"vectorijk","id":3419881,"avatar_url":"https://avatars.githubusercontent.com/u/3419881?v=3","gravatar_id":"","url":"https://api.github.com/users/vectorijk","html_url":"https://github.com/vectorijk","followers_url":"https://api.github.com/users/vectorijk/followers","following_url":"https://api.github.com/users/vectorijk/following{/other_user}","gists_url":"https://api.github.com/users/vectorijk/gists{/gist_id}","starred_url":"https://api.github.com/users/vectorijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vectorijk/subscriptions","organizations_url":"https://api.github.com/users/vectorijk/orgs","repos_url":"https://api.github.com/users/vectorijk/repos","events_url":"https://api.github.com/users/vectorijk/events{/privacy}","received_events_url":"https://api.github.com/users/vectorijk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-30T14:31:50Z","updated_at":"2016-01-27T05:11:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0174371a89264b044a0b3a279c81c4f6eb7856c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/10527/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/10527/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/10527/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/94768224126acf303e9e8b6d2697388f0fec1d23","head":{"label":"vectorijk:spark-12567","ref":"spark-12567","sha":"94768224126acf303e9e8b6d2697388f0fec1d23","user":{"login":"vectorijk","id":3419881,"avatar_url":"https://avatars.githubusercontent.com/u/3419881?v=3","gravatar_id":"","url":"https://api.github.com/users/vectorijk","html_url":"https://github.com/vectorijk","followers_url":"https://api.github.com/users/vectorijk/followers","following_url":"https://api.github.com/users/vectorijk/following{/other_user}","gists_url":"https://api.github.com/users/vectorijk/gists{/gist_id}","starred_url":"https://api.github.com/users/vectorijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vectorijk/subscriptions","organizations_url":"https://api.github.com/users/vectorijk/orgs","repos_url":"https://api.github.com/users/vectorijk/repos","events_url":"https://api.github.com/users/vectorijk/events{/privacy}","received_events_url":"https://api.github.com/users/vectorijk/received_events","type":"User","site_admin":false},"repo":{"id":43246256,"name":"spark","full_name":"vectorijk/spark","owner":{"login":"vectorijk","id":3419881,"avatar_url":"https://avatars.githubusercontent.com/u/3419881?v=3","gravatar_id":"","url":"https://api.github.com/users/vectorijk","html_url":"https://github.com/vectorijk","followers_url":"https://api.github.com/users/vectorijk/followers","following_url":"https://api.github.com/users/vectorijk/following{/other_user}","gists_url":"https://api.github.com/users/vectorijk/gists{/gist_id}","starred_url":"https://api.github.com/users/vectorijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vectorijk/subscriptions","organizations_url":"https://api.github.com/users/vectorijk/orgs","repos_url":"https://api.github.com/users/vectorijk/repos","events_url":"https://api.github.com/users/vectorijk/events{/privacy}","received_events_url":"https://api.github.com/users/vectorijk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vectorijk/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/vectorijk/spark","forks_url":"https://api.github.com/repos/vectorijk/spark/forks","keys_url":"https://api.github.com/repos/vectorijk/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vectorijk/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vectorijk/spark/teams","hooks_url":"https://api.github.com/repos/vectorijk/spark/hooks","issue_events_url":"https://api.github.com/repos/vectorijk/spark/issues/events{/number}","events_url":"https://api.github.com/repos/vectorijk/spark/events","assignees_url":"https://api.github.com/repos/vectorijk/spark/assignees{/user}","branches_url":"https://api.github.com/repos/vectorijk/spark/branches{/branch}","tags_url":"https://api.github.com/repos/vectorijk/spark/tags","blobs_url":"https://api.github.com/repos/vectorijk/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vectorijk/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vectorijk/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/vectorijk/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vectorijk/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/vectorijk/spark/languages","stargazers_url":"https://api.github.com/repos/vectorijk/spark/stargazers","contributors_url":"https://api.github.com/repos/vectorijk/spark/contributors","subscribers_url":"https://api.github.com/repos/vectorijk/spark/subscribers","subscription_url":"https://api.github.com/repos/vectorijk/spark/subscription","commits_url":"https://api.github.com/repos/vectorijk/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/vectorijk/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/vectorijk/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/vectorijk/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/vectorijk/spark/contents/{+path}","compare_url":"https://api.github.com/repos/vectorijk/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vectorijk/spark/merges","archive_url":"https://api.github.com/repos/vectorijk/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vectorijk/spark/downloads","issues_url":"https://api.github.com/repos/vectorijk/spark/issues{/number}","pulls_url":"https://api.github.com/repos/vectorijk/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/vectorijk/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/vectorijk/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vectorijk/spark/labels{/name}","releases_url":"https://api.github.com/repos/vectorijk/spark/releases{/id}","deployments_url":"https://api.github.com/repos/vectorijk/spark/deployments","created_at":"2015-09-27T12:46:22Z","updated_at":"2016-01-20T07:40:01Z","pushed_at":"2016-01-20T07:39:36Z","git_url":"git://github.com/vectorijk/spark.git","ssh_url":"git@github.com:vectorijk/spark.git","clone_url":"https://github.com/vectorijk/spark.git","svn_url":"https://github.com/vectorijk/spark","homepage":null,"size":138556,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"53beddc5bf04a35ab73de99158919c2fdd5d4508","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","deployments_url":"https://api.github.com/repos/apache/spark/deployments","created_at":"2014-02-25T08:00:08Z","updated_at":"2016-01-27T04:31:33Z","pushed_at":"2016-01-27T04:30:35Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":404255,"stargazers_count":7212,"watchers_count":7212,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6589,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":346,"forks":6589,"open_issues":346,"watchers":7212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/10527"},"html":{"href":"https://github.com/apache/spark/pull/10527"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/10527"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/10527/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/10527/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/10527/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/94768224126acf303e9e8b6d2697388f0fec1d23"}}}}