'Databricks error while creating a permanent table: IllegalArgumentException: Path must be absolute: circuits

I am trying to create a permanent table in Databricks (dbfs) by importing a csv file. I am able to create the temporary table but when I try to create the permanent table, I get get this error:

IllegalArgumentException: Path must be absolute: circuits

here's the code snippet I am using:

df.write.format("parquet").saveAsTable("circuits")
  • df -> dataframe
  • circuits -> name I want to give to the table

the db I want this table to live in is "default" and I have tried default.circuits as well but that gives the same error.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source