# Bug: GroupBy on SetCells uses wrong equality check

**URL:** <https://forum.knime.com/t/bug-groupby-on-setcells-uses-wrong-equality-check/7042>\
**Category:** KNIME Analytics Platform\
**Created:** [November 28, 2014, 3:34pm UTC](https://forum.knime.com/t/bug-groupby-on-setcells-uses-wrong-equality-check/7042 "2014-11-28T15:34:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marlin](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@Marlin](https://forum.knime.com/u/Marlin)\
**Post date:** [November 28, 2014, 3:34pm UTC](https://forum.knime.com/t/bug-groupby-on-setcells-uses-wrong-equality-check/7042/1 "2014-11-28T15:34:57Z")

</div>

Well, the title says it all. Columns of type Set are handled correctly in aggregations (namely 'Count' vs. 'Unique Count'), but when used as grouping columns, sets with the same content may be considered to be different.

---

<div class="post-metadata">

**Author:** ![Marlin](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@Marlin](https://forum.knime.com/u/Marlin)\
**Post date:** [November 28, 2014, 3:47pm UTC](https://forum.knime.com/t/bug-groupby-on-setcells-uses-wrong-equality-check/7042/2 "2014-11-28T15:47:28Z")

</div>

Attached: Minimal example to demonstrate

- [groupbyset.zip](https://www.knime.com/sites/default/files/groupbyset.zip)

---

<div class="post-metadata">

**Author:** ![tobias.koetter](https://forum-cdn.knime.com/user_avatar/forum.knime.com/tobias.koetter/32/56844_2.png) [@tobias.koetter](https://forum.knime.com/u/tobias.koetter)\
**Post date:** [December 12, 2014, 4:57pm UTC](https://forum.knime.com/t/bug-groupby-on-setcells-uses-wrong-equality-check/7042/3 "2014-12-12T16:57:14Z")

</div>

Hello Marlin,

thanks for reporting the bug. I can confirm that the groupby node has a probem with set cells if the elements of euqal sets appear in a different order. We will have a look into the issue and fix it as soon as possible.

Bye,

Tobias

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:24pm UTC](https://forum.knime.com/t/bug-groupby-on-setcells-uses-wrong-equality-check/7042/4 "2023-06-23T20:24:10Z")

</div>


