File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333
3434from pyiceberg .catalog import Catalog , Properties , Table , load_catalog
3535from pyiceberg .catalog .sql import SqlCatalog
36- from pyiceberg .exceptions import NamespaceAlreadyExistsError , NoSuchTableError
36+ from pyiceberg .exceptions import NoSuchTableError
3737from pyiceberg .schema import Schema
3838from pyiceberg .table import _dataframe_to_data_files
3939from pyiceberg .types import (
5151 TimestamptzType ,
5252)
5353
54-
55- @pytest .fixture ()
56- def catalog () -> Catalog :
57- catalog = load_catalog (
58- "local" ,
59- ** {
60- "type" : "rest" ,
61- "uri" : "http://localhost:8181" ,
62- "s3.endpoint" : "http://localhost:9000" ,
63- "s3.access-key-id" : "admin" ,
64- "s3.secret-access-key" : "password" ,
65- },
66- )
67-
68- try :
69- catalog .create_namespace ("default" )
70- except NamespaceAlreadyExistsError :
71- pass
72-
73- return catalog
74-
75-
7654TEST_DATA_WITH_NULL = {
7755 'bool' : [False , None , True ],
7856 'string' : ['a' , None , 'z' ],
You can’t perform that action at this time.
0 commit comments