cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

df.queryExecution.redactedSql is not working with Spark sql Listener

Soma
Valued Contributor

We are trying to capture the query executed by spark .

We are trying to use 

df.queryExecution.redactedSql to get the SQL from query execution but it is not working 
in sqlListener
1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Soma, In PySpark, when you execute a query and want to capture the SQL from the query execution, you can use the explain() method. 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group