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 2020/10/19 04:52:48 UTC

[GitHub] [incubator-superset] mistercrunch commented on a change in pull request #11274: fix: error around latest partition in BigQuery

mistercrunch commented on a change in pull request #11274:
URL: https://github.com/apache/incubator-superset/pull/11274#discussion_r507455947



##########
File path: superset-frontend/src/SqlLab/components/TableElement.jsx
##########
@@ -110,7 +110,7 @@ class TableElement extends React.PureComponent {
           />
         );
       }
-      let latest = Object.entries(table.partitions.latest).map(
+      let latest = Object.entries(table.partitions?.latest || []).map(

Review comment:
       This isn't necessary anymore given the issue being addressed in the backend, but is a tiny bit of defensive programming.




----------------------------------------------------------------
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



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