drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Challapalli (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-677) INFORMATION_SCHEMA.COLUMNS table lists nullable columns as non-nullable
Date Fri, 20 Jun 2014 23:30:26 GMT

    [ https://issues.apache.org/jira/browse/DRILL-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039536#comment-14039536
] 

Rahul Challapalli commented on DRILL-677:
-----------------------------------------

Thanks for the fix. Looks good now

> INFORMATION_SCHEMA.COLUMNS  table lists nullable columns as non-nullable
> ------------------------------------------------------------------------
>
>                 Key: DRILL-677
>                 URL: https://issues.apache.org/jira/browse/DRILL-677
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Information Schema
>            Reporter: Rahul Challapalli
>            Assignee: Venki Korukanti
>             Fix For: 1.0.0-BETA1
>
>         Attachments: DRILL-677-1.patch
>
>
> 1. create hive table ( these columns are nullable)
> hive> DROP TABLE IF EXISTS STUDENTS;
> CREATE EXTERNAL TABLE STUDENTS
> (
>     ID VARCHAR(24),
>     NAME VARCHAR(24),
>     STREET VARCHAR(256),
>     ZIPCODE INT,
>     STATE VARCHAR(20)
> )
> ROW FORMAT DELIMITED FIELDS
> TERMINATED BY ','
> STORED AS TEXTFILE LOCATION "/drill/testdata/information-schema/students/";
> 2. From drill issue the below query and check the 'IS_NULLABLE" column
> SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='hive' AND TABLE_NAME='students';



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message