You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/11/18 10:02:28 UTC

[GitHub] [superset] ganczarek commented on a change in pull request #17470: fix(presto): expand data with null item

ganczarek commented on a change in pull request #17470:
URL: https://github.com/apache/superset/pull/17470#discussion_r752082637



##########
File path: superset/db_engine_specs/presto.py
##########
@@ -872,7 +872,7 @@ def expand_data(  # pylint: disable=too-many-locals
                     values = row.get(name) or []
                     if isinstance(values, str):
                         row[name] = values = cast(List[Any], destringify(values))
-                    for value, col in zip(values, expanded):
+                    for value, col in zip(values or [], expanded):

Review comment:
       You're right. Thank you. I changed it as per your first suggestion and force pushed the updated commit. I had to split the statement into two because of line length limit.




-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org