snowflake.snowpark.DataFrame.queries¶
- property DataFrame.queries: Dict[str, List[str]][source]¶
Returns a
dictthat contains a list of queries that will be executed to evaluate this DataFrame with the key queries, and a list of post-execution actions (e.g., queries to clean up temporary objects) with the key post_actions.queriescontains SQL statements in the DataFrame’s execution plan; a plan can contain more than one statement.post_actionscontains cleanup statements associated with that plan and can be empty. These lists aren’t result rows or a history of previously executed queries.Use
explain()for a printed query list and, when available, a database execution plan. UseSession.query_history()to record queries executed through a session. Generated SQL can change between library versions and configurations; don’t rely on exact SQL text.Example: