Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FB0911811 for ; Thu, 28 Aug 2014 01:44:23 +0000 (UTC) Received: (qmail 20419 invoked by uid 500); 28 Aug 2014 01:44:23 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 20390 invoked by uid 500); 28 Aug 2014 01:44:23 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 20381 invoked by uid 99); 28 Aug 2014 01:44:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 01:44:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 28 Aug 2014 01:44:01 +0000 Received: (qmail 18372 invoked by uid 99); 28 Aug 2014 01:43:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 01:43:58 +0000 Date: Thu, 28 Aug 2014 01:43:58 +0000 (UTC) From: "Mehant Baid (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-1354) Date truncate function throws UnsupportedOperation exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Mehant Baid created DRILL-1354: ---------------------------------- Summary: Date truncate function throws UnsupportedOperation exception Key: DRILL-1354 URL: https://issues.apache.org/jira/browse/DRILL-1354 Project: Apache Drill Issue Type: Bug Reporter: Mehant Baid Date truncate function uses the toString() on the varchar holder which throws UnsupportedOperationException. Since value holders are potential scalar replacements, we shouldn't invoke any methods on the holder itself. Instead use static String helper functions. -- This message was sent by Atlassian JIRA (v6.2#6252)