loaders.gl icon indicating copy to clipboard operation
loaders.gl copied to clipboard

ParquetLoader ERRORS

Open aycaramba1224 opened this issue 1 year ago • 2 comments

Discussed in https://github.com/visgl/loaders.gl/discussions/3040

Originally posted by aycaramba1224 June 28, 2024 image

'https://unpkg.com/@loaders.gl/[email protected]/dist/parquet-worker.js' is wrong url! 'https://unpkg.com/@loaders.gl/[email protected]/dist/workers/parquet-worker.js' is correct url!

aycaramba1224 avatar Jul 01 '24 00:07 aycaramba1224

I also encountered this. How should I fix this issue?

Beiusxzw avatar Jul 09 '24 08:07 Beiusxzw

I can't fix it.

aycaramba1224 avatar Jul 10 '24 00:07 aycaramba1224

parquet-loader-worker.js is not built because of CommonJS relationships in code. As a temporary solution you can set worker: false option:

  const result = load(data, ParquetLoader, {worker: false})

belom88 avatar Sep 05 '24 15:09 belom88

@belom88 @ibgreen Performance is taking a serious hit when worker is turned to false for me. Is there anyway to get a pre-compiled parquet-loader-worker.js temporarily? Or will this ever be fixed in the code?

shaunakv1 avatar Oct 07 '24 04:10 shaunakv1

@shaunakv1

Performance is taking a serious hit when worker is turned to false for me.

Hmm, was the JavaScript parquet worker loader ever functional? Even if it was, hard to see how it would be faster. Or is this just a statement that perf is not a good enough using the default JavaScript based loader?

The path to good performance for Parquet is to use the WASM library via ParquetWASMLoader. That is where effort is being put for now.

ibgreen avatar Oct 07 '24 15:10 ibgreen

For repo hygiene reasons, we don't discuss in closed tickets. Please open a GitHub discussion if there is more to discuss.

ibgreen avatar Oct 07 '24 15:10 ibgreen

thanks for the response @ibgreen .

Is there any documentation on ParquetWASMLoader that I can refer to? I am not seeing it in the list of loaders at

https://loaders.gl/docs/modules/parquet/api-reference/parquet-loader

Also will I still be able to use it with Deck.gl?

shaunakv1 avatar Oct 07 '24 17:10 shaunakv1

As I said, further conversation in the discussions tab, please.

ibgreen avatar Oct 07 '24 17:10 ibgreen