Maksim Zhuravkov created IGNITE-23727:
-----------------------------------------
Summary: 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
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)