We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37ea6ab + 0b525ce commit a4ea274Copy full SHA for a4ea274
src/ShardingCore/Sharding/Enumerators/StreamMergeAsync/OrderStreamMergeAsyncEnumerator.cs
@@ -106,6 +106,10 @@ private List<IComparable> GetCurrentOrderValues()
106
{
107
list.Add((IComparable)value);
108
}
109
+ else if (value == null) // Support Nullable<xx>
110
+ {
111
+ list.Add(null);
112
+ }
113
else
114
115
throw new NotSupportedException($"order by value [{order}] must implements IComparable");
@@ -142,4 +146,4 @@ public ValueTask DisposeAsync()
142
146
#endif
143
147
144
148
145
-}
149
+}
0 commit comments