-
Notifications
You must be signed in to change notification settings - Fork 425
feat(firestore-bigquery-export): add collection group query support #2518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
feat(firestore-bigquery-export): add collection group query support #2518
Conversation
- Add --is-collection-group-query flag to gen-schema-view script - Support both regular collection and collection group queries in Gemini schema generation - Update sampleFirestoreDocuments function with isCollectionGroupQuery parameter - Add interactive prompt for collection group query selection - Update documentation with examples and explanations - Add comprehensive test coverage for new functionality - Maintain backward compatibility with existing functionality This allows users to generate schemas for subcollections that appear across multiple parent documents by using collection group queries instead of regular collection queries.
- Update command line flag from --is-collection-group-query to --query-collection-group - Update all documentation and examples with new flag name - Update tests to use new flag name - Maintain same functionality with cleaner flag naming This provides a more concise and intuitive flag name for collection group queries.
|
Hi @superphil0, thank you for opening this Pull Request. We will review and provide feedback. Thanks! |
cabljac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the local dependency on the change tracker
done |
firestore-bigquery-export/scripts/gen-schema-view/src/config/interactive.ts
Outdated
Show resolved
Hide resolved
firestore-bigquery-export/scripts/gen-schema-view/src/config/interactive.ts
Outdated
Show resolved
Hide resolved
…p query. - Update the message for the collection path to include both collection and collection group options.
|
@cabljac can you review again? |
|
@cabljac anything missing here? |
|
@superphil0 thanks for your patience! lgtm. |
|
I want to give this a quick manual test before releasing, we will try to get this out this week. |
This allows users to generate schemas for subcollections that appear across multiple parent documents by using collection group queries instead of regular collection queries.
This loosely follows the pattern of the import script by adding the same flag --query-collection-group
I did test this on my own production DB, so works for my purposes
Feature request here: #2516