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 5D37F200BC4 for ; Fri, 14 Oct 2016 09:16:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5BE3C160ADD; Fri, 14 Oct 2016 07:16:24 +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 C4408160AFA for ; Fri, 14 Oct 2016 09:16:23 +0200 (CEST) Received: (qmail 96266 invoked by uid 500); 14 Oct 2016 07:16:22 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 95942 invoked by uid 99); 14 Oct 2016 07:16:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 07:16:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3ECCF2C4C7C for ; Fri, 14 Oct 2016 07:16:22 +0000 (UTC) Date: Fri, 14 Oct 2016 07:16:22 +0000 (UTC) From: "Jesus Camacho Rodriguez (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Work started] (HIVE-14959) Support distinct with windowing when CBO is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Oct 2016 07:16:24 -0000 [ https://issues.apache.org/jira/browse/HIVE-14959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on HIVE-14959 started by Jesus Camacho Rodriguez. ------------------------------------------------------ > Support distinct with windowing when CBO is disabled > ---------------------------------------------------- > > Key: HIVE-14959 > URL: https://issues.apache.org/jira/browse/HIVE-14959 > Project: Hive > Issue Type: Bug > Affects Versions: 2.1.0 > Reporter: Jesus Camacho Rodriguez > Assignee: Jesus Camacho Rodriguez > > For instance, the following query with CBO off: > {code:sql} > select distinct last_value(i) over ( partition by si order by i ), > first_value(t) over ( partition by si order by i ) > from over10k limit 50; > {code} > will fail, with the following message: > {noformat} > SELECT DISTINCT not allowed in the presence of windowing functions when CBO is off > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)