10-24-2022 11:41 AM
I need help or insight regarding the following errors. My instructors (Brooke Wenig with Conor Murphy) ran this code successfully on our course video, but I cannot replicate what she did.
Here is the code and below it is the outcome from my Coursera course, workspace section 4.5 notebook:
CREATE DATABASE IF NOT EXISTS Databricks;
USE Databricks;
DROP TABLE IF EXISTS fireCallsDelta;
CREATE TABLE fireCallsDelta
USING DELTA
PARTITIONED BY (City)
AS
SELECT * FROM fireCallsParquet
(3) Spark Jobs
Error in SQL statement: AnalysisException: Cannot create table ('`spark_catalog`.`databricks`.`fireCallsDelta`'). The associated location ('dbfs:/user/hive/warehouse/databricks.db/firecallsdelta') is not empty but it's not a Delta table
10-24-2022 09:56 PM
The `fireCallsDelta` table already exists, and it appears it was created as a PARQUET table. A couple of options:
10-24-2022 09:56 PM
The `fireCallsDelta` table already exists, and it appears it was created as a PARQUET table. A couple of options:
10-25-2022 06:53 AM
Thanks. Renaming table as you suggested allowed the query to run successfully.
10-25-2022 06:54 AM
Done. Thanks.
07-10-2023 10:44 AM
DELETE the original Parquet table as a separate statement
How can this be done? simple query "DROP TABLE .... " still failing with "cannot be found"
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now