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 EB15618AD7 for ; Thu, 1 Oct 2015 22:15:32 +0000 (UTC) Received: (qmail 68162 invoked by uid 500); 1 Oct 2015 22:15:26 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 68130 invoked by uid 500); 1 Oct 2015 22:15:26 -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 68119 invoked by uid 99); 1 Oct 2015 22:15:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2015 22:15:26 +0000 Date: Thu, 1 Oct 2015 22:15:26 +0000 (UTC) From: "Khurram Faraaz (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3870) CONVERT_FROM(..., uint8_be) can not be used in project 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-3870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Khurram Faraaz updated DRILL-3870: ---------------------------------- Assignee: Aditya Kishore > CONVERT_FROM(..., uint8_be) can not be used in project > ------------------------------------------------------ > > Key: DRILL-3870 > URL: https://issues.apache.org/jira/browse/DRILL-3870 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Relational Operators > Affects Versions: 1.2.0 > Environment: 4 node cluster CentOS > Reporter: Khurram Faraaz > Assignee: Aditya Kishore > Fix For: Future > > > CONVERT_FROM(..., 'uint8_be') results in UNSUPPORTED_OPERATION when used in project. However, when it is used in the predicate in the WHERE clause no error is reported. > Data in the HBase table has long integer values. > {code} > 0: jdbc:drill:schema=dfs.tmp> SELECT CONVERT_FROM(BYTE_SUBSTR(row_key,1,8),'bigint_be') AS RK from dt_Tbl T; > +----------------+ > | RK | > +----------------+ > | 1408924800000 | > | 1443240886094 | > | 1443413686094 | > | 1443491446094 | > | 1443500086094 | > +----------------+ > 5 rows selected (0.767 seconds) > {code} > The below query fails when CONVERT_FROM function is used in the project. > {code} > 0: jdbc:drill:schema=dfs.tmp> SELECT CONVERT_FROM(BYTE_SUBSTR(row_key,1,8),'uint8_be') AS RK from dt_Tbl T; > Error: UNSUPPORTED_OPERATION ERROR: CONVERT_FROM does not support conversion from type 'uint8_be'. > Did you mean UINT8? > [Error Id: 1e58b2bb-73c3-4c55-84db-e59b80ea6dbb on centos-03.qa.lab:31010] (state=,code=0) > {code} > When the same CONVERT_FROM function is used in the predicate no error is reported. > {code} > 0: jdbc:drill:schema=dfs.tmp> select * from dt_Tbl WHERE CONVERT_FROM(BYTE_SUBSTR(row_key,1,8),'uint8_be') < cast(1443500086094 as bigint); > +--------------+-----------------------+ > | row_key | colfam1 | > +--------------+-----------------------+ > | [B@14c9d776 | {"qual1":"dmFsMQ=="} | > | [B@4f608ea3 | {"qual1":"dmFsNQ=="} | > | [B@4c34980b | {"qual1":"dmFsNA=="} | > | [B@10ea2143 | {"qual1":"dmFsMw=="} | > +--------------+-----------------------+ > 4 rows selected (0.865 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)