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

Rahul Challapalli commented on DRILL-2462:
------------------------------------------

Also when we have a query which uses a function which makes a column required, 
isNullable should return false. I can give an example of such a function if 
needed. 
The JDBC spec is not very clear on the behavior of isNullable when used with 
functions. I tested with postgres and postgres returns 'false' for derived 
columns which are non-nullable.

I can raise a different issue for this if it has a different priority than the 
original one.

> 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
>         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