Giter Site home page Giter Site logo

Comments (6)

8bit-pixies avatar 8bit-pixies commented on August 23, 2024 1

You might have better luck if you provide the file.sas7bdat which reproduces this so that people can have a look.

from spark-sas7bdat.

buyology avatar buyology commented on August 23, 2024

Sure it was this file with results from PISA: http://vs-web-fs-1.oecd.org/pisa/PUF_SAS_COMBINED_CMB_STU_QQQ.zip

from spark-sas7bdat.

niraj7848 avatar niraj7848 commented on August 23, 2024

When I am trying to parse a 32MB file I am able to parse it and convert it into CSV file.

But when I am trying convert a 7GB file, I am getting ArrayIndexOutOfBoundException as below.

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at com.ggasoftware.parso.SasFileParser.readSubheaderSignature(SasFileParser.java:493)
at com.ggasoftware.parso.SasFileParser.processPageMetadata(SasFileParser.java:460)
at com.ggasoftware.parso.SasFileParser.processNextPage(SasFileParser.java:937)
at com.ggasoftware.parso.SasFileParser.readNextPage(SasFileParser.java:919)
... 29 more

But When running with a 120MB file it is giving following exception
Caused by: java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:506)
at java.nio.HeapByteBuffer.getDouble(HeapByteBuffer.java:514)
at com.ggasoftware.parso.SasFileParser.bytesToDate(SasFileParser.java:1312)
at com.ggasoftware.parso.SasFileParser.processByteArrayWithData(SasFileParser.java:1106)
at com.ggasoftware.parso.SasFileParser.readNext(SasFileParser.java:887)
... 32 more

I am really not sure how to debug. Any help or guidance will be highly appreciated.
Thanks

from spark-sas7bdat.

niraj7848 avatar niraj7848 commented on August 23, 2024

BufferUnderflowException issue got resolved.
IndexOutOfBoundsException is coming because of wrong offset to read the subheader. readSubheaderSignature method is getting the index which is greater than the size of a Page and hence it is throwing IndexOutOfBoundsException.

Has anyone worked on this problem?

from spark-sas7bdat.

 avatar commented on August 23, 2024

@niraj7848 Can you explain how you resolved the BufferUnderflowException? I'm using 1.1.5

from spark-sas7bdat.

saurfang avatar saurfang commented on August 23, 2024

Please give the new version a try as we believe this might have been fixed.

from spark-sas7bdat.

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.