• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

georgia-tech-db / eva / #758

04 Sep 2023 08:37PM UTC coverage: 0.0% (-78.3%) from 78.333%
#758

push

circle-ci

hershd23
Increased underline length in at line 75 in text_summarization.rst
	modified:   docs/source/benchmarks/text_summarization.rst

0 of 11303 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/evadb/plan_nodes/exchange_plan.py
1
# coding=utf-8
2
# Copyright 2018-2023 EvaDB
3
#
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
# you may not use this file except in compliance with the License.
6
# You may obtain a copy of the License at
7
#
8
#     http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15

16
from typing import Any, Dict, List
×
17

18
from evadb.plan_nodes.abstract_plan import AbstractPlan
×
19
from evadb.plan_nodes.types import PlanOprType
×
20

21

22
class ExchangePlan(AbstractPlan):
×
23
    """
24
    This plan is used for storing information required for union operations.
25

26
    Arguments:
27
        all: Bool
28
            UNION (deduplication) vs UNION ALL (non-deduplication)
29
    """
30

31
    def __init__(
×
32
        self,
33
        inner_plan: AbstractPlan,
34
        parallelism: int = 1,
35
        ray_pull_env_conf_dict: Dict[str, Any] = {},
36
        ray_parallel_env_conf_dict: List[Dict[str, Any]] = [{}],
37
    ):
38
        self.inner_plan = inner_plan
×
39
        self.parallelism = parallelism
×
40
        # Environment variables to configure in the remote process. The problem of Ray remote function
41
        # is that we cannot control which GPU to spawn the job. Second, Ray does not offer anything
42
        # extra when specify GPU job. Just by giving environment variables like CUDA_VISIBLE_DEVICES,
43
        # our system can have more control over the behavior of Ray.
44
        self.ray_parallel_env_conf_dict = ray_parallel_env_conf_dict
×
45
        self.ray_pull_env_conf_dict = ray_pull_env_conf_dict
×
46
        super().__init__(PlanOprType.EXCHANGE)
×
47

48
    def __str__(self) -> str:
×
49
        return "ExchangePlan"
×
50

51
    def __hash__(self) -> int:
×
52
        return hash(
×
53
            (
54
                super().__hash__(),
55
                self.inner_plan,
56
                self.parallelism,
57
            )
58
        )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc