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: - QueryListener- A context manager that listens to and records SQL queries that are pushed down to the Snowflake database. - Attributes - dataframe_queries- Returns a map of dataframe plan uuid to query ids. - 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.