[BUG] Azure.Data.Tables SDK: Type error when accessing PartitionKey or RowKey in non-string property values are set. #40775
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Tables
Library name and version
Azure.Data.Tables 12.8.2
Describe the bug
Expected behavior
type error should be thrown when setting the value of PartitionKey/RowKey if we expect it to be string.
or accessing PartitionKey should return convered string value.
in addition, properties set through constructor should be immutable and should not be overwritten later by setting property value. so an exception should be raised when try to modify it in the property bag, this can avoid undefined behavior on which value should be respected (the one set in constructor, or the one set in property bag).
Actual behavior
Reproduction Steps
Environment
.NetCore
The text was updated successfully, but these errors were encountered: