You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Krisztian Szucs (JIRA)" <ji...@apache.org> on 2019/01/29 16:27:00 UTC
[jira] [Resolved] (ARROW-4395) ts-node throws type error running
`bin/arrow2csv.js`
[ https://issues.apache.org/jira/browse/ARROW-4395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krisztian Szucs resolved ARROW-4395.
------------------------------------
Resolution: Fixed
Fix Version/s: (was: 0.4.0)
0.13.0
Issue resolved by pull request 3504
[https://github.com/apache/arrow/pull/3504]
> ts-node throws type error running `bin/arrow2csv.js`
> ----------------------------------------------------
>
> Key: ARROW-4395
> URL: https://issues.apache.org/jira/browse/ARROW-4395
> Project: Apache Arrow
> Issue Type: Bug
> Components: JavaScript
> Affects Versions: 0.4.0
> Reporter: Paul Taylor
> Assignee: Paul Taylor
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.13.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> ts-node is being too strict, throws this (inaccurate) error JIT'ing the TS source:
> {code:none}
> $ cat test/data/cpp/stream/simple.arrow | ./bin/arrow2csv.js
> /home/ptaylor/dev/arrow/js/node_modules/ts-node/src/index.ts:228
> return new TSError(diagnosticText, diagnosticCodes)
> ^
> TSError: тип Unable to compile TypeScript:
> src/vector/map.ts(25,57): error TS2345: Argument of type 'Field<T[string | number | symbol]>[]' is not assignable to parameter of type 'Field<T[keyof T]>[]'.
> Type 'Field<T[string | number | symbol]>' is not assignable to type 'Field<T[keyof T]>'.
> Type 'T[string] | T[number] | T[symbol]' is not assignable to type 'T[keyof T]'.
> Type 'T[symbol]' is not assignable to type 'T[keyof T]'.
> Type 'DataType<Type, any>' is not assignable to type 'T[keyof T]'.
> Type 'symbol' is not assignable to type 'keyof T'.
> Type 'symbol' is not assignable to type 'string | number'.
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)