Spark临时表
-
Spark临时表tempView的注册/使用/注销/注意事项(推荐)
注册:spark.sql("CREATE OR REPLACE TEMPORARY VIEW tempView AS ..."),使用:spark.sql("SELECT * FROM tempView"),注销:spark.catalog.dropTempView("tempView"),注意事项:避免重复创建相同名称的临时表。
注册:spark.sql("CREATE OR REPLACE TEMPORARY VIEW tempView AS ..."),使用:spark.sql("SELECT * FROM tempView"),注销:spark.catalog.dropTempView("tempView"),注意事项:避免重复创建相同名称的临时表。