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 C079510BB8 for ; Tue, 27 May 2014 16:50:26 +0000 (UTC) Received: (qmail 34625 invoked by uid 500); 27 May 2014 16:50:26 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 34601 invoked by uid 500); 27 May 2014 16:50:26 -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 34592 invoked by uid 99); 27 May 2014 16:50:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 16:50:26 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,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; Tue, 27 May 2014 16:50:27 +0000 Received: (qmail 33685 invoked by uid 99); 27 May 2014 16:50:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 16:50:02 +0000 Date: Tue, 27 May 2014 16:50:02 +0000 (UTC) From: "Krystal (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-841) TRUNC(n1, n2) fails when n1 is a decimal 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 [ https://issues.apache.org/jira/browse/DRILL-841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009888#comment-14009888 ] Krystal commented on DRILL-841: ------------------------------- Stack trace: org.apache.drill.exec.exception.SchemaChangeException: Failure while trying to materialize incoming schema. Errors: Error in expression at index -1. Error: Missing function implementation: [trunc(FLOAT8-REQUIRED, INT-REQUIRED)]. Full expression: --UNKNOWN EXPRESSION--.. org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.setupNewSchema(ProjectRecordBatch.java:204) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT] org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:60) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT] org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.next(ProjectRecordBatch.java:83) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT] org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.next(ScreenCreator.java:80) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT] org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:98) [drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45] java.lang.Thread.run(Thread.java:744) [na:1.7.0_45] > TRUNC(n1, n2) fails when n1 is a decimal > ---------------------------------------- > > Key: DRILL-841 > URL: https://issues.apache.org/jira/browse/DRILL-841 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Reporter: Krystal > > git.commit.id.abbrev=5b8f8d8 > 0: jdbc:drill:schema=dfs> select trunc(124.349845,2) from voter where voter_id=10; > Query failed: org.apache.drill.exec.rpc.RpcException: [error_id: "4ae8682a-1a6c-488a-b0df-6b6fb8de5309" > endpoint { > address: "qa-node64.qa.lab" > user_port: 31010 > control_port: 31011 > data_port: 31012 > } > error_type: 0 > message: "Screen received stop request sent. < SchemaChangeException:[ Failure while trying to materialize incoming schema. Errors: > > Error in expression at index -1. Error: Missing function implementation: [trunc(FLOAT8-REQUIRED, INT-REQUIRED)]. Full expression: --UNKNOWN EXPRESSION--.. ]" -- This message was sent by Atlassian JIRA (v6.2#6252)