Skip to content

Commit 20e735f

Browse files
committed
Marshalling: Enable option orjson.OPT_SERIALIZE_NUMPY to support NumPy
1 parent 4ca23bb commit 20e735f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crate/client/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def _create_sql_payload(stmt, args, bulk_args):
343343
return orjson.dumps(
344344
data,
345345
default=cratedb_json_encoder,
346-
option=orjson.OPT_PASSTHROUGH_DATETIME,
346+
option=(orjson.OPT_PASSTHROUGH_DATETIME | orjson.OPT_SERIALIZE_NUMPY),
347347
)
348348

349349

0 commit comments

Comments
 (0)