[
https://issues.apache.org/jira/browse/IGNITE-23727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Iurii Gerzhedovich reassigned IGNITE-23727:
-------------------------------------------
Assignee: Iurii Gerzhedovich
> Sql. SqlRowHandler map returns rows with incorrect schema
> ---------------------------------------------------------
>
> Key: IGNITE-23727
> URL: https://issues.apache.org/jira/browse/IGNITE-23727
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Reporter: Maksim Zhuravkov
> Assignee: Iurii Gerzhedovich
> Priority: Major
> Labels: ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> SqlRowHandler map returns row that have incorrect schema:
> {code:java}
> @Test
> public void testMap2() {
> RowHandler<RowWrapper> handler = SqlRowHandler.INSTANCE;
> RowSchema rowSchema = RowSchema.builder()
> .addField(NativeTypes.INT32)
> .addField(NativeTypes.STRING)
> .build();
> RowWrapper row1 = handler.factory(rowSchema).rowBuilder()
> .addField(1).addField("2")
> .build();
> RowWrapper mapped = handler.map(row1, new int[]{1, 0});
> RowSchema flipped = RowSchema.builder()
> .addField(NativeTypes.STRING)
> .addField(NativeTypes.INT32)
> .build();
> assertEquals(flipped, mapped.rowSchema());
> }
> {code}
> The following test fails with assertion error that schemas do not match.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)