You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Diana Clarke (Jira)" <ji...@apache.org> on 2021/02/20 03:08:00 UTC
[jira] [Created] (ARROW-11706) [JS] Better BigInt compatibility
check
Diana Clarke created ARROW-11706:
------------------------------------
Summary: [JS] Better BigInt compatibility check
Key: ARROW-11706
URL: https://issues.apache.org/jira/browse/ARROW-11706
Project: Apache Arrow
Issue Type: Improvement
Reporter: Diana Clarke
See: https://github.com/apache/arrow/pull/9110
Check for whether BigInt64ArrayAvailable and BigUint64ArrayAvailable are available, rather than just BigIntAvailable. Recent versions of JavaScriptCore/WebKit in Safari support BigInt but do not support BigInt64Array, and so anything that relies on BigInt64Array will fail despite BigIntAvailable being true.
The manifestation of this issue can be seen when trying to run the following within Safari on a table that contains bigints:
{code:java}
RecordBatchJSONWriter.writeAll(table).toString(true)
message: "BigUint64Array is not available in this environment"
BigUint64ArrayUnavailableError
BigUint64ArrayUnavailable
bignumToString
bigNumsToStrings
generatorResume@[native code]
performIteration@[native code]
visitInt
visit
map@[native code]
recordBatchToJSON
close
finish
global code
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)