- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ryanfarley8189
New Member
02-25-2016
11:00 AM
I'm looking through some old searches and came across this line. From all the documentation I've found, coalesce returns the first non-null field. In this case, what is the '0' representing? If randomField is null, does it just return a char 0?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
martin_mueller

SplunkTrust
02-25-2016
11:22 AM
Null is the absence of a value, 0 is the number zero. coalesce(field, 0)
returns the value of the field, or the number zero if the field is not set.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
martin_mueller

SplunkTrust
02-25-2016
11:22 AM
Null is the absence of a value, 0 is the number zero. coalesce(field, 0)
returns the value of the field, or the number zero if the field is not set.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ryanfarley8189
New Member
02-25-2016
11:26 AM
Great. Thanks!
