From issues-return-197424-archive-asf-public=cust-asf.ponee.io@spark.apache.org Sun Jul 29 22:57:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 71C4318065B for ; Sun, 29 Jul 2018 22:57:04 +0200 (CEST) Received: (qmail 3087 invoked by uid 500); 29 Jul 2018 20:57:03 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 3077 invoked by uid 99); 29 Jul 2018 20:57:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Jul 2018 20:57:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 14C9A1806A2 for ; Sun, 29 Jul 2018 20:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id C4cCaVeB3emO for ; Sun, 29 Jul 2018 20:57:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A585C5F490 for ; Sun, 29 Jul 2018 20:57:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CB372E0371 for ; Sun, 29 Jul 2018 20:57:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 315E727752 for ; Sun, 29 Jul 2018 20:57:00 +0000 (UTC) Date: Sun, 29 Jul 2018 20:57:00 +0000 (UTC) From: "Parth Gandhi (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-24935) Problem with Executing Hive UDF's from Spark 2.2 Onwards MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-24935?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165= 61266#comment-16561266 ]=20 Parth Gandhi commented on SPARK-24935: -------------------------------------- [~cloud_fan] I too had the same doubt that maybe hive UDAF might still have= issues supporting partial aggregation completely though I am not so sure. = Would it make sense to add support for complete aggregation mode to ensure = backward compatibility? Thank you. > Problem with Executing Hive UDF's from Spark 2.2 Onwards > -------------------------------------------------------- > > Key: SPARK-24935 > URL: https://issues.apache.org/jira/browse/SPARK-24935 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.2.0, 2.3.1 > Reporter: Parth Gandhi > Priority: Major > > A user of sketches library(https://github.com/DataSketches/sketches-hive)= reported an issue with HLL Sketch Hive UDAF that seems to be a bug in Spar= k or Hive. Their code runs fine in 2.1 but has an issue from 2.2 onwards. F= or more details on the issue, you can refer to the discussion in the sketch= es-user list: > [https://groups.google.com/forum/?utm_medium=3Demail&utm_source=3Dfooter#= !msg/sketches-user/GmH4-OlHP9g/MW-J7Hg4BwAJ] > =C2=A0 > On further debugging, we figured out that from 2.2 onwards, Spark hive UD= AF provides support for partial aggregation, and has removed the functional= ity that supported complete mode aggregation(Refer=C2=A0https://issues.apac= he.org/jira/browse/SPARK-19060=C2=A0and=C2=A0https://issues.apache.org/jira= /browse/SPARK-18186). Thus, instead of expecting update method to be called= , merge method is called here ([https://github.com/DataSketches/sketches-hi= ve/blob/master/src/main/java/com/yahoo/sketches/hive/hll/SketchEvaluator.ja= va#L56)]=C2=A0which throws the exception as described in the forums above. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org