Reputation: 29
I am working on modifying the Apache Spark source code to capture SQL queries executed using spark.sql()
at runtime, modify them (if needed), and then execute the modified SQL.
Requirements:
spark.sql()
as usual, and the system should automatically handle query capturing and modification.I tried modifying several listener classes, but they mostly display logical/physical plans instead of raw SQL. Files I Have Modified (But Not Working as Expected)
SparkFirehoseListener.java
SQLListener.scala
QueryExecutionListener.scala
These files mostly log query plans rather than capturing the raw SQL at runtime.
Upvotes: 2
Views: 43
Reputation: 5135
It seems to me that you might need to extend this Abstract Scala class
Upvotes: 0