Skip to content

Commit

Permalink
chore: remove unnecessary DuckDBTable class
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 18, 2023
1 parent 79471c0 commit cdb8b31
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions ibis/backends/duckdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,6 @@ def normalize_filenames(source_list):
}


class DuckDBTable(ir.Table):
"""References a physical table in DuckDB."""

@property
def _client(self):
return self.op().source

@property
def name(self):
return self.op().name


class Backend(BaseBackend, CanCreateSchema):
name = "duckdb"
supports_create_or_replace = True
Expand Down Expand Up @@ -209,7 +197,7 @@ def table(self, name: str, database: str | None = None) -> ir.Table:
"""
schema = self.get_schema(name, database=database)
qname = self._fully_qualified_name(name, database)
return DuckDBTable(ops.DatabaseTable(qname, schema, self))
return ops.DatabaseTable(qname, schema, self).to_expr()

def _fully_qualified_name(self, name: str, database: str | None) -> str:
return name
Expand Down

0 comments on commit cdb8b31

Please sign in to comment.