From cdb8b3105f433781b2430ec2f78ad94f36dedc62 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 18 Sep 2023 05:18:23 -0400 Subject: [PATCH] chore: remove unnecessary `DuckDBTable` class --- ibis/backends/duckdb/__init__.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ibis/backends/duckdb/__init__.py b/ibis/backends/duckdb/__init__.py index 205b0660533b..69343e48a369 100644 --- a/ibis/backends/duckdb/__init__.py +++ b/ibis/backends/duckdb/__init__.py @@ -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 @@ -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