You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2021/06/21 14:35:00 UTC
[jira] [Updated] (CALCITE-4655) JdbcTable.scan throws
NullPointerException
[ https://issues.apache.org/jira/browse/CALCITE-4655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde updated CALCITE-4655:
---------------------------------
Summary: JdbcTable.scan throws NullPointerException (was: NullPointerException in JdbcTable.scan)
> JdbcTable.scan throws NullPointerException
> ------------------------------------------
>
> 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
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 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)