Skip to content

Commit 32bef98

Browse files
committed
Fix writeMillis access
write_result is a DataFrame and not a series. If it was sucessful, the result should always have a single row which we access.
1 parent eb15306 commit 32bef98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphdatascience/query_runner/session_query_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def run_write_back() -> DataFrame:
205205
except Exception as e:
206206
# catch the case nothing was needed to write-back (empty graph)
207207
# once we have the Arrow Endpoints V2, we could catch by first checking the jobs summary
208-
if "No entry with job id" in str(e) and gds_write_result.get("writeMillis", -1) == 0:
208+
if "No entry with job id" in str(e) and gds_write_result.iloc[0].get("writeMillis", -1) == 0:
209209
return gds_write_result
210210
raise e
211211

0 commit comments

Comments
 (0)