- 스키마:
PIPES 뷰¶
이 Account Usage 뷰는 계정에 정의된 각 파이프에 대한 행을 표시합니다.
열¶
열 이름 |
데이터 타입 |
설명 |
|---|---|---|
PIPE_ID |
NUMBER |
Internal or system-generated identifier for the pipe. |
PIPE_NAME |
VARCHAR |
The name of the pipe object. For manually created pipes, this is the name defined in the CREATE PIPE statement. For the Snowpipe Streaming high-performance default pipe, this is derived from the target table name; for example, |
PIPE_SCHEMA_ID |
NUMBER |
Internal or system-generated identifier for the schema that the pipe belongs to. For the default pipe, this corresponds to the target table’s schema ID. |
PIPE_SCHEMA |
VARCHAR |
파이프가 속한 스키마. For the default pipe, this corresponds to the target table’s schema. |
PIPE_CATALOG_ID |
NUMBER |
Internal or system-generated identifier for the database that the pipe belongs to. For the default pipe, this corresponds to the target table’s database ID. |
PIPE_CATALOG |
VARCHAR |
Name of the database that the pipe belongs to. For the default pipe, this corresponds to the target table’s database. |
IS_AUTOINGEST_ENABLED |
VARCHAR |
파이프에 대해 AUTO-INGEST가 활성화되었는지 여부입니다. 미래의 기능을 나타냅니다. |
NOTIFICATION_CHANNEL_NAME |
VARCHAR |
DEFINITION 열에 명명된 스테이지에 대한 Amazon SQS 큐의 Amazon 리소스 이름입니다. 미래의 기능을 나타냅니다. |
PIPE_OWNER |
VARCHAR |
파이프를 소유한 역할의 이름. Returns NULL for the default pipe. |
DEFINITION |
VARCHAR |
큐에 대기 중인 파일에서 Snowflake 테이블로 데이터를 로딩하는 데 사용되는 COPY 문입니다. |
CREATED |
TIMESTAMP_LTZ |
파이프 생성 시간. |
LAST_ALTERED |
TIMESTAMP_LTZ |
DML, DDL 또는 백그라운드 메타데이터 작업으로 오브젝트가 마지막으로 변경된 날짜 및 시간입니다. 사용법 노트 를 참조하십시오. |
COMMENT |
VARCHAR |
이 파이프에 대한 설명입니다. Returns the following message for the default pipe: “Default pipe for Snowpipe Streaming High Performance ingestion to a table. Created and managed by Snowflake.” |
PATTERN |
VARCHAR |
복사 옵션이 지정된 경우, 파이프 정의의 COPY INTO <테이블> 문의 PATTERN 복사 옵션 값입니다. |
DELETED |
TIMESTAMP_LTZ |
파이프가 삭제된 날짜 및 시간입니다. |
OWNER_ROLE_TYPE |
VARCHAR |
The type of role that owns the object; for example, ROLE. If a Snowflake Native App owns the object, the value is APPLICATION. Snowflake returns NULL if you delete the object because a deleted object doesn’t have an owner role. Returns NULL for the default pipe. |
사용법 노트¶
뷰의 지연 시간은 최대 180분(3시간)입니다.
뷰에는 세션의 현재 역할에 액세스 권한이 부여된 오브젝트만 표시됩니다.
뷰는 MANAGE GRANTS 권한을 인식하지 못하므로, MANAGE GRANTS 권한을 보유한 사용자가 실행한 SHOW 명령에 비해 정보가 적게 표시될 수 있습니다.
오브젝트에 대해 다음 작업이 수행되면 LAST_ALTERED 열이 업데이트됩니다.
DDL 작업.
DML 작업(테이블에만 해당). DML 문의 영향을 받는 행이 없어도 이 열은 업데이트됩니다.
Snowflake에서 수행되는 메타데이터에 대한 백그라운드 유지 관리 작업.
예¶
다음 예는 이 뷰를 PIPE_ID 열의 PIPE_USAGE_HISTORY 뷰 와 조인하여, 각각의 고유한 PIPE 오브젝트 관련 크레딧 사용량을 추적합니다.
select a.PIPE_CATALOG as PIPE_CATALOG,
a.PIPE_SCHEMA as PIPE_SCHEMA,
a.PIPE_NAME as PIPE_NAME,
b.CREDITS_USED as CREDITS_USED
from SNOWFLAKE.ACCOUNT_USAGE.PIPES a join SNOWFLAKE.ACCOUNT_USAGE.PIPE_USAGE_HISTORY b
on a.pipe_id = b.pipe_id
where b.START_TIME > date_trunc(month, current_date);