Skip to content

delete_entity with TableEntity requires RowKey to be string #26360

Open
@mtin

Description

@mtin

When using create_entity or upsert_entity and passing a TableEntity the SDK takes care of converting the property data types. For example, the RowKey could have type UUID. See _add_entity_properties.

delete_entity also offers an overload accepting a TableEntity - but then uses PartitionKey and RowKey directly, raising a TypeError: PartitionKey or RowKey must be of type string. when I use my same object that I pass to create/upsert.

Is this expected behaviour? I can cast to string, but wouldn't it be more consistent if this would be handled by the SDK? 😇

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Tablesauto-close-exemptPrevents the auto-close from closing based on max lifetimecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions