Skip to content

Commit 9bb048b

Browse files
committed
Improve colnames determination
1 parent 3e5690e commit 9bb048b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/table/tables.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ end
4343

4444
function determine_columnnames(table::DTable)
4545
s = determine_schema(table)
46-
return s === nothing ? nothing : s.names
46+
if s !== nothing
47+
return s.names
48+
end
49+
if length(table.chunks) == 0
50+
return ()
51+
end
52+
c = first(table.chunks)
53+
return fetch(Dagger.@spawn columnnames(c))
4754
end
4855

4956
function _getcolumn(table::DTable, col::Union{Symbol,Int})

0 commit comments

Comments
 (0)