bigquery-emulator
bigquery-emulator copied to clipboard
Table.getNumRows is null (numRows field not populated eventhough the table has rows)
I have created a table with the emulator and inserted a row in there. I have implemented this method to get the rowCount for the table as it is more performant compared to running an SQL select count(*) query:
public long countRows(Table table) { return table.getNumRows().longValue(); }
However the above method throws a null pointer exception because numRows field is null for the com.google.cloud.bigquery.Table eventhough the table has rows.
It would be nice to fix this issue in the emulator.
Thank you for reporting this issue. Could you please provide detailed steps on how to reproduce it? Thank you.