CreateTempViewUsing Logical Command¶
CreateTempViewUsing
is a LeafRunnableCommand that represents the following SQL statement at execution:
CREATE (OR REPLACE)? GLOBAL? TEMPORARY VIEW
tableIdentifier ('(' colTypeList ')')?
USING multipartIdentifier
(OPTIONS propertyList)?
Creating Instance¶
CreateTempViewUsing
takes the following to be created:
-
TableIdentifier
- User-Specified Schema
-
replace
flag -
global
flag - Provider Name
- Options
CreateTempViewUsing
is created when:
SparkSqlAstBuilder
is requested to parse CREATE TEMPORARY TABLE USING (deprecated) and CREATE TEMPORARY VIEW statements