Skip to content

Commit 059f31d

Browse files
authored
ci: Fix format check (#558)
Fixes #554.
1 parent 78e4f4b commit 059f31d

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

test/arrowjson.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const SUBTYPES = @eval (
284284
list=List,
285285
largelist=LargeList,
286286
fixedsizelist=FixedSizeList,
287-
$(Symbol("struct"))=Struct,
287+
($(Symbol("struct")))=Struct,
288288
map=Map,
289289
null=Null,
290290
utf8=Utf8,
@@ -596,10 +596,8 @@ function Base.getindex(x::ArrowArray{T}, i::Base.Int) where {T}
596596
@boundscheck checkbounds(x, i)
597597
S = Base.nonmissingtype(T)
598598
if x.field.dictionary !== nothing
599-
fielddata = x.dictionaries[findfirst(
600-
y -> y.id == x.field.dictionary.id,
601-
x.dictionaries,
602-
)].data.columns[1]
599+
fielddata =
600+
x.dictionaries[findfirst(y -> y.id == x.field.dictionary.id, x.dictionaries)].data.columns[1]
603601
field = copy(x.field)
604602
field.dictionary = nothing
605603
idx = x.fielddata.DATA[i] + 1

test/runtests.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,10 +1072,7 @@ end
10721072

10731073
@testset "#511: Bug in reading Utf8View data" begin
10741074
t = Arrow.Table(
1075-
joinpath(
1076-
dirname(pathof(Arrow)),
1077-
"../test/reject_reason_trimmed.arrow",
1078-
),
1075+
joinpath(dirname(pathof(Arrow)), "../test/reject_reason_trimmed.arrow"),
10791076
)
10801077
@test t.reject_reason[end] == "POST_ONLY"
10811078
end

0 commit comments

Comments
 (0)