Importing from bigquery to google sheets limits to 10k rows - google-bigquery

I'm trying to import a table from google bigquery to google sheets.
DATA > DATA CONNECTORS > BIG QUERY
but when I import it it says LIMITED to 10,000 rows.
Is there any way to pass that limit?

At the moment, according to the documentation, the BigQuery Sheets connector has a limit of 10,000 rows. Although, there is a work around for this limit, in case you want to overcome it.
You can use Google Cloud Storage (GCS) as a staging ground. So, you can export your data to GCS as a .csv file, then import it in Google Sheets. Below the steps are described:
Exporting data from BigQuery to a .csv on Google Cloud Storage (GCS)
You can export your table to GCS manually using the console, using gcloud command or one of the available API's, here.
I must point that you need to have the required permissions to export data to GCS. Also, pay attention to the limitations: you can export up to 1GB to a single data file, also the destination of the export has to be Cloud Storage.
Google Cloud Storage to Google Sheets using Google Cloud Functions
In order to import your .csv file to Google Sheets, you can create a Cloud Function which every time a new .csv file is uploaded to GCS, it is also exported to Google Sheets.
These following tutorials do exactly what I mentioned above, you can simply follow one of them, link 1 and link 2.
Doing so,you will be able to query all your data using Google Sheets and overcome the limitation of 10,000 rows with the BigQuery Sheets connector.

Related

Bigquery Unloading Large Data to a Single GZIP File

I'm using the BigQuery console and was planning to extract a table and put the results into Google Cloud Storage as a GZIP file but encountered an error asking to wilcard the filename as based on Google docs, it's like a limitation for large volume of data and extract needs to be splitted.
https://cloud.google.com/bigquery/docs/exporting-data#console
By any chance is there a workaround so I could have a single compressed file loaded to Google Cloud Storage instead of multiple files? I was using Redshift previously and this wasn't an issue.

BigQuery: Export to GCS option disappeared from BigQuery UI

The option to export to a GCS bucket has disappeared from the BigQuery UI and was replaced with "Export to Google Drive". It's a feature I used a lot for large results and using the export to Drive is not useful at all. It takes very long and I can't work the same way with the file in Drive than I would in GCS. Is there any way I can still export to GCS from BigQuery UI?
The "workaround" for BigQuery UI is to save result as a table (or just have destination table set for query) and after result is available in the table - just use "Export to GCS" option which is "still" available in both Classic and New BQ UI

Getting DoubleClick data from Google Analytics exported to BigQuery

I have GA360 and I have exported raw Google Analytics data to BigQuery through the integration. I'm just wondering if the DCM dimensions and metrics are part of the export?
Ideally these link
I can't find them as part of the export, what would be the best way to access these dimensions for all my raw data? Core reporting API?
This Google Analytics documentation page shows the BigQuery Export schema for the Google Analytics data that is exported to BigQuery. As you will see, the DoubleClick Campaign Manager (DCM) data is not part of the BigQuery export, unlike the DoubleClick for Publishers (DFP), which does appear (these are all the hits.publisher.<DFP_METRIC> metrics).
Therefore, as explained by #BenP in the comments, you may be interested in the BigQuery Data Transfer service, which does have a feature for DoubleClick Campaign Manager Transfers. Unfortunately, I am not an expert in Google Analytics or DCM, and therefore cannot add much relevant info to the process of linking both sets of data, but maybe you can try combining them yourself and then post a new question for that matter if you do not success in doing so.

Compute Engine Label Information in Google Cloud Billing CSV file

In Google Cloud Billing CSV file ,I see none of the Labels associated with the Compute Engines appear in the billing CSV file .
It only has a field named 'Project Labels'.
Is there any way to configure google cloud billing ,so that resource specific labels also appear in the exported CSV ?
According to https://cloudplatform.googleblog.com/2017/12/use-labels-to-gain-visibility-into-GCP-resource-usage-and-spending.html resource specific labels are only available if you enable export of billing data to Big Query.
From there you can construct you own queries to group the data as you like.

upload multiple csv from google cloud to bigquery

I need to upload multiple CSV files from my google bucket. Tried pointing to the bucket when creating the dataset, but i received an error. also tried
gsutil load <projectID:dataset.table> gs://mybucket
it didn't work.
I need to upload multiple files at a time as my total data is 2-3 TB and there is a large number of files
You're close. Google Cloud Storage uses gsutil, but BigQuery's command-line utility is "bq". The command you're looking for is bq load <table> gs://mybucket/file.csv.
bq's documentation is over here: https://developers.google.com/bigquery/bq-command-line-tool