classifier function

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 19.0 and above

Important

This feature is in Beta. Workspace admins can control access to this feature from the Previews page. See Manage Azure Databricks previews.

Returns the name of the pattern variable that the current row matched. Use classifier() in ALL ROWS PER MATCH output to label each row with its role in the pattern. Use this function only in the MEASURES and DEFINE clauses of MATCH_RECOGNIZE.

Syntax

classifier()

Arguments

This function takes no arguments.

Returns

A STRING.

Common error conditions