Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BigQuery row in Dataflow - "getF()" returns null

We have a Pipeline which reads from a BigQuery table. Calling the method getF() on the TableRow should return a List<TableCell> for that row. But it returns null.

Why does getF() return null?

@Override
public void processElement(ProcessContext c) throws Exception {
   TableRow aRow = context.element();
   List<TableCell> tableCells = aRow.getF(); //This returns null! 
}
like image 898
Graham Polley Avatar asked May 19 '15 03:05

Graham Polley


2 Answers

Update from January 2016: getF() is not supported - support for it was never reliable and has been completely removed in this commit. Please use row.get("fieldname") instead.

Original from September 2015: The SDK has been updated with a fix for this issue.

like image 69
Sam McVeety Avatar answered Nov 13 '22 15:11

Sam McVeety


getF() is not supported - support for it was never reliable and has been completely removed in this commit. Please use row.get("fieldname") instead.

like image 29
jkff Avatar answered Nov 13 '22 16:11

jkff