A clear and concise description of what the bug is.
When querying a deeply nested field in presto, a "The number of data values and number of nestedfields are not equal'" error.
This appears related to http://mail-archives.apache.org/mod_mbox/superset-notifications/201905.mbox/%3C155925893590.16760.17217802552102811180.gitbox@gitbox.apache.org%3E
The data
Exception: 'The number of data values and number of nestedfields are not equal'
If applicable, add screenshots to help explain your problem.
(please complete the following information):
python --version 3.6node -vnpm -vMake sure these boxes are checked before submitting your issue - thank you!
Add any other context about the problem here.
Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
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
Hi @elonazoulay - feel free to contribute that fix back to core. Thanks for digging in!
Sure, I'll submit a pr for that:)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.