Skip to content

Commit 1f5f724

Browse files
committed
Minor cleanup
1 parent dc1a6ce commit 1f5f724

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fallbacks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function buildcolumns(::Nothing, rowitr::T) where {T}
9595
state = iterate(rowitr)
9696
state === nothing && return NamedTuple()
9797
row, st = state
98-
names = propertynames(row)
98+
names = Tuple(propertynames(row))
9999
L = Base.IteratorSize(T)
100100
len = haslength(L) ? length(rowitr) : 0
101101
sch = Schema(names, nothing)
@@ -112,7 +112,7 @@ function _buildcolumns(rowitr, row, st, sch, L, columns, rownbr, len, updated)
112112
row, st = state
113113
columns !== updated[] && return _buildcolumns(rowitr, row, st, sch, L, updated[], rownbr, len, updated)
114114
end
115-
return columns
115+
return updated[]
116116
end
117117

118118
@inline function columns(x::T) where {T}

src/namedtuples.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function columntable(sch::Schema{names, types}, cols) where {names, types}
8888
end
8989
end
9090
# unknown schema case
91-
columntable(::Nothing, cols) = NamedTuple{propertynames(cols)}(Tuple(getarray(col) for col in eachcolumn(cols)))
91+
columntable(::Nothing, cols) = NamedTuple{Tuple(propertynames(cols))}(Tuple(getarray(col) for col in eachcolumn(cols)))
9292

9393
function columntable(itr::T) where {T}
9494
istable(T) || throw(ArgumentError("NamedTuple of AbstractVectors requires a table input"))

0 commit comments

Comments
 (0)