utils#

Utility functions for Analytics.

Functions#

cleanup()

Cleanup the temporary table currently in use.

remove_all_temp_tables()

Remove all temporary tables created by Analytics.

get_java_11_config()

Set Spark configuration for Java 11+ users.

check_installation()

Check to see if you have installed Analytics correctly.

cleanup()#

Cleanup 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 Analytics.

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

get_java_11_config()#

Set Spark configuration for Java 11+ users.

check_installation()#

Check to see if you have installed 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 Analytics is correctly installed, this function should print a message and finish running within a few seconds.

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