Code Monkey home page Code Monkey logo

Comments (5)

Dave-Kiwi avatar Dave-Kiwi commented on May 26, 2024 1

Thanks @mukunku! Yes, the byte[] in the sample file is a 3D mask we use for our application that does not correspond to any well-known file type. I think the solution you have provided is excellent, and will serve our purposes very nicely.

from parquetviewer.

MachineParadox101 avatar MachineParadox101 commented on May 26, 2024

Have the same issue with v2.6 throwing error for byte columns. 2.4.7834 also threw an error 'encoding RLE_Dictionary is not supported' for the same file.

Edit: also an issue in 2.7.0.3

from parquetviewer.

mukunku avatar mukunku commented on May 26, 2024

I haven't been able to replicate this issue on my end. I tried with a parquet file containing byte and byte[] fields.

image

Any chance you folks could provide a sample file?

from parquetviewer.

Dave-Kiwi avatar Dave-Kiwi commented on May 26, 2024

I haven't been able to replicate this issue on my end. I tried with a parquet file containing byte and byte[] fields.

image

Any chance you folks could provide a sample file?

Sure thing - the attached one fails pretty hard on Version 2.7.1.0. In 2.6.0.2 it shows just the first two columns, but not the last (byte[]) column. In 2.4.2.0 it works great (shows all three columns, including last byte[] column).
BytesFailsIn2.7.1.0.zip

from parquetviewer.

mukunku avatar mukunku commented on May 26, 2024

Thanks a lot for the sample file @Dave-Kiwi .

I added a temporary patch to support converting byte[] data to string so it can be displayed. This is available now in v2.7.2.1
image

Details

So this is an issue with the fact that we use AutoGenerateColumns = true when generating the gridview. And the internal .net framework logic thinks byte[] types are for images. So it tries to render an image with your byte data and fails. And it fails for each cell so that might be why it triggers so often.

I also put in a fix so any time a value can't be rendered it will be skipped like so:
image

A real proper fix would be to do our own column generation and handle all the different data types ourselves. This is something I'll have to pursue another time; if there's more desire to support different array types.

from parquetviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.