Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix column names that are not stringed in tables (#6873)

Shahmir Varqha4d1f2a86c1f4
diff --git a/marimo/_plugins/ui/_impl/tables/table_manager.py b/marimo/_plugins/ui/_impl/tables/table_manager.py
index 849e4c28b3..76ca38431b 100644
--- a/marimo/_plugins/ui/_impl/tables/table_manager.py
+++ b/marimo/_plugins/ui/_impl/tables/table_manager.py
@@ -149,8 +149,9 @@ class TableManager(abc.ABC, Generic[T]):
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()
]