SYSTEM$GET_DIRECTORY_TABLE_STATUS
functionsupportedData loading & unloadingReturns a list of records that contain the directory table consistency status for stages in your account. Consistency status indicates whether a directory table on a replicated stage has information about (is consistent with) all of the replicated files on the stage.
Syntax
supportedpartialnot supportednot scored
SYSTEM$GET_DIRECTORY_TABLE_STATUS( [ '<stage_name>' ] )
Parameters
| Name | Required | Description |
|---|---|---|
'stage_name' | optional | Stage for which you want to retrieve the directory table consistency status. When you specify a stage name, the function returns a list with a single record for the directory table on that stage. |
Returns
Returns a list of directory table consistency records for each stage in your account. The list contains a maximum of 10,000 records. If you specify a 'stage_name' argument, the function returns a list with a single record for the directory table on that stage. The records are in JSON format and contain the following name/value pairs: Where:
Usage notes
- To call this function, you must use a role that is granted or inherits the READ privilege on the stage(s) for which you want to retrieve consistency status.
- To update the consistency status from INCONSISTENT to CONSISTENT, perform a full refresh using the ALTER STAGE … REFRESH command.