question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firestore-bigquery-export: Configuration errors for non-required values

See original GitHub issue

Describe your configuration

  • Extension name: firestore-bigquery-export
  • Extension version: 0.1.20
  • Configuration values (redact info where appropriate):
LOCATION=europe-west1
DATASET_LOCATION=europe-west1
COLLECTION_PATH=mycollection
TABLE_ID=mycollection

Describe the problem

I am using the firebase CLI to install the bigquery extension. I have a script that installs the extension for all collections that I stream into bigquery. Now I wanted to add a collection and got errors even for my collections that had the extension already installed. Usually I just get a 409 for those collection. As the parameters WILDCARD_IDS and TIME_PARTITIONING_FIELD_TYPE are not required https://github.com/firebase/extensions/blob/15d65a02fea0d98a28b163e91ef1b17c06b8615b/firestore-bigquery-export/extension.yaml#L226 , I do not understand why the installation complains that they are missing. Once I add the values to the env file

WILDCARD_IDS=false
TIME_PARTITIONING_FIELD_TYPE=omit

the installation produces the usual 409 error again, but also does not update the extension.

Steps to reproduce:

npx firebase ext:install firebase/firestore-bigquery-export --force --params params.env

Expected result

The extension updates or installs for collections where it has previously not been installed.

Actual result

The extension complains about missing config values.

⚠  undefined is not a valid option for WILDCARD_IDS.
⚠  undefined is not a valid option for TIME_PARTITIONING_FIELD_TYPE.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
joehancommented, Jun 13, 2022

@dackers86 I think the fix here is to make these params required & keep the default values. Optional params should be valid if they are null, whereas required params should fall back to default values if they are null. It seems like the later is the desired behavior here.

Additionally, i think there is some wonkiness in how the CLI handles null values for optional SELECT params. I’ll take a look and see if i can improve the logic there a bit.

1reaction
i14hcommented, Mar 29, 2022

@dackers86 maybe this points to adding better documentation around the new features as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading data from Firestore exports | BigQuery - Google Cloud
To load data into BigQuery, you need IAM permissions to run a load job and load data into BigQuery tables and partitions. If...
Read more >
Unable to set up Export Collections to BigQuery extension ...
The following error message means that your FROM statement may not contain the proper query structure - project, database, and table:.
Read more >
Export Firebase Crashlytics data to BigQuery
BigQuery exports contain raw crash data including device type, operating system, exceptions (Android apps) or errors (Apple apps), and Crashlytics logs, as well ......
Read more >
Export Firestore collections to BigQuery and use Data Studio ...
In this talk we show how to configure the “ Export Collections to BigQuery ” extension to export Firestore data to BigQuery, how...
Read more >
[GA4] BigQuery Export error messages - Firebase Help
You haven't been granted the necessary permissions for the Cloud project to which you want to export data. Remedy. Contact your Cloud administrator...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found