You are viewing documentation about an older version (1.30.0). View latest version

snowflake.snowpark.QueryHistory

class snowflake.snowpark.QueryHistory(session: Session, include_describe: bool = False, include_thread_id: bool = False, include_error: bool = False)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/query_history.py#L43-L89)

Bases: QueryListener

A context manager that listens to and records SQL queries that are pushed down to the Snowflake database.

Attributes

include_describe

When True, QueryRecords for describe queries are recorded by this listener.

include_error

When True, queries that have error during execution are recorded by this listener.

include_thread_id

When True, thread id of the query are recorded by this listener.

queries

Language: English