You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2021/06/18 08:23:00 UTC

[jira] [Commented] (CALCITE-4655) NullPointerException in JdbcTable.scan

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

Stamatis Zampetakis commented on CALCITE-4655:
----------------------------------------------

Thanks for logging this [~kramerul]. Do you have a unit test for reproducing the issue. 

Note that we are not using the 'next' tag at the moment. Fix version should be left empty if nobody is working on this or set to the actual version (currently 1.28.0) if somebody is committed to fix it.

> NullPointerException in JdbcTable.scan
> --------------------------------------
>
>                 Key: CALCITE-4655
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4655
>             Project: Calcite
>          Issue Type: Improvement
>    Affects Versions: 1.26.0, 1.27.0
>            Reporter: Ulrich Kramer
>            Priority: Major
>             Fix For: next
>
>
> Calling {{JdbcTable.scan}} will result in a {{NullPointerException}} because inside {{JdbcTable.fieldClasses}}  {{protoRowType}} is null.
> This could easily be fixed by replacing
> {code:java}
>  final RelDataType rowType = requireNonNull(protoRowType, "protoRowType").apply(typeFactory);
> {code}
> with
> {code:java}
>  final RelDataType rowType = getRowType(typeFactory);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)