Skip to content

Commit

Permalink
Update src/table.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed May 22, 2024
1 parent f0b9a80 commit 51341e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function alignof(base = {}, data, columns) {

function type(data, column) {
// duck-type Arrow table date fields
if (String(data?.schema?.fields?.find?.(d => d?.name === column)).endsWith("<MILLISECOND>") return "date";
if (String(data?.schema?.fields?.find?.(d => d?.name === column)).endsWith("<MILLISECOND>")) return "date";
for (const d of data) {
if (d == null) continue;
const value = d[column];
Expand Down

0 comments on commit 51341e7

Please sign in to comment.