Which service(blob, file, queue, table) does this issue concern?
Table
Which version of the Azurite was used?
3.25.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
What's the Node.js version?
20.2.0
What problem was encountered?
Executing QueryAsync on TableClient doesn't return the expected entity when PartitionKey is set to an empty string.
This works with the previous Azurite version 3.24.0.
Using Nuget package Azure.Data.Tables in version 12.8.0
Steps to reproduce the issue?
The C# code below is inserting an entity with empty PartitionKey.
Getting the entity by PartitionKey and RowKey works but filtering with QueryAsync by a text property doesn't return any result.
using Azure;
using Azure.Data.Tables;
var tableClient = new TableClient(
connectionString: "UseDevelopmentStorage=true",
tableName: "Test");
await tableClient.CreateIfNotExistsAsync();
try
{
const string textValue = "Test value";
var entity = new Entity
{
PartitionKey = string.Empty,
RowKey = Guid.NewGuid().ToString(),
Text = textValue
};
await tableClient.AddEntityAsync(entity);
var gotEntity = await tableClient.GetEntityIfExistsAsync<Entity>(entity.PartitionKey, entity.RowKey);
Console.WriteLine($"Got entity: '{gotEntity.HasValue}'");
var foundEntities = await tableClient.QueryAsync<Entity>(x => x.Text == textValue).ToListAsync();
Console.WriteLine($"Found entity: '{foundEntities.Any()}'");
}
finally
{
await tableClient.DeleteAsync();
}
class Entity : ITableEntity
{
public string PartitionKey { get; set; } = string.Empty;
public string RowKey { get; set; } = string.Empty;
public string Text { get; set; } = string.Empty;
public DateTimeOffset? Timestamp { get; set; }
public ETag ETag { get; set; }
}
Which service(blob, file, queue, table) does this issue concern?
Table
Which version of the Azurite was used?
3.25.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
What's the Node.js version?
20.2.0
What problem was encountered?
Executing
QueryAsync
onTableClient
doesn't return the expected entity whenPartitionKey
is set to an empty string. This works with the previous Azurite version 3.24.0. Using Nuget packageAzure.Data.Tables
in version 12.8.0Steps to reproduce the issue?
The C# code below is inserting an entity with empty
PartitionKey
. Getting the entity byPartitionKey
andRowKey
works but filtering withQueryAsync
by a text property doesn't return any result.Referenced packages:
Have you found a mitigation/solution?
Using the previous Azurite version 3.24.0.