File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 3838
3939from pandas .io .iceberg import read_iceberg
4040
41+
42+ # TODO: Remove this before merging
43+ # Using to gather information about the CI errors that don't reproduce locally
44+ import os
45+ import pprint
46+ import strictyaml
47+
48+ PYICEBERG_HOME = "PYICEBERG_HOME"
49+ search_dirs = [os .environ .get (PYICEBERG_HOME ), os .path .expanduser ("~" ), os .getcwd ()]
50+ data = [".pyiceberg locations:" ]
51+ for dir_ in search_dirs :
52+ path = None
53+ exists = False
54+ content = None
55+ if dir_ :
56+ path = pathlib .Path (dir_ ) / ".pyiceberg.yaml"
57+ exists = path .exists ()
58+ if exists :
59+ with open (path , encoding = "utf-8" ) as f :
60+ yml_str = f .read ()
61+ content = strictyaml .load (yml_str ).data
62+ data .append ((path , exists , content ))
63+
64+ raise RuntimeError (pprint .pformat (data ))
65+ # TODO end
66+
4167pyiceberg = pytest .importorskip ("pyiceberg" )
4268pyiceberg_catalog = pytest .importorskip ("pyiceberg.catalog" )
4369pq = pytest .importorskip ("pyarrow.parquet" )
You can’t perform that action at this time.
0 commit comments