utils#

Utility functions.

Functions#

cleanup()

Clean up the temporary table currently in use.

remove_all_temp_tables()

Remove all temporary tables created by Tumult Analytics.

get_java_11_config()

Set Spark configuration for Java 11+ users.

check_installation()

Check to see if you have installed Tumult Analytics correctly.

cleanup()#

Clean up the temporary table currently in use.

If you call spark.stop(), you should call this function first.

remove_all_temp_tables()#

Remove all temporary tables created by Tumult Analytics.

This will remove all temporary tables created by Tumult Analytics in the current Spark data warehouse, whether those tables were created by the current Tumult Analytics session or previous sessions.

get_java_11_config()#

Set Spark configuration for Java 11+ users.

check_installation()#

Check to see if you have installed Tumult Analytics correctly.

This function will:

  • create a new Spark session

  • create a Spark dataframe

  • create a Session from that dataframe

  • perform a query on that dataframe

If Tumult Analytics is correctly installed, this function should print a message and finish running within a few seconds.

If Tumult Analytics has not been correctly installed, this function will raise an error.