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.

Mark DuckDb INET type (from inet extension) as unknown type (#9384)

Igor2dbb958b6ab2
diff --git a/marimo/_data/get_datasets.py b/marimo/_data/get_datasets.py
index 7a7b5128b2..7b0f5555fd 100644
--- a/marimo/_data/get_datasets.py
+++ b/marimo/_data/get_datasets.py
@@ -522,6 +522,7 @@ _BINARY_TYPES = {"bit", "bitstring", "binary", "varbinary", "bytea"}
_UNKNOWN_TYPES = {
"row",
"geometry",
+ "inet",
# Null type (can occur when attaching databases or with unknown column types)
"null",
'"null"',
diff --git a/tests/_data/test_get_datasets.py b/tests/_data/test_get_datasets.py
index 182c49fad4..ae40081210 100644
--- a/tests/_data/test_get_datasets.py
+++ b/tests/_data/test_get_datasets.py
@@ -660,6 +660,10 @@ def test_db_type_to_data_type_various() -> None:
assert _db_type_to_data_type("blob") == "string"
assert _db_type_to_data_type("guid") == "string"
assert _db_type_to_data_type("nvarchar") == "string"
+ assert _db_type_to_data_type("char") == "string"
+ assert _db_type_to_data_type("bpchar") == "string"
+ assert _db_type_to_data_type("string") == "string"
+ assert _db_type_to_data_type("uuid") == "string"
# Binary types (represented as string)
assert _db_type_to_data_type("binary") == "string"
@@ -682,6 +686,7 @@ def test_db_type_to_data_type_various() -> None:
assert _db_type_to_data_type("null") == "unknown"
assert _db_type_to_data_type("json") == "unknown"
assert _db_type_to_data_type("row") == "unknown"
+ assert _db_type_to_data_type("inet") == "unknown"
@pytest.mark.requires("duckdb")