zhaoyongjie commented on code in PR #19750:
URL: https://github.com/apache/superset/pull/19750#discussion_r852524689


##########
superset/connectors/sqla/models.py:
##########
@@ -2042,6 +2042,10 @@ def after_delete(  # pylint: disable=unused-argument
         dataset = (
             
session.query(NewDataset).filter_by(sqlatable_id=target.id).one_or_none()
         )
+        for tbl in dataset.tables:
+            if len(tbl.datasets) == 1 and tbl.datasets[0] == dataset:
+                session.delete(tbl)

Review Comment:
   This PR is not needed, I just want to pass the CI.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to