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