The following code will execute a query job and display the results in the console. The output will be the schema of the rows returned for the query and the individual column values for each row:
BigQuery provides an option to get the cost estimate for running a query without actually running it. To do this, use the QueryOptions.DryRun flag and set it to true. This feature can be used to run queries in test mode to estimate the cost of a query. If the query is going to return more than 128 MB of compressed data as a result, then set the QueryOptions.AllowLargeResults flag to true.
Call the preceding method from the main method as shown next and verify the output in the console. Load the rows into your application objects before passing it to other layers of your application: