From f3561ecd1497f64933cd956bb603167deb48a018 Mon Sep 17 00:00:00 2001 From: alexmorev Date: Sun, 8 Sep 2024 17:24:35 +0300 Subject: [PATCH] LLCAXCHZF-58 / fix cache data as ORC file --- ckanext/charts/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/charts/cache.py b/ckanext/charts/cache.py index 12aae6e..7747288 100644 --- a/ckanext/charts/cache.py +++ b/ckanext/charts/cache.py @@ -143,7 +143,7 @@ class FileCacheORC(FileCache): def read_data(self, file: File) -> pd.DataFrame | None: from pyarrow import orc - return orc.ORCFile(file).read().to_pandas(all_rows=True) + return orc.ORCFile(file).read().to_pandas() def write_data(self, file_path: str, data: pd.DataFrame) -> None: for col in data.select_dtypes(include=["object"]).columns: