Menu
CREATEGLOBALTEMPVIEW() – CREATE DATABASE dbName; GO

CREATEGLOBALTEMPVIEW() – CREATE DATABASE dbName; GO

This method creates a temporary view, which has a lifetime of the Spark application. If a view with the same name already exists, then an exception is thrown. df.createGlobalTempView(‘Brainwaves’)df2 = spark.sql(‘SELECT Session.POWReading.AF3[0].THETA FROM Brainwaves’) Notice that the argument following FROM is the name of the view created in the previous line of code. CREATEORREPLACEGLOBALTEMPVIEW() This […]