You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2026/03/25 08:25:01 UTC
(superset) branch master updated: fix(models): correct TabState.latest_query_id column type to match FK target (#38837)
This is an automated email from the ASF dual-hosted git repository.
misterg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 4b26f8c712b fix(models): correct TabState.latest_query_id column type to match FK target (#38837)
4b26f8c712b is described below
commit 4b26f8c712bb10a2a6292f846b232ada1b2eb705
Author: Joe Li <jo...@preset.io>
AuthorDate: Wed Mar 25 01:24:53 2026 -0700
fix(models): correct TabState.latest_query_id column type to match FK target (#38837)
Co-authored-by: Claude Opus 4.6 <no...@anthropic.com>
---
superset/models/sql_lab.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/models/sql_lab.py b/superset/models/sql_lab.py
index 7a6b246990d..7d303ffa99a 100644
--- a/superset/models/sql_lab.py
+++ b/superset/models/sql_lab.py
@@ -540,7 +540,7 @@ class TabState(AuditMixinNullable, ExtraJSONMixin, Model):
# latest query that was run
latest_query_id = Column(
- Integer, ForeignKey("query.client_id", ondelete="SET NULL")
+ String(11), ForeignKey("query.client_id", ondelete="SET NULL")
)
latest_query = relationship("Query")