betodealmeida commented on code in PR #20340:
URL: https://github.com/apache/superset/pull/20340#discussion_r896307056
##########
superset/result_set.py:
##########
@@ -71,6 +71,19 @@ def destringify(obj: str) -> Any:
return json.loads(obj)
+def convert_to_string(value: Any) -> str:
+ """
+ Used to ensure column names from the cursor description are strings.
+ """
+ if isinstance(value, str):
Review Comment:
Yeah, it's not needed, I just thought it was clearer this way.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]