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

Wrong inference of azure storage table entity value type #15576

Open
tunz opened this issue Oct 19, 2020 · 6 comments
Open

Wrong inference of azure storage table entity value type #15576

tunz opened this issue Oct 19, 2020 · 6 comments
Assignees
Labels
CosmosDB Table az storage table/entity; Table related Service Attention This issue is responsible by Azure service team. Storage az storage
Milestone

Comments

@tunz
Copy link

tunz commented Oct 19, 2020

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 .

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 19, 2020
@yonzhan yonzhan added the Storage az storage label Oct 19, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Oct 19, 2020
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Oct 19, 2020
@yonzhan yonzhan added this to the S178 milestone Oct 19, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 19, 2020

add to S178

@Juliehzl
Copy link
Contributor

@tunz I could reproduce your issue but we send the request as you provided and cosmosdb changes the type.
create an issue in Azure/azure-cosmos-table-python#56

@Juliehzl Juliehzl added the Service Attention This issue is responsible by Azure service team. label Nov 26, 2020
@ghost
Copy link

ghost commented Nov 26, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Issue Details

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 .

Author: tunz
Assignees: Juliehzl
Labels:

OKR3.2 Candidate, Service Attention, Storage, feature-request

Milestone: S179

@yonzhan yonzhan modified the milestones: S179, Backlog Nov 28, 2020
@xiafu-msft xiafu-msft added the CosmosDB az cosmosdb label Jan 9, 2021
@ghost
Copy link

ghost commented Jan 9, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @wmengmsft, @MehaKaushik, @shurd, @anfeldma-ms.

Issue Details

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 .

Author: tunz
Assignees: Juliehzl
Labels:

Cosmos, Service Attention, Storage

Milestone: Backlog

@xiafu-msft xiafu-msft added the CosmosDB Table az storage table/entity; Table related label Jan 9, 2021
@MehaKaushik MehaKaushik removed the CosmosDB az cosmosdb label Jan 13, 2021
@MehaKaushik
Copy link
Contributor

I have removed "cosmos" label. This label indicates that the issue is related to az cli cosmosdb. We are tracking these issues and since this issue is not related to cosmosdb cli, I am removing the label.

@ggirard07
Copy link

I have the same issue but with a Guid based value which get converted as a string instead....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CosmosDB Table az storage table/entity; Table related Service Attention This issue is responsible by Azure service team. Storage az storage
Projects
None yet
Development

No branches or pull requests

7 participants