Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Potpot
Frequent Visitor

Unable to rename Lakehouse Table

Using the UI renaming a LakeHouse table doesn't update the table name. No change is made.

2 REPLIES 2
Heaven
Frequent Visitor

HOW CAN WE CHANGE THE COLUMN HERE??

GilbertQ
Super User
Super User

Hi @Potpot 

 

As far as I am aware, you would likely need to use a Python notebook to rename the table.

 

Here is the same code below where I am renaming my table from "fact_daily_f2" to "fact_daily"

# Welcome to your new notebook
# Type here in the cell editor to add code!
from pyspark.sql import SparkSession

# Create a Spark session
spark = SparkSession.builder \
    .appName("RenameDeltaTable") \
    .config("spark.databricks.delta.retentionDurationCheck.enabled", "false") \
    .getOrCreate()

# Rename Delta table
spark.sql("ALTER TABLE fact_daily_f2 RENAME TO fact_daily")

# Stop the Spark session
spark.stop()

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.