Skip to content

Commit

Permalink
Finalising v1.0.5 (#1259)
Browse files Browse the repository at this point in the history
* Finalising v1.0.5

 - versioning

TODO:
@mail4umar please update the whatsnew doc page and any missing element.

* Added check buttons for tool tip fo QueryProfilerInterface tree

* Update whats_new_v1_0_5.rst

---------

Co-authored-by: Umar Farooq Ghumman <[email protected]>
  • Loading branch information
oualib and mail4umar authored Aug 8, 2024
1 parent 4f8faf4 commit ab0ab18
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
10 changes: 9 additions & 1 deletion docs/source/whats_new_v1_0_5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,20 @@ It is also inherited by the QueryProfilerInterface class, so it can be used from
qprof.main_tests()
QueryProfiler
-----------------------
--------------

- Added the following new tables to the profile information:

- dc_scan_events

QueryProfilerInterface
-----------------------

- Added option to toggle tooltip information. There are three new check boxes which control which information will be displayed:

- Aggregate
- Opeartors
- Descriptors

Unit tests
-----------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setuptools.setup(
name="verticapy",
version="1.0.4",
version="1.0.5",
author="Badr Ouali",
author_email="[email protected]",
url="https://github.com/vertica/VerticaPy",
Expand Down
6 changes: 3 additions & 3 deletions verticapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
__license__: str = "Apache License, Version 2.0"
__version__: str = "1.0.5"
__iteration__: int = 1
__date__: str = "08072024"
__last_commit__: str = "c99f5b0ff9b9781587dd0687dbb743dec79f02f2"
__date__: str = "08082024"
__last_commit__: str = "b91db5bc8c4d9b080883ad3f859e1fc21d78d524"
__long_version__: str = f"{__version__}-{__iteration__}{__date__}-{__last_commit__}"
__codecov__: float = 0.8316
__codecov__: float = 0.84

from verticapy._config.config import get_option, set_option
from verticapy._utils._sql._vertica_version import vertica_version
Expand Down
43 changes: 42 additions & 1 deletion verticapy/performance/vertica/qprof_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,36 @@ def get_qplan_tree(self, use_javascript=True, **style_kwargs):
value="Produced row count",
layout={"width": "260px"},
)
tags = widgets.VBox([dropdown1, dropdown2])
tooltip_aggregated_widget = widgets.Checkbox(
value=True,
# layout={"width": "260px"},
description="Aggregate",
disabled=False,
)
tooltip_operator_widget = widgets.Checkbox(
value=False,
# layout={"width": "260px"},
description="Operator",
disabled=False,
)
tooltip_descriptor_widget = widgets.Checkbox(
value=False,
# layout={"width": "260px"},
description="Descriptor",
disabled=False,
)
tooltip_header_widget = widgets.HTML("<b>Select tooltip info:</b>")
tooltip_complete_widget = widgets.VBox(
[
tooltip_aggregated_widget,
tooltip_operator_widget,
tooltip_descriptor_widget,
],
# layout={"width": "260px"},
)
tags = widgets.VBox(
[dropdown1, dropdown2, tooltip_header_widget, tooltip_complete_widget]
)
temp_rel_widget = widgets.ToggleButtons(
options=["Temporary Relations", "Combined"],
disabled=False,
Expand Down Expand Up @@ -250,6 +279,9 @@ def get_qplan_tree(self, use_javascript=True, **style_kwargs):
"index": self.query_select_dropdown,
"metric1": tags.children[0],
"metric2": tags.children[1],
"display_tooltip_agg_metrics": tags.children[3].children[0],
"display_tooltip_op_metrics": tags.children[3].children[1],
"display_tooltip_descriptors": tags.children[3].children[2],
"path_id": self.pathid_dropdown.get_child(),
"apply_tree_clicked": self.apply_tree,
"temp_display": temp_rel_widget,
Expand All @@ -273,6 +305,9 @@ def update_qplan_tree(
self,
metric1,
metric2,
display_tooltip_agg_metrics,
display_tooltip_op_metrics,
display_tooltip_descriptors,
index,
path_id,
apply_tree_clicked,
Expand Down Expand Up @@ -302,6 +337,9 @@ def update_qplan_tree(
if projection_display == "Default"
else True,
return_html=False,
display_tooltip_agg_metrics=display_tooltip_agg_metrics,
display_tooltip_op_metrics=display_tooltip_op_metrics,
display_tooltip_descriptors=display_tooltip_descriptors,
**self.style_kwargs,
) # type: ignore
html_widget = widgets.HTML(value=graph.pipe(format="svg").decode("utf-8"))
Expand All @@ -320,6 +358,9 @@ def update_qplan_tree(
if projection_display == "Default"
else True,
return_html=False,
display_tooltip_agg_metrics=display_tooltip_agg_metrics,
display_tooltip_op_metrics=display_tooltip_op_metrics,
display_tooltip_descriptors=display_tooltip_descriptors,
**self.style_kwargs,
)
output = read_package_file("html/index.html")
Expand Down

0 comments on commit ab0ab18

Please sign in to comment.