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