Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Using the UI renaming a LakeHouse table doesn't update the table name. No change is made.
HOW CAN WE CHANGE THE COLUMN HERE??
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()
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
37 | |
25 | |
21 | |
10 | |
9 |