snowflake.snowpark.Session.query_history¶
- Session.query_history(include_describe: bool = False, include_thread_id: bool = False) QueryHistory[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.23.0/src/snowflake/snowpark/session.py#L3473-L3492)¶
Create an instance of
QueryHistoryas a context manager to record queries that are pushed down to the Snowflake database.- Parameters:
include_describe – Include query notifications for describe queries
include_thread_id – Include thread id where queries are called