From 2bb0ba248065cb62541bcb40d7f483336ca319f9 Mon Sep 17 00:00:00 2001 From: Shahmir Varqha Date: Wed, 22 Oct 2025 13:54:49 +0800 Subject: [PATCH] string the column name --- marimo/_plugins/ui/_impl/tables/table_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/marimo/_plugins/ui/_impl/tables/table_manager.py b/marimo/_plugins/ui/_impl/tables/table_manager.py index 849e4c28b3e..76ca38431b0 100644 --- a/marimo/_plugins/ui/_impl/tables/table_manager.py +++ b/marimo/_plugins/ui/_impl/tables/table_manager.py @@ -149,8 +149,9 @@ def get_field_type( pass def get_field_types(self) -> FieldTypes: + # Some column names may be non-string (sqlalchemy quoted names), so we convert them to strings return [ - (column_name, self.get_field_type(column_name)) + (str(column_name), self.get_field_type(column_name)) for column_name in self.get_column_names() ]