[firestore-bigquery-export] - How to specify Firestore database #2200
Unanswered
gmyrianthous
asked this question in
Q&A
Replies: 1 comment
-
As per this discussion #2122 DB name is not supported with current version of extension. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to enable Firestore to BigQuery replication, by using the Stream Firestore to BigQuery Firebase extension that will be in charge of the continuous replication process. On top of it, and since the extension currently does not allow for backfilling options (due to a bug that resulted in the removal of this feature from latest releases), I would like to run @firebaseextensions/fs-bq-import-collection script to perform the backfilling and replicating existing data from Firestore to BigQuery.
Things work fine, as far as I replicate data from a collection that resides in the
(default)
database. However, when I attempt to perform the replication (with either of the tools) from a collection in a database other than(default)
, no records are being replicated.I believe, I'm probably doing something wrong when it comes down to specifying the collection path. None of these tools provide the option to specify the specific database. How do I specify a collection path, that also includes the database details ?
What I've tried so far, assuming that:
my-project
my-db
my-coll
this would work if
my-coll
was in(default)
db.this gives me an error from
@firebaseextensions/fs-bq-import-collection
:but once again, I get the error
Anyone who can shed some light here? It makes no sense not to be able to specify a db at all. What if I had collections with the same name residing in different dbs?
Is there a good reason why it was decided to hardcode (!!!!) the database name instead of including it in the prompt?
Beta Was this translation helpful? Give feedback.
All reactions