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

Daniel Barclay (Drill) commented on DRILL-2462:
-----------------------------------------------

{{ResultSetMetaData.isNullable(int)}} seems to be returning the right value 
({{ResultSetMetaData.columnNoNulls}}) for the attached {{fewtypes.parquet}} 
file, as well as the right value ({{ResultSetMetaData.columnNullable}}) for a 
SELECT column expression of "{{CAST(NULL TO INTEGER)}}").



> JDBC : ResultSetMetaData.isNullable returns true even when the column is a 
> required one
> ---------------------------------------------------------------------------------------
>
>                 Key: DRILL-2462
>                 URL: https://issues.apache.org/jira/browse/DRILL-2462
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - JDBC
>            Reporter: Rahul Challapalli
>            Assignee: Daniel Barclay (Drill)
>            Priority: Critical
>             Fix For: 1.1.0
>
>         Attachments: fewtypes.parquet
>
>
> git.commit.id.abbrev=7b4c887
> I attached a parquet file in which all the columns are required
> {code}
> /root/parquet-tools-1.5.1-SNAPSHOT/parquet-tools schema fewtypes.parquet
> message root {
>   required int32 int_col;
>   required int64 bigint_col;
>   required int32 date_col (DATE);
>   required int32 time_col (TIME);
>   required int64 timestamp_col (TIMESTAMP);
>   required binary interval_col (UTF8);
>   required binary varchar_col (UTF8);
>   required float float_col;
>   required double double_col;
>   required boolean bool_col;
> }
> {code}
> However ResultSetMetaData.isNullable returns true for these columns.
> Let me know if you need anythig



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to