Skip to content
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

Add column restore_parameters to table azure_cosmosdb_account. Closes #593 #594

Conversation

karanpopat
Copy link
Contributor

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
> select
  name,
  restore_parameters -> 'restoreMode' as restore_mode,
  restore_parameters -> 'restoreSource' as restore_source,
  d ->> 'databaseName' as restored_database_name,
  c as restored_collection_name
from
  azure_cosmosdb_account,
  jsonb_array_elements(restore_parameters -> 'databasesToRestore') d,
  jsonb_array_elements_text(d -> 'collectionNames') c;

+-------------------+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+--------------------------+
| name              | restore_mode  | restore_source                                                                                                                                                        | restored_database_name | restored_collection_name |
+-------------------+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+--------------------------+
| test-acc-restored | "PointInTime" | "/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/082cee20-9cf4-44bc-a107-447c9ce81ab5" | demo-db                | demo-coll1               |
+-------------------+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+--------------------------+

@karanpopat karanpopat requested a review from ParthaI March 27, 2023 11:38
@karanpopat karanpopat self-assigned this Mar 27, 2023
@karanpopat karanpopat linked an issue Mar 27, 2023 that may be closed by this pull request
Copy link
Contributor

@misraved misraved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karanpopat please take a look at the review comments. Thanks!!

docs/tables/azure_cosmosdb_account.md Outdated Show resolved Hide resolved
@karanpopat karanpopat requested a review from misraved March 29, 2023 06:04
@misraved misraved merged commit 6485e1a into main Mar 29, 2023
@misraved misraved deleted the 593-add-column-restore_parameters-to-table-azure_cosmosdb_account branch March 29, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add column restore_parameters to table azure_cosmosdb_account
2 participants