Skip to content

Commit bdf8c89

Browse files
committed
database has been deprecated since DF48
1 parent 98da313 commit bdf8c89

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

python/datafusion/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
# The following imports are okay to remain as opaque to the user.
3737
from ._internal import Config
38-
from .catalog import Catalog, Database, Table
38+
from .catalog import Catalog, Table
3939
from .col import col, column
4040
from .common import DFSchema
4141
from .context import (
@@ -80,7 +80,6 @@
8080
"DFSchema",
8181
"DataFrame",
8282
"DataFrameWriteOptions",
83-
"Database",
8483
"ExecutionPlan",
8584
"Expr",
8685
"InsertOp",

python/datafusion/catalog.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ def schema(self, name: str = "public") -> Schema:
129129
else schema
130130
)
131131

132-
@deprecated("Use `schema` instead.")
133-
def database(self, name: str = "public") -> Schema:
134-
"""Returns the database with the given ``name`` from this catalog."""
135-
return self.schema(name)
136-
137132
def register_schema(
138133
self,
139134
name: str,
@@ -195,11 +190,6 @@ def table_exist(self, name: str) -> bool:
195190
return self._raw_schema.table_exist(name)
196191

197192

198-
@deprecated("Use `Schema` instead.")
199-
class Database(Schema):
200-
"""See `Schema`."""
201-
202-
203193
class Table:
204194
"""A DataFusion table.
205195

0 commit comments

Comments
 (0)