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 2019/09/27 05:08:44 UTC

[GitHub] [incubator-superset] elonazoulay commented on issue #8308: Queries with nested fields for presto fail with " 'The number of data values and number of nestedfields are not equal'"

elonazoulay commented on issue #8308: Queries with nested fields for presto fail with " 'The number of data values and number of nestedfields are not equal'"
URL: https://github.com/apache/incubator-superset/issues/8308#issuecomment-535787656
 
 
   I patched our local deployment with the following in the function mentioned above:
   Replaced
   ```
               if row_data and len(row_data) != len(row_children):
                   raise Exception(
                       "The number of data values and number of nested"
                       "fields are not equal"
                   )
   ```
   
   with 
   
   ```
   if row_data and len(row_data) != len(row_children):
                   for index, data_value in enumerate(row_data):
                       if index >= len(row_children):
                           row_children.append("col_{}".format(index))
                       datum[row_children[index]] = data_value
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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