diff --git a/test/arrowjson.jl b/test/arrowjson.jl index a7eee75..1d0bb2f 100644 --- a/test/arrowjson.jl +++ b/test/arrowjson.jl @@ -284,7 +284,7 @@ const SUBTYPES = @eval ( list=List, largelist=LargeList, fixedsizelist=FixedSizeList, - $(Symbol("struct"))=Struct, + ($(Symbol("struct")))=Struct, map=Map, null=Null, utf8=Utf8, @@ -596,10 +596,8 @@ function Base.getindex(x::ArrowArray{T}, i::Base.Int) where {T} @boundscheck checkbounds(x, i) S = Base.nonmissingtype(T) if x.field.dictionary !== nothing - fielddata = x.dictionaries[findfirst( - y -> y.id == x.field.dictionary.id, - x.dictionaries, - )].data.columns[1] + fielddata = + x.dictionaries[findfirst(y -> y.id == x.field.dictionary.id, x.dictionaries)].data.columns[1] field = copy(x.field) field.dictionary = nothing idx = x.fielddata.DATA[i] + 1 diff --git a/test/runtests.jl b/test/runtests.jl index 1b3418e..9ca171f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1072,10 +1072,7 @@ end @testset "#511: Bug in reading Utf8View data" begin t = Arrow.Table( - joinpath( - dirname(pathof(Arrow)), - "../test/reject_reason_trimmed.arrow", - ), + joinpath(dirname(pathof(Arrow)), "../test/reject_reason_trimmed.arrow"), ) @test t.reject_reason[end] == "POST_ONLY" end