Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 67D51200C8E for ; Thu, 25 May 2017 04:30:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 66726160BD7; Thu, 25 May 2017 02:30:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A4E23160BB6 for ; Thu, 25 May 2017 04:30:45 +0200 (CEST) Received: (qmail 21360 invoked by uid 500); 25 May 2017 02:30:44 -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 21331 invoked by uid 99); 25 May 2017 02:30:44 -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; Thu, 25 May 2017 02:30:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0D46DDFF66; Thu, 25 May 2017 02:30:44 +0000 (UTC) From: heary-cao To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request #18057: [SPARK-20786][SQL][Backport-2.2]Improve ceil and ... Content-Type: text/plain Message-Id: <20170525023044.0D46DDFF66@git1-us-west.apache.org> Date: Thu, 25 May 2017 02:30:44 +0000 (UTC) archived-at: Thu, 25 May 2017 02:30:46 -0000 Github user heary-cao commented on a diff in the pull request: https://github.com/apache/spark/pull/18057#discussion_r118406121 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala --- @@ -347,9 +348,10 @@ case class Floor(child: Expression) extends UnaryMathExpression(math.floor, "FLO } override def inputTypes: Seq[AbstractDataType] = - Seq(TypeCollection(DoubleType, DecimalType)) + Seq(TypeCollection(LongType, DoubleType, DecimalType)) --- End diff -- The default type should be DoubleType --- 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