From issues-return-154816-archive-asf-public=cust-asf.ponee.io@hive.apache.org Mon Apr 1 05:19:02 2019 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 23F6718076D for ; Mon, 1 Apr 2019 07:19:01 +0200 (CEST) Received: (qmail 58519 invoked by uid 500); 1 Apr 2019 05:19:01 -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 58507 invoked by uid 99); 1 Apr 2019 05:19:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Apr 2019 05:19:01 +0000 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 9A50AE0111 for ; Mon, 1 Apr 2019 05:19: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 4E8702459A for ; Mon, 1 Apr 2019 05:19:00 +0000 (UTC) Date: Mon, 1 Apr 2019 05:19:00 +0000 (UTC) From: "Sankar Hariappan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-21540) Query with join condition having date literal throws SemanticException. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-21540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sankar Hariappan updated HIVE-21540: ------------------------------------ Attachment: (was: HIVE-21540.01.patch) > Query with join condition having date literal throws SemanticException. > ----------------------------------------------------------------------- > > Key: HIVE-21540 > URL: https://issues.apache.org/jira/browse/HIVE-21540 > Project: Hive > Issue Type: Bug > Components: Query Planning > Affects Versions: 3.1.0, 4.0.0, 3.1.1 > Reporter: Sankar Hariappan > Assignee: Sankar Hariappan > Priority: Major > Labels: Analyzer, DateField, pull-request-available > Attachments: HIVE-21540.01.patch > > Time Spent: 10m > Remaining Estimate: 0h > > This semantic exception is thrown for the following query. > *SemanticException '2019-03-20' encountered with 0 children* > {code} > create table date_1 (key int, dd date); > create table date_2 (key int, dd date); > select d1.key, d2.dd from( > select key, dd as start_dd, current_date as end_dd from date_1) d1 > join date_2 as d2 on d1.key = d2.key where d2.dd between start_dd and end_dd; > {code} > When the WHERE condition below is commented out, the query completes successfully. > where d2.dd between start_dd and end_dd > ------------------------------------------------ -- This message was sent by Atlassian JIRA (v7.6.3#76005)