数据流中的BigQuery行-"getF()"返回null [英] BigQuery row in Dataflow - "getF()" returns null
本文介绍了数据流中的BigQuery行-"getF()"返回null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们有一个从BigQuery表读取的管道.在TableRow上调用方法getF()
应该为该行返回一个List<TableCell>
.但它返回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
.
为什么getF()
返回null
?
@Override
public void processElement(ProcessContext c) throws Exception {
TableRow aRow = context.element();
List<TableCell> tableCells = aRow.getF(); //This returns null!
}
推荐答案
自2016年1月起更新:不支持getF()
-对它的支持从不可靠,并且已在.
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.
最初于2015年9月发布:SDK已更新,并已针对此问题进行了修复.
Original from September 2015: The SDK has been updated with a fix for this issue.
这篇关于数据流中的BigQuery行-"getF()"返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文