Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: disable reuse tests #884

Merged
merged 40 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a4c4022
[RELEASE]: 0.2.13
jarulraj Jun 17, 2023
5f2d1a4
[BUMP]: v0.2.14+dev
jarulraj Jun 17, 2023
5d7ea3b
updates
jarulraj Jun 17, 2023
69415e3
updates
jarulraj Jun 17, 2023
1932d27
updates
jarulraj Jun 17, 2023
5ecc2ed
updates
jarulraj Jun 17, 2023
0304828
updates
jarulraj Jun 17, 2023
4e86839
updates
jarulraj Jun 17, 2023
ddcac89
updates
jarulraj Jun 17, 2023
0a1e499
update
jarulraj Jun 17, 2023
f0d4af2
update
jarulraj Jun 18, 2023
c16c184
updates
jarulraj Jun 18, 2023
05aa304
updates
jarulraj Jun 18, 2023
560163a
updates
jarulraj Jun 18, 2023
22799e2
updates
jarulraj Jun 18, 2023
68c24bf
updates
jarulraj Jun 18, 2023
c5d2de9
updates
jarulraj Jun 18, 2023
f1285b7
updates
jarulraj Jun 18, 2023
b2a002d
updates
jarulraj Jun 18, 2023
aa92e41
updates
jarulraj Jun 18, 2023
0dec249
updates
jarulraj Jun 18, 2023
0fdacf0
Merge branch 'master' into fix_notebooks2
jarulraj Jun 18, 2023
220df10
updates
jarulraj Jun 18, 2023
902d372
updates
jarulraj Jun 18, 2023
4e5930a
updates
jarulraj Jun 19, 2023
d386a99
updates
jarulraj Jun 19, 2023
a7fea81
updates
jarulraj Jun 19, 2023
e94fe62
updates
jarulraj Jun 19, 2023
b76d156
updates
jarulraj Jun 19, 2023
3bdfb00
fix ray imports in ray_utils
gaurav274 Jun 19, 2023
04da192
fix ray issues
gaurav274 Jun 21, 2023
17c6bec
Merge branch 'master' into fix_notebooks2
jarulraj Jun 22, 2023
b35eb3c
updates
jarulraj Jun 22, 2023
4d3c355
Merge branch 'fix_notebooks2' into reuse_disable
jarulraj Jun 22, 2023
d4d1dfa
updates
jarulraj Jun 22, 2023
0022020
updates
jarulraj Jun 22, 2023
3fdf5e3
updates
jarulraj Jun 22, 2023
c2227f7
updates
jarulraj Jun 22, 2023
3097b16
updates
jarulraj Jun 22, 2023
ce0bd9d
updates
jarulraj Jun 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ a:visited {
color: var(--orange);
}

article table.align-default {
display: inherit;
}

/* --------- TOC sidebar --------- */

div.sidebar-tree .toctree-l1>.reference {
Expand Down
5 changes: 0 additions & 5 deletions evadb/executor/create_udf_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ def __init__(self, db: EvaDBDatabase, node: CreateUDFPlan):
Path(self.config.get_value("core", "evadb_installation_dir")) / "udfs"
)

# https://stackoverflow.com/a/76322515
import os

os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"

def handle_huggingface_udf(self):
"""Handle HuggingFace UDFs

Expand Down
5 changes: 0 additions & 5 deletions evadb/udfs/ocr_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
class OCRExtractor(AbstractUDF, GPUCompatible):
@setup(cacheable=False, udf_type="FeatureExtraction", batchable=False)
def setup(self):
# https://stackoverflow.com/a/76322515
import os

os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"

try_to_import_torch()
try_to_import_torchvision()
try_to_import_transformers()
Expand Down
8 changes: 7 additions & 1 deletion test/integration_tests/test_reuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
import unittest
from pathlib import Path
from test.markers import duplicate_skip_marker, windows_skip_marker
from test.markers import duplicate_skip_marker, linux_skip_marker, windows_skip_marker
from test.util import (
get_evadb_for_testing,
get_logical_query_plan,
Expand Down Expand Up @@ -113,6 +113,7 @@ def test_reuse_partial(self):
batches, exec_times = self._reuse_experiment([select_query1, select_query2])
self._verify_reuse_correctness(select_query2, batches[1])

@linux_skip_marker
def test_reuse_in_with_multiple_occurrences(self):
select_query1 = """SELECT id, label FROM DETRAC JOIN
LATERAL HFObjectDetector(data) AS Obj(score, label, bbox) WHERE id < 10;"""
Expand All @@ -137,6 +138,7 @@ def test_reuse_in_with_multiple_occurrences(self):
reuse_batch = execute_query_fetch_all(self.evadb, select_query)
self._verify_reuse_correctness(select_query, reuse_batch)

@linux_skip_marker
def test_reuse_logical_project_with_duplicate_query(self):
project_query = (
"""SELECT id, HFObjectDetector(data).label FROM DETRAC WHERE id < 10;"""
Expand All @@ -146,6 +148,7 @@ def test_reuse_logical_project_with_duplicate_query(self):
# reuse should be faster than no reuse
self.assertGreater(exec_times[0], exec_times[1])

@linux_skip_marker
def test_reuse_with_udf_in_predicate(self):
select_query = """SELECT id FROM DETRAC WHERE ['car'] <@ HFObjectDetector(data).label AND id < 4"""

Expand All @@ -154,6 +157,7 @@ def test_reuse_with_udf_in_predicate(self):
# reuse should be faster than no reuse
self.assertGreater(exec_times[0], exec_times[1])

@linux_skip_marker
def test_reuse_across_different_predicate_using_same_udf(self):
query1 = """SELECT id FROM DETRAC WHERE ['car'] <@ HFObjectDetector(data).label AND id < 15"""

Expand All @@ -164,6 +168,7 @@ def test_reuse_across_different_predicate_using_same_udf(self):
# reuse should be faster than no reuse
self.assertGreater(exec_times[0], exec_times[1])

@linux_skip_marker
def test_reuse_filter_with_project(self):
project_query = """
SELECT id, Yolo(data).labels FROM DETRAC WHERE id < 5;"""
Expand All @@ -175,6 +180,7 @@ def test_reuse_filter_with_project(self):
# reuse should be faster than no reuse
self.assertGreater(exec_times[0], exec_times[1])

@linux_skip_marker
def test_reuse_in_extract_object(self):
select_query = """
SELECT id, T.iids, T.bboxes, T.scores, T.labels
Expand Down
File renamed without changes.