utkarsharma2 commented on code in PR #36161:
URL: https://github.com/apache/airflow/pull/36161#discussion_r1425174592
##########
airflow/providers/databricks/hooks/databricks_sql.py:
##########
@@ -242,9 +243,11 @@ def run(
@staticmethod
def _make_serializable(result):
- """Transform the databricks Row objects into a JSON-serializable list
of rows."""
- if result is not None:
+ """Transform the databricks Row objects into JSON-serializable
lists."""
+ if isinstance(result, list):
Review Comment:
One possible solution is to inherit from `row class` and introduce
`deserialize` and `serialize` that way we can deal with this in a similar way
as dataframes.
--
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]