You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/08/15 17:23:00 UTC
[jira] [Updated] (CAMEL-18393) Camel-bigquery: NPE if select * is requested
[ https://issues.apache.org/jira/browse/CAMEL-18393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-18393:
--------------------------------
Affects Version/s: 3.18.1
(was: 3.18.2)
> Camel-bigquery: NPE if select * is requested
> --------------------------------------------
>
> Key: CAMEL-18393
> URL: https://issues.apache.org/jira/browse/CAMEL-18393
> Project: Camel
> Issue Type: Bug
> Components: camel-google-bigquery
> Affects Versions: 3.18.1, 3.19.0
> Reporter: Jiri Ondrusek
> Assignee: Jiri Ondrusek
> Priority: Major
> Fix For: 3.18.2, 3.19.0
>
>
> Recent change of the component brought some problems:
> * If _select * from_ query is executed then it causes NPE.
> {code}
> Caused by: java.lang.NullPointerException
> at org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLProducer.executeSQL(GoogleBigQuerySQLProducer.java:111)
> at org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLProducer.process(GoogleBigQuerySQLProducer.java:82)
> at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66)
> {code}
> * Another problem is that the result of the producer for `select` queries should be the _totalRows_ from the result.
> Code causing the troubles is https://github.com/apache/camel/commit/bdd495048da891a2e856a116355e9ca6b6f58c72#diff-fd3f8e800c602d7167e9cdbfb4d6af42e1e6223d05eae2242b9c5b14703862ffR111-R116
--
This message was sent by Atlassian Jira
(v8.20.10#820010)