This is an automated email from the ASF dual-hosted git repository.

kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 7be5cf2e Return an empty dict if nan values is not provided by the 
catalog (#1575)
7be5cf2e is described below

commit 7be5cf2e90eec7407a4ff12650fa8ef7c232a303
Author: summermousa-vendia <[email protected]>
AuthorDate: Sun Jan 26 12:15:35 2025 -0600

    Return an empty dict if nan values is not provided by the catalog (#1575)
    
    Fixes: https://github.com/apache/iceberg-python/issues/1574
---
 pyiceberg/table/inspect.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyiceberg/table/inspect.py b/pyiceberg/table/inspect.py
index 6dfa78a7..91bdb2f2 100644
--- a/pyiceberg/table/inspect.py
+++ b/pyiceberg/table/inspect.py
@@ -207,7 +207,7 @@ class InspectTable:
                             "column_sizes": dict(entry.data_file.column_sizes),
                             "value_counts": dict(entry.data_file.value_counts),
                             "null_value_counts": 
dict(entry.data_file.null_value_counts),
-                            "nan_value_counts": 
entry.data_file.nan_value_counts,
+                            "nan_value_counts": 
dict(entry.data_file.nan_value_counts),
                             "lower_bounds": entry.data_file.lower_bounds,
                             "upper_bounds": entry.data_file.upper_bounds,
                             "key_metadata": entry.data_file.key_metadata,

Reply via email to