Skip to content

Commit

Permalink
Marshalling: Enable option orjson.OPT_SERIALIZE_NUMPY to support NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 16, 2025
1 parent 4ca23bb commit 20e735f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crate/client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def _create_sql_payload(stmt, args, bulk_args):
return orjson.dumps(
data,
default=cratedb_json_encoder,
option=orjson.OPT_PASSTHROUGH_DATETIME,
option=(orjson.OPT_PASSTHROUGH_DATETIME | orjson.OPT_SERIALIZE_NUMPY),
)


Expand Down

0 comments on commit 20e735f

Please sign in to comment.