Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72CB8183E7 for ; Fri, 24 Apr 2015 21:02:40 +0000 (UTC) Received: (qmail 82656 invoked by uid 500); 24 Apr 2015 21:02:40 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 82602 invoked by uid 500); 24 Apr 2015 21:02:40 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 82553 invoked by uid 99); 24 Apr 2015 21:02:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2015 21:02:40 +0000 Date: Fri, 24 Apr 2015 21:02:40 +0000 (UTC) From: "Victoria Markman (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DRILL-1876) Implement concatenation operator ( || ) 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/DRILL-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Victoria Markman resolved DRILL-1876. ------------------------------------- Resolution: Fixed > Implement concatenation operator ( || ) > --------------------------------------- > > Key: DRILL-1876 > URL: https://issues.apache.org/jira/browse/DRILL-1876 > Project: Apache Drill > Issue Type: Bug > Components: Documentation > Affects Versions: 0.7.0 > Reporter: Victoria Markman > Fix For: 0.8.0 > > > It is documented, but it does not work at all (DRILL-779) > Workaround exists: concat function > As of version 0.7.0 (git.commit.id.abbrev=3b0ff5d) > (1) > 0: jdbc:drill:schema=dfs> select 'abc' || 'def' from cp.`tpch/nation.parquet`; > Query failed: Query failed: Failure while running fragment.[ dc4727ed-4ac3-42bb-a60b-f8f370dd4fcf on atsqa4-133.qa.lab:31010 ] > [ dc4727ed-4ac3-42bb-a60b-f8f370dd4fcf on atsqa4-133.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) > (2) > 0: jdbc:drill:schema=dfs> select n_name || 'xyz' from cp.`tpch/nation.parquet`; > Query failed: Query failed: Unexpected exception during fragment initialization: Internal error: pre-condition failed: SqlTypeUtil.sameNamedType(argTypes[0], argTypes[1]) > Error: exception while executing query: Failure while executing query. (state=,code=0) > (3) > 0: jdbc:drill:schema=dfs> select cast(n_nationkey as varchar(10)) || n_name from cp.`tpch/nation.parquet`; > Query failed: Query failed: Unexpected exception during fragment initialization: Internal error: pre-condition failed: SqlTypeUtil.sameNamedType(argTypes[0], argTypes[1]) > Error: exception while executing query: Failure while executing query. (state=,code=0) > (4) > 0: jdbc:drill:schema=dfs> select 'abc' || 'cde' from `test.json`; > Query failed: Query failed: Failure while running fragment.[ 01194cdf-746c-45db-ae4e-014590bfbffd on atsqa4-133.qa.lab:31010 ] > [ 01194cdf-746c-45db-ae4e-014590bfbffd on atsqa4-133.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) -- This message was sent by Atlassian JIRA (v6.3.4#6332)