Forum Discussion

smpa01's avatar
smpa01
Icon for Community Champion rankCommunity Champion
2 years ago
Solved

Notebook fails after save as copy

I have a NB that is attached to a lakehouse and I am executing the following which works fine   %%pyspark from delta.tables import * tbl_name = "fact_sales" tbl_path = "Tables/"+tbl_name delt...
  • smpa01's avatar
    2 years ago

    This worked

     

    tbl_name = "fact_sales"
    tbl_name_path = "Tables/"+tbl_name
    
    #delta_table = DeltaTable.forPath(spark, tbl_name_path)
    delta_table = DeltaTable.forName(spark, tbl_name)