snowflake.snowpark.QueryHistory¶
- class snowflake.snowpark.QueryHistory(session: Session, include_describe: bool = False, include_thread_id: bool = False, include_error: bool = False, include_dataframe_profiling: bool = False)[source]¶
Bases:
QueryListenerA context manager that listens to and records SQL queries that are pushed down to the Snowflake database.
Attributes
dataframe_queriesReturns a map of dataframe plan uuid to query ids.
include_describeWhen True, QueryRecords for describe queries are recorded by this listener.
include_errorWhen True, queries that have error during execution are recorded by this listener.
include_thread_idWhen True, thread id of the query are recorded by this listener.