Databricks experts,
I'm new to Databricks, and encounter an issue with the ANALYZE TABLE command in the Notebook.
I created two tables nyc_taxi and nyc_taxi2, from one csv file.
When executing the following command in Notebook,
analyze table nyc_taxi2 compute statistics for columns passenger_count;
A FileAlreadyExistsException error was raised, [FileAlreadyExistsException: Operation failed: "The specified path, or an element of the path, exists and its resource type is invalid for this operation.", 409, GET,......, PathConflict, "The specified path, or an element of the path, exists and its resource type is invalid for this operation.]
However, the same command for the nyc_taxi table worked well, with no error raised. I also tried the SQL Editor, it worked fine with the code. Only having issues with running the command in Notebook. I'm very confused as to why this happened.
The only difference between nyc_taxi and nyc_taxi2 is that I created nyc_taxi using the UI, and created the nyc_taxi2 using the Databricks SQL commands, given below.
CREATE TABLE nyc_taxi2
(vendor_id String,
pickup_datetime timestamp,
dropoff_datetime timestamp,
passenger_count int,
trip_distance double,
pickup_longitude double,
pickup_latitude double,
rate_code int,
store_and_fwd_flag string,
dropoff_longitude double,
dropoff_latitude double,
payment_type string,
fare_amount double,
surcharge double,
mta_tax double,
tip_amount double,
tolls_amount double,
total_amount double)
USING CSV
OPTIONS("path"="/users/myfolder/nyc_taxi.csv","header" = "true");
Can anyone direct what could be the reason for this problem?
Thanks for the help!