Return-Path: X-Original-To: apmail-spark-reviews-archive@minotaur.apache.org Delivered-To: apmail-spark-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68C7C19E3B for ; Wed, 4 May 2016 21:56:10 +0000 (UTC) Received: (qmail 89422 invoked by uid 500); 4 May 2016 21:56:10 -0000 Delivered-To: apmail-spark-reviews-archive@spark.apache.org Received: (qmail 89399 invoked by uid 500); 4 May 2016 21:56:10 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 89388 invoked by uid 99); 4 May 2016 21:56:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2016 21:56:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 98E11DFC6C; Wed, 4 May 2016 21:56:09 +0000 (UTC) From: hvanhovell To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request: [SPARK-13370][SQL] Require whitespace between ... Content-Type: text/plain Message-Id: <20160504215609.98E11DFC6C@git1-us-west.apache.org> Date: Wed, 4 May 2016 21:56:09 +0000 (UTC) Github user hvanhovell commented on a diff in the pull request: https://github.com/apache/spark/pull/12897#discussion_r62121775 --- Diff: sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/ExpressionParserSuite.scala --- @@ -73,8 +73,11 @@ class ExpressionParserSuite extends PlanTest { // Numeric literals without a space between the literal qualifier and the alias, should not be // interpreted as such. An unresolved reference should be returned instead. - // TODO add the JIRA-ticket number. assertEqual("1SL", Symbol("1SL")) + assertEqual("1 asL", Literal(1).as("asL")) + assertEqual("1as L", Symbol("1as").as("L")) + assertEqual("(1E0 + 1)L", (Literal(1.0) + Literal(1)).as("L")) + intercept("1.0L", "Ambiguous alias 'L' encountered") --- End diff -- Yeah it will. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org