Jun '24 • Technical
Fabric Spark SQL Query on Delta Version
Dear Members,
I am trying to get max version of a delta table using the following spark query:
%%sql
DESCRIBE HISTORY my_delta_table
select max(version)-1 as PreviousVersion from ( DESCRIBE HISTORY my_delta_table)
but the select one returned syntax error. Anyone can help? Thanks a lot.
0
2 comments
Mike Li
1
Fabric Spark SQL Query on Delta Version
Learn Microsoft Fabric
skool.com/microsoft-fabric
Helping passionate analysts, data engineers, data scientists (& more) to advance their careers on the Microsoft Fabric platform.
Leaderboard (30-day)
Powered by