Azure / Azure/azure-cli

Wrong inference of azure storage table entity value type

Open
#15,576 6 comments 0 reactions 2 assignees Claimed by @calvinhzy View on GitHub
act-codegen-extensibility-squad CosmosDB Table Service Attention Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Describe the bug**

If I insert an entity value "123_456.1" using `az storage entity insert`, "123456.1" is actually inserted. I think az cli infers the type, and converts it to a numeric type.

**To Reproduce**

```
az storage entity insert ... --entity PartitionKey=PartitionKey RowKey=1 'Name=123_456.1'
```

**Expected behavior**

`123_456.1` should be inserted.

**Environment summary**

```
az --version
azure-cli 2.13.0

core 2.13.0
telemetry 1.0.6

Extensions:
azure-devops 0.18.0
```

**Additional context**

looks like this might be related to #8032 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.