Skip to content

Commit

Permalink
Bugfix: QpeurProfiler Import - Exception for when missing values in t…
Browse files Browse the repository at this point in the history
…ables. (#1340)

Previously, if there was any empty table in the tar file, it would break the code. Now, it will try to create the table and print a warning if there was an issue.
  • Loading branch information
mail4umar authored Dec 3, 2024
1 parent 046cf93 commit 69953c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion verticapy/performance/vertica/collection/profile_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,9 @@ def _load_vdataframes(self, unpack_dir: Path, version: BundleVersion) -> None:
pd_dataframe["running_time"] = pd.to_timedelta(
pd_dataframe["running_time"], unit="s"
)
ctable.copy_from_pandas_dataframe(pd_dataframe)
try:
ctable.copy_from_pandas_dataframe(pd_dataframe)
except Exception as e:
warning_message = f"Error loading the table {ctable.name}:"
print_message(warning_message + str(e), "warning")
self.logger.warning(warning_message + str(e))

0 comments on commit 69953c8

Please sign in to comment.