From be58c6a95fa0ed882e4439089b2fecc69b7f9345 Mon Sep 17 00:00:00 2001 From: Roy Willy Haug <5484176+roywilly@users.noreply.github.com> Date: Thu, 4 Jul 2024 10:03:54 +0200 Subject: [PATCH] Fix table.to_arrow() for data.format=parquet --- src/fmu/sumo/explorer/objects/table.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fmu/sumo/explorer/objects/table.py b/src/fmu/sumo/explorer/objects/table.py index 5aa75722..03f61132 100644 --- a/src/fmu/sumo/explorer/objects/table.py +++ b/src/fmu/sumo/explorer/objects/table.py @@ -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)