-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
89 additions
and
102 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
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
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 |
---|---|---|
@@ -1,40 +1,4 @@ | ||
from linetimer import CodeTimer | ||
|
||
# TODO: works for now, but need dynamic imports for this. | ||
from queries.pyspark import ( # noqa: F401 | ||
q1, | ||
q2, | ||
q3, | ||
q4, | ||
q5, | ||
q6, | ||
q7, | ||
q8, | ||
q9, | ||
q10, | ||
q11, | ||
q12, | ||
q13, | ||
q14, | ||
q15, | ||
q16, | ||
q17, | ||
q18, | ||
q19, | ||
q20, | ||
q21, | ||
q22, | ||
) | ||
from queries.common_utils import execute_all | ||
|
||
if __name__ == "__main__": | ||
num_queries = 22 | ||
|
||
with CodeTimer(name="Overall execution of ALL spark queries", unit="s"): | ||
for query_number in range(1, num_queries + 1): | ||
submodule = f"q{query_number}" | ||
try: | ||
eval(f"{submodule}.q()") | ||
except Exception as exc: | ||
print( | ||
f"Exception occurred while executing PySpark query {query_number}:\n{exc}" | ||
) | ||
execute_all("pyspark") |
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
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