Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18393

Camel-bigquery: NPE if select * is requested

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.1, 3.19.0
    • 3.18.2, 3.19.0
    • camel-google-bigquery
    • None
    • Unknown

    Description

      Recent change of the component brought some problems:

      • If select * from query is executed then it causes NPE.
        	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)
        
        
      • 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

      Attachments

        Issue Links

          Activity

            People

              jondruse Jiri Ondrusek
              jondruse Jiri Ondrusek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: