2222[ ![ Build Status] ( https://travis-ci.org/apache/arrow.svg?branch=master )] ( https://travis-ci.org/apache/arrow )
2323[ ![ Coverage Status] ( https://coveralls.io/repos/github/apache/arrow/badge.svg )] ( https://coveralls.io/github/apache/arrow )
2424
25- Arrow is a set of technologies that enable big-data systems to process and move data fast .
25+ Arrow is a set of technologies that enable big-data systems to process and transfer data quickly .
2626
2727## install [ apache-arrow from npm] ( https://www.npmjs.com/package/apache-arrow )
2828
@@ -50,7 +50,7 @@ import { readFileSync } from 'fs';
5050import { Table } from ' apache-arrow' ;
5151
5252const arrow = readFileSync (' simple.arrow' );
53- const table = Table .from (arrow);
53+ const table = Table .from ([ arrow] );
5454
5555console .log (table .toString ());
5656
@@ -70,7 +70,7 @@ null, null, null
7070import { readFileSync } from ' fs' ;
7171import { Table } from ' apache-arrow' ;
7272
73- const table = Table .from (... [
73+ const table = Table .from ([
7474 ' latlong/schema.arrow' ,
7575 ' latlong/records.arrow'
7676].map ((file ) => readFileSync (file)));
@@ -93,12 +93,12 @@ console.log(table.toString());
9393import { readFileSync } from ' fs' ;
9494import { Table } from ' apache-arrow' ;
9595
96- const table = Table .from (... [
96+ const table = Table .from ([
9797 ' latlong/schema.arrow' ,
9898 ' latlong/records.arrow'
9999].map (readFileSync));
100100
101- const column = table .getColumn (' origin_lat' );
101+ const column = table .col (' origin_lat' );
102102const typed = column .slice ();
103103
104104assert (typed instanceof Float32Array );
@@ -135,7 +135,7 @@ MapD.open(host, port)
135135 // Create Arrow Table from results
136136 Table .from (schema, records))
137137 .map ((table ) =>
138- // Stringify the table to CSV
138+ // Stringify the table to CSV with row numbers
139139 table .toString ({ index: true }))
140140 .subscribe ((csvStr ) =>
141141 console .log (csvStr));
0 commit comments