• 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/create_from_select_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
from typing import List
×
16

17
from evadb.parser.create_statement import ColumnDefinition
×
18
from evadb.parser.table_ref import TableInfo
×
19
from evadb.plan_nodes.abstract_plan import AbstractPlan
×
20
from evadb.plan_nodes.types import PlanOprType
×
21

22

23
class CreateFromSelectPlan(AbstractPlan):
×
24
    """
25
    This plan is used for storing information required for creating
26
    a table from select query.
27
    Arguments:
28
        table_info {TableInfo} -- table info for view to be created in storage
29
        col_list{List[ColumnDefinition]} -- column names in the view
30
        if_not_exists {bool} -- Whether to override if there is existing view
31
    """
32

33
    def __init__(
×
34
        self,
35
        table_info: TableInfo,
36
        column_list: List[ColumnDefinition],
37
        if_not_exists: bool = False,
38
    ):
39
        super().__init__(PlanOprType.CREATE)
×
40
        self._table_info = table_info
×
41
        self._column_list = column_list
×
42
        self._if_not_exists = if_not_exists
×
43

44
    @property
×
45
    def table_info(self):
×
46
        return self._table_info
×
47

48
    @property
×
49
    def if_not_exists(self):
×
50
        return self._if_not_exists
×
51

52
    @property
×
53
    def column_list(self):
×
54
        return self._column_list
×
55

56
    def __str__(self):
×
57
        return "CreateFromSelectPlan(table_info={}, \
×
58
            column_lists={}, \
59
            if_not_exists={})".format(
60
            self._table_info, self._column_list, self._if_not_exists
61
        )
62

63
    def __hash__(self) -> int:
×
64
        return hash(
×
65
            (
66
                super().__hash__(),
67
                self.table_info,
68
                self.if_not_exists,
69
                tuple(self.column_list),
70
            )
71
        )
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