michael-s-molina commented on code in PR #33155:
URL: https://github.com/apache/superset/pull/33155#discussion_r2048749652


##########
superset/migrations/shared/utils.py:
##########
@@ -312,6 +312,10 @@ def add_columns(table_name: str, *columns: Column) -> None:
     :param columns: A list of SQLAlchemy Column objects that define the name, 
type, and other attributes of the columns to be added.
     """  # noqa: E501
 
+    if not has_table(table_name=table_name):

Review Comment:
   @eschutho I think this should thrown an error. This is different than trying 
to create an index that already exists or try to drop a table that is not there 
anymore, as the result will be the same. Trying to add columns to a table that 
does not exist is a sign that something else was wrong.



-- 
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-unsubscr...@superset.apache.org

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


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

Reply via email to