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 A6D602009F7 for ; Sat, 7 May 2016 21:12:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A5633160A02; Sat, 7 May 2016 19:12:14 +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 200E9160A01 for ; Sat, 7 May 2016 21:12:13 +0200 (CEST) Received: (qmail 10919 invoked by uid 500); 7 May 2016 19:12:13 -0000 Mailing-List: contact issues-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 issues@drill.apache.org Received: (qmail 10816 invoked by uid 99); 7 May 2016 19:12:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2016 19:12:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 058652C1F60 for ; Sat, 7 May 2016 19:12:13 +0000 (UTC) Date: Sat, 7 May 2016 19:12:13 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4658) cannot specify tab as a fieldDelimiter in table function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 07 May 2016 19:12:14 -0000 [ https://issues.apache.org/jira/browse/DRILL-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15275346#comment-15275346 ] Jacques Nadeau commented on DRILL-4658: --------------------------------------- Can you try using unicode escaping? {code} select columns[0] as a, cast(columns[1] as bigint) as b from table(dfs.tmp.`sample_cast.tsv`(type => 'text', fieldDelimiter => U&'\0009', skipFirstLine => true)); {code} > cannot specify tab as a fieldDelimiter in table function > -------------------------------------------------------- > > Key: DRILL-4658 > URL: https://issues.apache.org/jira/browse/DRILL-4658 > Project: Apache Drill > Issue Type: Bug > Components: SQL Parser > Affects Versions: 1.6.0 > Environment: Mac OS X, Java 8 > Reporter: Vince Gonzalez > > I can't specify a tab delimiter in the table function because it maybe counts the characters rather than trying to interpret as a character escape code? > {code} > 0: jdbc:drill:zk=local> select columns[0] as a, cast(columns[1] as bigint) as b from table(dfs.tmp.`sample_cast.tsv`(type => 'text', fieldDelimiter => '\t', skipFirstLine => true)); > Error: PARSE ERROR: Expected single character but was String: \t > table sample_cast.tsv > parameter fieldDelimiter > SQL Query null > [Error Id: 3efa82e1-3810-4d4a-b23c-32d6658dffcf on 172.30.1.144:31010] (state=,code=0) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)