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

Brian Hulette commented on BEAM-12835:
--------------------------------------

I'm not that familiar with what BigQueryIO does here, Cham or Reuven may know 
better. Regardless, it would be helpful if you could share the actual 
stacktrace of the NPE, do you have access to it?

> BigQueryIO.readTableRows() throws NullPointerException
> ------------------------------------------------------
>
>                 Key: BEAM-12835
>                 URL: https://issues.apache.org/jira/browse/BEAM-12835
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>    Affects Versions: 2.31.0, 2.32.0
>            Reporter: Francesco Galiano
>            Priority: P2
>
> 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*.
> {code}
>         PCollection<TableRow> tableRows = p.apply("ReadFromBQ", 
>         BigQueryIO
>         ._readTableRows_()
>         .from(project:dataset.table)
>         );
> {code}
>  
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to