adds function for reading a single entity from azure table storage#119
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new exported helper for reading a single Azure Table Storage entity by partition and row key.
Changes:
- Adds
read_azure_table_single_entity(). - Exports the new function.
- Adds generated Rd documentation for the new public API.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
R/read_azure_table.R |
Implements the single-entity Azure Table request helper. |
NAMESPACE |
Exports read_azure_table_single_entity(). |
man/read_azure_table_single_entity.Rd |
Documents the new function. |
Files not reviewed (1)
- man/read_azure_table_single_entity.Rd: Language not supported
Comments suppressed due to low confidence (2)
R/read_azure_table.R:109
- The key predicate is assembled by directly interpolating
partition_keyandrow_keyinto OData string literals. Azure Table keys can contain single quotes, and OData requires those quotes to be escaped by doubling them; without escaping, valid keys containing'produce an invalid URI or can change the key predicate being requested.
table_name_with_keys <- paste0(
table_name,
"(PartitionKey='",
partition_key,
"',RowKey='",
row_key,
"')"
)
R/read_azure_table.R:122
- This returns the parsed JSON object directly, but the function documents and mirrors
read_azure_table()as returning a tibble. A single entity response will come back as a named list/data frame rather than atbl_df, which is inconsistent with the public API and will break callers expecting tibble semantics.
req |>
httr2::req_perform() |>
httr2::resp_check_status() |>
httr2::resp_body_json(simplifyVector = TRUE)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
francisbarton
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.