Skip to content

Commit

Permalink
Merge branch 'm-kovalsky/issue259'
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Nov 11, 2024
2 parents e140e96 + 134204a commit 0889c82
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 202 deletions.
2 changes: 1 addition & 1 deletion src/sempy_labs/_helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def _get_max_run_id(lakehouse: str, table_name: str) -> int:
spark = SparkSession.builder.getOrCreate()
query = f"SELECT MAX(RunId) FROM {lakehouse}.{table_name}"
dfSpark = spark.sql(query)
max_run_id = dfSpark.collect()[0][0]
max_run_id = dfSpark.collect()[0][0] or 0

return max_run_id

Expand Down
Loading

0 comments on commit 0889c82

Please sign in to comment.