This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-27278
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/ignite-27278 by this push:
     new 0eed38ca632 AOT tests wip: TestAllColumnTypesWithMapper
0eed38ca632 is described below

commit 0eed38ca632a7f4c99a3349c70ff03578e0f9d3e
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Wed Dec 24 16:17:18 2025 +0200

    AOT tests wip: TestAllColumnTypesWithMapper
---
 .../dotnet/Apache.Ignite.Tests.Aot/Sql/SqlTests.cs  | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Sql/SqlTests.cs 
b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Sql/SqlTests.cs
index 5bda2ea72be..78909a099de 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Sql/SqlTests.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Sql/SqlTests.cs
@@ -84,6 +84,27 @@ public class SqlTests(IIgniteClient client)
         Assert.AreEqual(poco.Blob, row["BLOB"]!);
     }
 
+    [UsedImplicitly]
+    public async Task TestAllColumnTypesWithMapper()
+    {
+        var table = await 
client.Tables.GetTableAsync(TestTables.TableAllColumnsSqlName);
+        var view = table!.GetRecordView(new PocoAllColumnsSqlMapper());
+        var poco = GetPoco();
+        await view.UpsertAsync(null, poco);
+
+        await using IResultSet<PocoAllColumnsSql> resultSet = await 
client.Sql.ExecuteAsync(
+            transaction: null,
+            mapper: new PocoAllColumnsSqlMapper(),
+            statement: $"select * from {table.Name} where KEY = ?",
+            CancellationToken.None,
+            poco.Key);
+
+        List<PocoAllColumnsSql> rows = await resultSet.ToListAsync();
+        PocoAllColumnsSql row = rows.Single();
+
+        Assert.AreEqual(poco, row);
+    }
+
     [UsedImplicitly]
     public async Task TestExecuteReaderAsync()
     {

Reply via email to