#community-help

Grouping by Optional Field in Documents

TLDR Adrian asked about the behavior of group-by on optional fields. Kishore Nallan confirmed that documents without the field would form individual groups.

Powered by Struct AI
+11
2
4mo
Solved
Join the chat
May 10, 2023 (4 months ago)
Adrian
Photo of md5-27ff63286c7b3dcb91085f39e910c437
Adrian
10:52 PM
Is it possible to group-by an optional field? If so what is the expected behavior for documents that don't have the field. Would they each be considered their own group?
May 11, 2023 (4 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
03:21 AM
Yes documents without a value will be on their own group.
+11