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 4F64717BF0 for ; Mon, 30 Mar 2015 16:01:53 +0000 (UTC) Received: (qmail 13211 invoked by uid 500); 30 Mar 2015 16:01:53 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 13039 invoked by uid 500); 30 Mar 2015 16:01:53 -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 12879 invoked by uid 99); 30 Mar 2015 16:01:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 16:01:53 +0000 Date: Mon, 30 Mar 2015 16:01:53 +0000 (UTC) From: "Victoria Markman (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2621) When view is created on top of parquet file, underlying data types should be automatically converted to SQL type 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-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Victoria Markman updated DRILL-2621: ------------------------------------ Description: Since parquet types are known to us, we need to make sure to expose these types without making user explicitly cast each column. "create view v1 as select c_integer from j1; " produces view with column of ANY data type. {code} 0: jdbc:drill:schema=dfs> describe v1; +-------------+------------+-------------+ | COLUMN_NAME | DATA_TYPE | IS_NULLABLE | +-------------+------------+-------------+ | c_integer | ANY | YES | +-------------+------------+-------------+ 1 row selected (0.091 seconds) {code} I think we need to extend "CREATE VIEW" document for GA explaining this fact. was: Since parquet types are known to us, we need to make sure to expose these types without making user explicitly cast each column. "create view v1 as select c_integer from j1; " produces view with column of ANY data type. {code} 0: jdbc:drill:schema=dfs> describe v1; +-------------+------------+-------------+ | COLUMN_NAME | DATA_TYPE | IS_NULLABLE | +-------------+------------+-------------+ | c_integer | ANY | YES | +-------------+------------+-------------+ 1 row selected (0.091 seconds) {code} I think we need to expend "CREATE VIEW" document for GA explaining this fact. > When view is created on top of parquet file, underlying data types should be automatically converted to SQL type > ---------------------------------------------------------------------------------------------------------------- > > Key: DRILL-2621 > URL: https://issues.apache.org/jira/browse/DRILL-2621 > Project: Apache Drill > Issue Type: New Feature > Reporter: Victoria Markman > > Since parquet types are known to us, we need to make sure to expose these types without making user explicitly cast each column. > "create view v1 as select c_integer from j1; " produces view with column of ANY data type. > {code} > 0: jdbc:drill:schema=dfs> describe v1; > +-------------+------------+-------------+ > | COLUMN_NAME | DATA_TYPE | IS_NULLABLE | > +-------------+------------+-------------+ > | c_integer | ANY | YES | > +-------------+------------+-------------+ > 1 row selected (0.091 seconds) > {code} > I think we need to extend "CREATE VIEW" document for GA explaining this fact. -- This message was sent by Atlassian JIRA (v6.3.4#6332)