VALIDATE_PIPE_LOAD

functionsupportedData loading & unloading

docs.snowflake.com ↗

Information SchemaTable functions

This table function can be used to validate data files processed by Snowpipe within a specified time range. The function returns details about any errors encountered during an attempted data load into Snowflake tables. Note This function returns errors only for files in the pipe’s load history, which covers the last 14 days. For a time range before the last 14 days, the function returns no results. Recreating a pipe removes its load history, so the function also returns no results for files that the pipe processed before you recreated it.

Syntax

supportedpartialnot supportednot scored

VALIDATE_PIPE_LOAD(
      PIPE_NAME => '<string>'
       , START_TIME => <constant_expr>
      [, END_TIME => <constant_expr> ] )

Parameters

NameRequiredDescription
PIPE_NAME => stringrequiredA string specifying a pipe. The function returns results for the specified pipe only.
START_TIME => constant_exprrequiredTimestamp (in TIMESTAMP_LTZ format), within the last 14 days, marking the start of the time range for retrieving error events.
END_TIME => constant_exproptionalTimestamp (in TIMESTAMP_LTZ format), within the last 14 days, marking the end of the time range for retrieving error events.

Usage notes

Output

The function returns the following columns: Column Name | Data Type | Description ERROR | TEXT | Error in the source file. The function returns a row for each error in the file. FILE | TEXT | Name of the source file where the error was encountered. LINE | NUMBER | Number of the line in the source file where the error was encountered. CHARACTER | NUMBER | Position of the character where the error was encountered. BYTE_OFFSET | NUMBER | Byte offset to the character where the error was encountered. CATEGORY | TEXT | Category of the operation when the error was produced. CODE | NUMBER | ID for the error message displayed in the ERROR column. SQL_STATE | NUMBER | SQL state code. COLUMN_NAME | TEXT | Name and order of the column that contained the error. ROW_NUMBER | NUMBER | Number of the row in the source file where the error was encountered. ROW_START_LINE | NUMBER | Number of the first line of the row where the error was encountered. REJECTED_RECORD | TEXT | Record that contained the error.