-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prototyping: Duckdb based metrics calculation (#2469)
* Reorder metrics queries * wip * more wip * test * Fixes * fix * tester * test * test * test * test * More fixes * test * test * test * test * more testing * fixes * add connectorx * big rewrite, try using trino as part of the export mechanism * add bokeh * test * Update dockerfile * Clean up some in progress work
- Loading branch information
Showing
14 changed files
with
1,109 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,6 @@ Dockerfile | |
|
||
# Github directory | ||
.github/scripts | ||
.git | ||
.git | ||
logs | ||
.mypy_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This folder contains both the data generator and the csv most recently generated | ||
from that data generator. This is so we can easily update tests as we need. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Sets up a dask cluster | ||
""" | ||
|
||
import typing as t | ||
from dask_kubernetes.operator import KubeCluster | ||
|
||
|
||
def start_duckdb_cluster( | ||
namespace: str, | ||
gcs_key_id: str, | ||
gcs_secret: str, | ||
duckdb_path: str, | ||
cluster_spec: t.Optional[dict] = None, | ||
): | ||
options: t.Dict[str, t.Any] = {"namespace": namespace} | ||
if cluster_spec: | ||
options["custom_cluster_spec"] = cluster_spec | ||
cluster = KubeCluster(**options) | ||
cluster.adapt(minimum=6, maximum=6) | ||
return cluster |
Oops, something went wrong.