Bug: Distinct() does not work for complex types
See original GitHub issueThe same test case of DistinctBy
should pass without providing any key selector, I wanted to refactor the Distinct function some time ago using this trick:
return new List([...new Set(this._elements)])
Nevertheless, this does not work either, help would be much appreciated.
cc: @abbasmhd @IngoBleile
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
mysql DISTINCT() does not work as expected - Stack Overflow
DISTINCT should be used thus: SELECT DISTINCT a,b,c FROM t;. without a GROUP BY. It will find all the (a,b,c) in the table,...
Read more >84320: DISTINCT clause does not work in GROUP_CONCAT
Description: Distinct clause in GROUP_CONCAT fails to work when multiple unique trees are required. I see that multiple values are repeated ...
Read more >Adding Distinct to findAll Query is not working [DATAJPA-680]
With this error: Error creating bean with name 'activityRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.
Read more >The xml data type cannot be selected as DISTINCT because it ...
I m using SQL Server 2005. How should i reframe the query to select distinct rows from the table getting the 'data' column...
Read more >COUNT(), DISTINCT and NULLs - Snowflake Community
DISTINCT : Return Distinct number of records from the column or distinct combinations of column values if multiple columns are specified. The ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What about this comparison, would it be more performant?
cc: @fredrik-lundin @vendethiel
What about using deep-equal?