{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/29536814","id":29536814,"diff_hunk":"@@ -296,6 +296,20 @@ class Column(protected[sql] val expr: Expression) extends Logging {\n   def eqNullSafe(other: Any): Column = this <=> other\n \n   /**\n+   * Between col1 and col2.\n+   *\n+   * @group java_expr_ops\n+   */\n+  def between(col1: String, col2: String): Column = between(Column(col1), Column(col2))\n+\n+  /**\n+   * Between col1 and col2.\n+   *\n+   * @group java_expr_ops\n+   */\n+  def between(col1: Column, col2: Column): Column = And(GreaterThan(this.expr, col1.expr), LessThan(this.expr, col2.expr))","path":"sql/core/src/main/scala/org/apache/spark/sql/Column.scala","position":15,"original_position":15,"commit_id":"d11d5b95ef82a208c579daa0073bdc072a682be5","original_commit_id":"d11d5b95ef82a208c579daa0073bdc072a682be5","user":{"login":"rxin","id":323388,"avatar_url":"https://avatars.githubusercontent.com/u/323388?v=3","gravatar_id":"","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"body":"Note that between is really >= and <=, i.e. inclusive.","created_at":"2015-05-01T21:58:15Z","updated_at":"2015-05-01T21:58:15Z","html_url":"https://github.com/apache/spark/pull/5839#discussion_r29536814","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/5839","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/29536814"},"html":{"href":"https://github.com/apache/spark/pull/5839#discussion_r29536814"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/5839"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5839","id":34545832,"html_url":"https://github.com/apache/spark/pull/5839","diff_url":"https://github.com/apache/spark/pull/5839.diff","patch_url":"https://github.com/apache/spark/pull/5839.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/5839","number":5839,"state":"open","locked":false,"title":"[SPARK-7294][SQL] ADD BETWEEN","user":{"login":"kaka1992","id":3379043,"avatar_url":"https://avatars.githubusercontent.com/u/3379043?v=3","gravatar_id":"","url":"https://api.github.com/users/kaka1992","html_url":"https://github.com/kaka1992","followers_url":"https://api.github.com/users/kaka1992/followers","following_url":"https://api.github.com/users/kaka1992/following{/other_user}","gists_url":"https://api.github.com/users/kaka1992/gists{/gist_id}","starred_url":"https://api.github.com/users/kaka1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaka1992/subscriptions","organizations_url":"https://api.github.com/users/kaka1992/orgs","repos_url":"https://api.github.com/users/kaka1992/repos","events_url":"https://api.github.com/users/kaka1992/events{/privacy}","received_events_url":"https://api.github.com/users/kaka1992/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-01T15:54:50Z","updated_at":"2015-05-01T21:58:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3c3c518086af457d8a99e4615c2b730561c14c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/5839/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/5839/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/5839/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/d11d5b95ef82a208c579daa0073bdc072a682be5","head":{"label":"kaka1992:master","ref":"master","sha":"d11d5b95ef82a208c579daa0073bdc072a682be5","user":{"login":"kaka1992","id":3379043,"avatar_url":"https://avatars.githubusercontent.com/u/3379043?v=3","gravatar_id":"","url":"https://api.github.com/users/kaka1992","html_url":"https://github.com/kaka1992","followers_url":"https://api.github.com/users/kaka1992/followers","following_url":"https://api.github.com/users/kaka1992/following{/other_user}","gists_url":"https://api.github.com/users/kaka1992/gists{/gist_id}","starred_url":"https://api.github.com/users/kaka1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaka1992/subscriptions","organizations_url":"https://api.github.com/users/kaka1992/orgs","repos_url":"https://api.github.com/users/kaka1992/repos","events_url":"https://api.github.com/users/kaka1992/events{/privacy}","received_events_url":"https://api.github.com/users/kaka1992/received_events","type":"User","site_admin":false},"repo":{"id":32562603,"name":"spark","full_name":"kaka1992/spark","owner":{"login":"kaka1992","id":3379043,"avatar_url":"https://avatars.githubusercontent.com/u/3379043?v=3","gravatar_id":"","url":"https://api.github.com/users/kaka1992","html_url":"https://github.com/kaka1992","followers_url":"https://api.github.com/users/kaka1992/followers","following_url":"https://api.github.com/users/kaka1992/following{/other_user}","gists_url":"https://api.github.com/users/kaka1992/gists{/gist_id}","starred_url":"https://api.github.com/users/kaka1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaka1992/subscriptions","organizations_url":"https://api.github.com/users/kaka1992/orgs","repos_url":"https://api.github.com/users/kaka1992/repos","events_url":"https://api.github.com/users/kaka1992/events{/privacy}","received_events_url":"https://api.github.com/users/kaka1992/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaka1992/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/kaka1992/spark","forks_url":"https://api.github.com/repos/kaka1992/spark/forks","keys_url":"https://api.github.com/repos/kaka1992/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaka1992/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaka1992/spark/teams","hooks_url":"https://api.github.com/repos/kaka1992/spark/hooks","issue_events_url":"https://api.github.com/repos/kaka1992/spark/issues/events{/number}","events_url":"https://api.github.com/repos/kaka1992/spark/events","assignees_url":"https://api.github.com/repos/kaka1992/spark/assignees{/user}","branches_url":"https://api.github.com/repos/kaka1992/spark/branches{/branch}","tags_url":"https://api.github.com/repos/kaka1992/spark/tags","blobs_url":"https://api.github.com/repos/kaka1992/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaka1992/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaka1992/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaka1992/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaka1992/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/kaka1992/spark/languages","stargazers_url":"https://api.github.com/repos/kaka1992/spark/stargazers","contributors_url":"https://api.github.com/repos/kaka1992/spark/contributors","subscribers_url":"https://api.github.com/repos/kaka1992/spark/subscribers","subscription_url":"https://api.github.com/repos/kaka1992/spark/subscription","commits_url":"https://api.github.com/repos/kaka1992/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaka1992/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaka1992/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaka1992/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaka1992/spark/contents/{+path}","compare_url":"https://api.github.com/repos/kaka1992/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaka1992/spark/merges","archive_url":"https://api.github.com/repos/kaka1992/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaka1992/spark/downloads","issues_url":"https://api.github.com/repos/kaka1992/spark/issues{/number}","pulls_url":"https://api.github.com/repos/kaka1992/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/kaka1992/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/kaka1992/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaka1992/spark/labels{/name}","releases_url":"https://api.github.com/repos/kaka1992/spark/releases{/id}","created_at":"2015-03-20T04:34:21Z","updated_at":"2015-05-01T15:51:09Z","pushed_at":"2015-05-01T15:51:09Z","git_url":"git://github.com/kaka1992/spark.git","ssh_url":"git@github.com:kaka1992/spark.git","clone_url":"https://github.com/kaka1992/spark.git","svn_url":"https://github.com/kaka1992/spark","homepage":null,"size":102990,"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":"7630213cab1f653212828f045cf1d7d1870abea0","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}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-05-01T21:41:08Z","pushed_at":"2015-05-01T21:52:49Z","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":1598514,"stargazers_count":3830,"watchers_count":3830,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3315,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":304,"forks":3315,"open_issues":304,"watchers":3830,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/5839"},"html":{"href":"https://github.com/apache/spark/pull/5839"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/5839"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/5839/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/5839/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/5839/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/d11d5b95ef82a208c579daa0073bdc072a682be5"}}}}