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 38
38
39
39
from pandas .io .iceberg import read_iceberg
40
40
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
+
41
67
pyiceberg = pytest .importorskip ("pyiceberg" )
42
68
pyiceberg_catalog = pytest .importorskip ("pyiceberg.catalog" )
43
69
pq = pytest .importorskip ("pyarrow.parquet" )
You can’t perform that action at this time.
0 commit comments