mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
chore(sqlalchemy): Remove erroneous SQLAlchemy ORM session.merge operations (#24776)
This commit is contained in:
@@ -67,10 +67,10 @@ def load_random_time_series_data(
|
||||
obj = db.session.query(table).filter_by(table_name=tbl_name).first()
|
||||
if not obj:
|
||||
obj = table(table_name=tbl_name, schema=schema)
|
||||
db.session.add(obj)
|
||||
obj.main_dttm_col = "ds"
|
||||
obj.database = database
|
||||
obj.filter_select_enabled = True
|
||||
db.session.merge(obj)
|
||||
db.session.commit()
|
||||
obj.fetch_metadata()
|
||||
tbl = obj
|
||||
|
||||
Reference in New Issue
Block a user