I am trying to create a HIVE table in Apache Spark using Databricks.
I am using the following code:
%sql
CREATE OR REPLACE VIEW testdatabase.testtable
AS
SELECT
*
FROM location '/mnt/mylocation'
But I'm getting the following error:
Error in SQL statement: ParseException:
extraneous input ''/mnt/mylocation'' expecting {<EOF>, ';'}(line 7, pos 14)
== SQL ==
CREATE OR REPLACE VIEW testdatabase.testtable
AS
SELECT
*
FROM location '/mnt/mylocation'
Can someone let me know where I'm going wrong?