firestore-bigquery-export: typed arrays for schema views
See original GitHub issue[REQUIRED] Step 2: Extension name
This feature request is for extension: firestore-bigquery-export
, and in particular for the GENERATE_SCHEMA_VIEWS.md
What feature would you like to see?
Support for arrays of different types. For example, some of the arrays in our project have maps inside them. A natural way to handle this would be to create a value field for each of the keys in the map. Even now, it’s a bit strange that the array type doesn’t specify if it’s a string, number, boolean etc.
How would you use it?
To import and use bigquery on firestore objects that have arrays of nested maps.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Loading data from Firestore exports | BigQuery
BigQuery supports loading data from Firestore exports created using the Firestore managed import and export service. The managed import and export service ......
Read more >Generate schema views using 'Export Collections to ...
In the fields array, each item will have a name and type property. name is the fieldName you have used in your collections...
Read more >Exporting data from Firebase (Firestore) to BigQuery
Firestore supports export/import operations of collections to Cloud Storage and BigQuery supports the import od these exports. We just need to ...
Read more >Export Performance Monitoring data to BigQuery - Firebase
Enable BigQuery export; What data is exported to BigQuery? Detailed data schema. What can you do with the exported data? View average app...
Read more >Firestore to BigQuery via Firebase Extensions - Invertase
BigQuery can be considered the opposite of Firestore from a data structured point of view. Using an advanced querying engine, large complex ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Initial PR added. For discussion, initial results have produced something similar to the following:
And for the latest view
Samples results lead to multiple rows per array item.
Questions
Thank you @nwparker ! I have turned to looking at a combination of
unnest()
andjson_extract_array()
to extract the values from my data. I suspect I’ll be simply adding a hand-coded query to BQ rather than expecting@firebaseextensions/fs-bq-schema-views
to generate one for me.I got some good direction from this question I posted on Stackoverflow.