diff --git a/src/sqlalchemy_cratedb/compiler.py b/src/sqlalchemy_cratedb/compiler.py index d9e3bb7..2ba1394 100644 --- a/src/sqlalchemy_cratedb/compiler.py +++ b/src/sqlalchemy_cratedb/compiler.py @@ -245,6 +245,12 @@ def visit_FLOAT_VECTOR(self, type_, **kw): raise ValueError("FloatVector must be initialized with dimension size") return f"FLOAT_VECTOR({dimensions})" + def visit_JSON(self, type_, **kw): + return "OBJECT" + + def visit_JSONB(self, type_, **kw): + return "OBJECT" + class CrateCompiler(compiler.SQLCompiler):