Questions tagged [azure-tableclient]
10 questions
4
votes
1 answer
How many requests TableClient.Query will make, if AsPages() is not used?
I have a question about Pageable< T > in C#. I have table storage in Azure named- Domains. I am using Azure.Data.Tables nuget package, and to Query all the domains i am using this :
var domains = _localDomainTableClient
…

Ali Hasan
- 121
- 8
1
vote
1 answer
Migrate from Microsoft.WindowsAzure.Storage.Table to Azure.Data.Tables - deserialization issues
I'm in the process of migrating code from Microsoft.WindowsAzure.Storage.Table to the Azure.Data.Tables. The issue described appears on querying entities with content that don't match the datatype. Consider the following snippet of migrated…

kseeker
- 21
- 1
- 4
0
votes
1 answer
Azure SWA Function response is incorrect when Azure Table storage called
I have an api in an Azure SWA which needs to retrieve data from Azure Table Storage.
I am running local development using VSCode on an M1 MAC w/ the Function and SWA extensions, a dev-container, with Docker configure to use Rosetta.
The function…

WillD
- 875
- 1
- 7
- 14
0
votes
1 answer
Remove Azure Table Storage EntityProperty from TableClient.query_entities() Results Before Writing to Pandas DataFrame in Python
I'm fairly new to using Azure Table Storage and am trying to pull data from it with Python into a Pandas DataFrame. I am using TableClient .query_entities() from the azure-data-tables package, and it is returning data, but integer values are being…

HoRace
- 25
- 1
- 9
0
votes
1 answer
How to change option allowInsecureConnection Node.Js working with Azurite
I try to connect to a Table in Azurite from an azure function written in node.js
myTableClient = TableClient.fromConnectionString(process.env.STORAGE_CONNECTION_STRING,
"myTable" );
entity = await myTableClient.getEntity("partitionkey",…

Bogdan_Ch
- 3,328
- 4
- 23
- 39
0
votes
1 answer
Struggling with syntax to mock Azure.Data.TableClient.Query()
I am trying to mock the Query method of Azure.Data.Tables.TableClient but cannot get my head around the syntax.
The concrete query I am trying to mock is:
var query = tableClient.Query(filter: mp => mp.PartitionKey == "abc");
My attempts to…

phil
- 1,938
- 4
- 23
- 33
0
votes
1 answer
Query Azure table storage for faster retrieval of data in C#
I have a ATS table whose Partition key and Row Key looks like:
PartitionKey RowKey
US_W|000000001 0000200325|0184921077191606273
US_W|000000004 0000200328|0184921077191606277
US_W|000000005 XXXXXXXXXX|XX(somenumbers)XXXX
To be…

Abhishek_Singh_Rana
- 65
- 4
0
votes
0 answers
Mock `TableClient.QueryAsync()` for Unit Test
I have the following method that I need to test:
public async Task GetAsync(string partitionKey, string rowKey)
{
var entities = new List();
await foreach (var e in _tableClient.QueryAsync(x => x.PartitionKey…

stack247
- 5,579
- 4
- 41
- 64
0
votes
1 answer
How to filter by timestamp using TableClient from @azure/data-tables
I have an azure storage table which Im trying to filter by timestamp. I am using TableClient by @azure/data-tables to achieve this. I used odata query expression to do the filtering.
import { AzureNamedKeyCredential, TableClient } from…

Nigel
- 985
- 1
- 11
- 16
0
votes
2 answers
Getting multiple entities using Azure TableStorage over multiple partitions
I'm using Azure.Data.Tables (12.6.1) and I need to query a single record from multiple partitions of a single table (so the result would be multiple records, 1 from each partition). Each entity needs to be looked up by its partition key and row key…

xxbbcc
- 16,930
- 5
- 50
- 83