Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

"unreachable" error when trying to load data with a dimension of all empty/null values #78

Open
mfulop opened this issue Feb 28, 2021 · 0 comments

Comments

@mfulop
Copy link

mfulop commented Feb 28, 2021

When trying to load data with a dimension column with all empty string values, eg.

import Engine from '@chartshq/datamodel' // used version v3.0.0

async function f () {
  const DataModel = await Engine.onReady()
  const fd = await DataModel.loadData(
    [ { d1: '' } ], // d1: null also fails
    [ { name: 'd1', type: 'dimension' as any } ],
    {}
  )
  const dm = new DataModel(fd)
}

... an error is thrown on load:

    RuntimeError: unreachable
        at wasm-function[167]:0x242f5
        at wasm-function[188]:0x24886
        at wasm-function[192]:0x2493f
        at wasm-function[182]:0x24738
        at wasm-function[27]:0x15eab
        at wasm-function[20]:0x12a24
        at wasm-function[19]:0x12760

      at T.add_field (node_modules/@chartshq/datamodel/dist/node/2.datamodel.js:1:50456)
      at Rt (node_modules/@chartshq/datamodel/dist/node/2.datamodel.js:1:24606)
      at t.createField (node_modules/@chartshq/datamodel/dist/node/2.datamodel.js:1:30596)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant