Data types

The following table shows the data types supported by the PPL plugin and how each one maps to OpenSearch and SQL data types:

PPL TypeOpenSearch TypeSQL Type
booleanbooleanBOOLEAN
bytebyteTINYINT
byteshortSMALLINT
integerintegerINTEGER
longlongBIGINT
floatfloatREAL
floathalf_floatFLOAT
floatscaled_floatDOUBLE
doubledoubleDOUBLE
stringkeywordVARCHAR
texttextVARCHAR
timestampdateTIMESTAMP
ipipVARCHAR
timestampdateTIMESTAMP
binarybinaryVARBINARY
structobjectSTRUCT
arraynestedSTRUCT

In addition to this list, the PPL plugin also supports the datetime type, though it doesn’t have a corresponding mapping with OpenSearch. To use a function without a corresponding mapping, you must explicitly convert the data type to one that does.

The PPL plugin supports all SQL date and time types. To learn more, see SQL Data Types.