This page explains how to use the isstring function in APL.
isstring
function to determine whether a value is of type string. This function is especially helpful when working with heterogeneous datasets where field types are not guaranteed, or when ingesting data from sources with loosely structured or mixed schemas.
You can use isstring
to:
Splunk SPL users
isstring
. Instead, you often rely on function compatibility and casting behavior. In APL, isstring
provides an explicit and reliable way to check if a value is a string before further processing.ANSI SQL users
IS STRING
function. Instead, type checks usually rely on schema constraints, manual casting, or vendor-specific solutions. In contrast, APL offers isstring
as a first-class function that returns a boolean indicating whether a value is of type string.Name | Type | Description |
---|---|---|
value | any | The value to test for string type. |
bool
value that is true
if the input value is of type string, false
otherwise.
isstring
to filter rows where the HTTP status code is a valid string.
Query
_time | status | is_string |
---|---|---|
2025-06-05T12:10:00Z | ”404” | true |
status
field is stored as a string, which can help filter out ingestion issues or schema inconsistencies.