Using the ATTRIBUTE_TYPE function with PartiQL for DynamoDB - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Using the ATTRIBUTE_TYPE function with PartiQL for DynamoDB

Returns TRUE if the attribute at the specified path is of a particular data type.

Syntax

attribute_type( attributename, type )

Arguments

attributename

(Required) The attribute name to use.

type

(Required) The attribute type to check for. For a list of valid values, see DynamoDB attribute_type.

Return type

bool

Examples

SELECT * FROM "Music" WHERE attribute_type("Artist", 'S')