代码之家  ›  专栏  ›  技术社区  ›  Mauricio Etchevest

将Apache Arrow表转换为字符串,表上的导入不起作用

  •  0
  • Mauricio Etchevest  · 技术社区  · 4 年前

    我遵循这个例子:

    https://arrow.apache.org/docs/js/

    import { readFileSync } from 'fs';
    import { Table } from 'apache-arrow';
    
    const arrow = readFileSync('simple.arrow');
    const table = Table.from([arrow]);
    
    console.log(table.toString());
    
    /*
     foo,  bar,  baz
       1,    1,   aa
    null, null, null
       3, null, null
       4,    4,  bbb
       5,    5, cccc
    */
    

    还有

    import { Table } from 'apache-arrow'; 
    

    这个错误给了我:

    在“apache arrow”中找不到导出“Table”(导入为“Table”)(模块没有导出)

    未找到模块:错误:无法解析“”/io/适配器在。。。

    我能做什么?

    谢谢

    0 回复  |  直到 4 年前