'Is there a way to get the CQL query generated by pyspark code

Is there a way to get the CQL code generated by pyspark script? I have noticed the explain the method and it does not give the CQL queries. Below code is something I was testing various modes with explain method.

groups = load_table(sql, "users")
groups = groups.select("id").where(groups.disabled == lit(0))
groups.explain(mode="simple")

Env info: spark-cassendra-connector: 3.0.1 , pyspark: 3.1.2



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source