Pavel Pereslegin created IGNITE-27537:
-----------------------------------------
Summary: Sql. Support equals/hashCode in public SqlRow
Key: IGNITE-27537
URL: https://issues.apache.org/jira/browse/IGNITE-27537
Project: Ignite
Issue Type: Improvement
Components: sql ai3
Reporter: Pavel Pereslegin
Currently public {{SqlRow}} class doesn't implement equals/hashCode.
All other public {{Tuple}} implementations implement the
{{equals}}/{{hashCode}} methods and allow each tuple to be compared to another.
Additionally, such tuples can be used to be added to a Map and passed to
methods like putAll (table views), so without equals/hashCode support,
unexpected behavior is possible.
Reproducer:
{code}
SqlRow row1 = igniteSql().execute(null, "SELECT 1").next();
SqlRow row2 = igniteSql().execute(null, "SELECT 1").next();
assertThat(row1, equalTo(row2)); // fails
{code}
p.s. please unmute disabled tests related to this issue
--
This message was sent by Atlassian Jira
(v8.20.10#820010)