I trying to execute these spark statements but it is not working
spark.sql("CREATE OR REPLACE GLOBAL TEMPORARY VIEW VIEW_1
AS SELECT * from orc.`/apps/hive/warehouse/userdb.db/rib_ies_liensserveurs`")
spark.sql("CREATE OR REPLACE GLOBAL TEMPORARY VIEW VIEW_2 AS SELECT * from VIEW_1")
spark.sql("SELECT * from VIEW_2").show()
This fails with the following error -
Table or view not found: VIEW_1