Skip to content

Commit

Permalink
Fixed deserialization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMair committed Dec 15, 2023
1 parent b026c67 commit dd9b79b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ SlurmExt = ["ClusterManagers"]

[compat]
DataFrames = "1"
Distributed = "1.6"
Logging = "1.6"
Pkg = "1.6"
Distributed = "^1.6"
Logging = "^1.6"
Pkg = "^1.6"
ProgressBars = "1"
Random = "1.6"
Random = "^1.6"
SQLite = "1"
SafeTestsets = "0.0"
Serialization = "1.6"
julia = "1.6"
Serialization = "^1.6"
julia = "^1.6"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
8 changes: 7 additions & 1 deletion src/database.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,13 @@ function _deserialize_columns(df::DataFrame)
col = df[!, colname]
if eltype(col) <: Vector{UInt8} # raw binary
df[!, colname] = map(col) do c
return Serialization.deserialize(c)
io = IOBuffer(c)
obj = Serialization.deserialize(io)
if typeof(obj) <: SQLite.Serialized
return obj.object
else
return obj
end
end
end
end
Expand Down

0 comments on commit dd9b79b

Please sign in to comment.