File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636# The following imports are okay to remain as opaque to the user.
3737from ._internal import Config
38- from .catalog import Catalog , Database , Table
38+ from .catalog import Catalog , Table
3939from .col import col , column
4040from .common import DFSchema
4141from .context import (
8080 "DFSchema" ,
8181 "DataFrame" ,
8282 "DataFrameWriteOptions" ,
83- "Database" ,
8483 "ExecutionPlan" ,
8584 "Expr" ,
8685 "InsertOp" ,
Original file line number Diff line number Diff 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-
203193class Table :
204194 """A DataFusion table.
205195
You can’t perform that action at this time.
0 commit comments