Skip to content

Commit

Permalink
[QPROF] Small Enhancements (#1289)
Browse files Browse the repository at this point in the history
- Correcting some possible issues.
  • Loading branch information
oualib authored Sep 26, 2024
1 parent 1a503f0 commit 0179c63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verticapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
__url__: str = "https://github.com/vertica/verticapy/"
__license__: str = "Apache License, Version 2.0"
__version__: str = "1.0.5"
__iteration__: int = 3
__date__: str = "26092024"
__last_commit__: str = "8ca3c10cc479cb3da4ff3eb1bbe3a22627f5638a"
__iteration__: int = 1
__date__: str = "27092024"
__last_commit__: str = "7a6490bfc614d3268b34096663758dca407ea889"
__long_version__: str = f"{__version__}-{__iteration__}{__date__}-{__last_commit__}"
__codecov__: float = 0.84

Expand Down
2 changes: 2 additions & 0 deletions verticapy/performance/vertica/qprof.py
Original file line number Diff line number Diff line change
Expand Up @@ -2498,6 +2498,8 @@ def get_qduration(
For more details, please look at
:py:class:`~verticapy.performance.vertica.qprof.QueryProfiler`.
"""
if isinstance(self.qduration, NoneType):
return None
return float(self.qduration / self._get_interval(unit))

# Step 3: Query execution steps
Expand Down
2 changes: 2 additions & 0 deletions verticapy/performance/vertica/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ def _set_style(self, d: dict) -> None:
d["threshold_metric2"] = None
if "op_filter" not in d:
d["op_filter"] = None
elif isinstance(d["op_filter"], str):
d["op_filter"] = [d["op_filter"]]
if "tooltip_filter" not in d:
d["tooltip_filter"] = None
if "display_path_transition" not in d:
Expand Down

0 comments on commit 0179c63

Please sign in to comment.