jerryshao commented on code in PR #6009:
URL: https://github.com/apache/gravitino/pull/6009#discussion_r1898876975


##########
clients/client-python/gravitino/namespace.py:
##########
@@ -34,13 +33,13 @@ def __init__(self, levels: List[str]):
         self._levels = levels
 
     def to_json(self):
-        return json.dumps(self._levels)
+        return self._levels

Review Comment:
   It is a bug in the previous code, it treat a json list as a string, which 
will lead to failure in deserialization.



##########
clients/client-python/gravitino/namespace.py:
##########
@@ -34,13 +33,13 @@ def __init__(self, levels: List[str]):
         self._levels = levels
 
     def to_json(self):
-        return json.dumps(self._levels)
+        return self._levels

Review Comment:
   It is a bug in the previous code, it treats a json list as a string, which 
will lead to failure in deserialization.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to