This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 3da9fd3  ARROW-2178: [JS] Fix JS html FileReader example
3da9fd3 is described below

commit 3da9fd3af3775ea83d3efa644eab871fd19c8ed0
Author: Paul Taylor <paul.e.tay...@me.com>
AuthorDate: Mon Feb 19 13:38:40 2018 -0500

    ARROW-2178: [JS] Fix JS html FileReader example
    
    Author: Paul Taylor <paul.e.tay...@me.com>
    
    Closes #1614 from trxcllnt/js-fix-html-example and squashes the following 
commits:
    
    b2a05965 [Paul Taylor] fix JS html FileReader example
---
 js/examples/read_file.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/js/examples/read_file.html b/js/examples/read_file.html
index 3093622..3e082d9 100644
--- a/js/examples/read_file.html
+++ b/js/examples/read_file.html
@@ -29,6 +29,7 @@ table {
 }
 table, th, td {
   border: 1px solid black;
+  white-space: nowrap;
 }
     </style>
     <script type="text/javascript">
@@ -53,8 +54,8 @@ reader.onload = function (evt) {
   }
 
   var header_row = document.createElement("tr");
-  for (let column of arrowTable.columns) {
-    addCell(header_row, "th", column.name);
+  for (let field of arrowTable.schema.fields) {
+    addCell(header_row, "th", `${field}`);
   }
 
   thead.appendChild(header_row);

-- 
To stop receiving notification emails like this one, please contact
w...@apache.org.

Reply via email to