You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 21:03:22 UTC

[GitHub] [beam] damccorm opened a new issue, #21079: BigQueryIO.readTableRows() throws NullPointerException

damccorm opened a new issue, #21079:
URL: https://github.com/apache/beam/issues/21079

   I tried different methods to extract table content using *BigQueryIO* but in all scenarios, when I try to use *DataflowRunner* I always get the same *NullPointerException*.
   
   The reason I found for this error is that while reading the table, *if there are any null values it ignore them without setting the null value*.
   
   ```
   
           PCollection<TableRow> tableRows = p.apply("ReadFromBQ", 
   
           BigQueryIO
   
           ._readTableRows_()
   
    
         .from(project:dataset.table)
   
           );
   
   ```
   
    
   
   The only thing it worked was using DirectRunner with `.readTableRowsWithSchema()` but using DataflowRunner I'm still facing the issue.
   
    
   
   Please solve this bug and/or help me to find a solution.
   
   Imported from Jira [BEAM-12835](https://issues.apache.org/jira/browse/BEAM-12835). Original Jira may contain additional context.
   Reported by: Fra.G.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org