Reuse Your Queries
You can export a query to a Spark SQL link to then use it from your analytics processors code. You can also use the exported query as a basis for more complex queries.
The Spark SQL link with your query is created. To view and edit your link, select links from the main menu and then select the link that uses the name you specified above.
You can use the exported query as a basis for a more complex query. To do this, edit the SQL link you just created and edit the Spark SQL query it contains.