Skip to content

Commit

Permalink
Fix table.to_arrow() for data.format=parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
roywilly committed Jul 4, 2024
1 parent b96e19a commit be58c6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fmu/sumo/explorer/objects/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def to_arrow(self) -> pa.Table:
pa.Table: _description_
"""
if self._arrowtable is None:
if self["data"]["format"] == "arrow":
if self["data"]["format"] == "parquet":
worked = "parquet"
self._arrowtable = pq.read_table(self.blob)
elif self["data"]["format"] == "arrow":
try:
worked = "feather"
self._arrowtable = pf.read_table(self.blob)
Expand Down

0 comments on commit be58c6a

Please sign in to comment.