From 633b1b904ade4e528a7b6aee741c59f897ee0d3a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 28 Mar 2024 07:13:05 +0000 Subject: [PATCH 1/2] =?UTF-8?q?chore(=F0=9F=A6=BE):=20bump=20python=20simp?= =?UTF-8?q?lejson=203.17.3=20->=203.19.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/base.txt b/requirements/base.txt index d54cac22b40b7..1861aff932781 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -323,7 +323,7 @@ shillelagh[gsheetsapi]==1.2.10 # via apache-superset shortid==0.1.2 # via apache-superset -simplejson==3.17.3 +simplejson==3.19.2 # via apache-superset six==1.16.0 # via From 998c686e8f68e00403cd3b19077c56f756462bd1 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 28 Mar 2024 14:18:51 -0700 Subject: [PATCH 2/2] fix unit test --- superset/utils/hashing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/utils/hashing.py b/superset/utils/hashing.py index fff654263e4a5..86ed736b08339 100644 --- a/superset/utils/hashing.py +++ b/superset/utils/hashing.py @@ -29,6 +29,8 @@ def md5_sha_from_dict( ignore_nan: bool = False, default: Optional[Callable[[Any], Any]] = None, ) -> str: - json_data = json.dumps(obj, sort_keys=True, ignore_nan=ignore_nan, default=default) + json_data = json.dumps( + obj, sort_keys=True, ignore_nan=ignore_nan, default=default, allow_nan=True + ) return md5_sha_from_str(json_data)