-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the SasFileParser() API Public #51
Comments
Hi Mathew, Thanks for sharing your issue. Could you please answer the following questions so we can find out the best way to help you.
Thanks |
@printsev
Here is the code, which currently uses hacks to expose the private methods described above. |
Hi @thesuperzapper, Will you be comfortable if we provide public access to readNextPage() method via SasFileReaderImpl class? This class already contains public access methods to getSasFileProperties() and readNextPage() which you use in your code. Constants like TIME_FORMAT_STRINGS, DATE_FORMAT_STRINGS, and EPSILON was moved to public interfaces (will soon be released), in this way it looks like we can add |
@Yana-Guseva That would probably work. |
@Yana-Guseva any progress on this? |
@thesuperzapper currently all changes related to this issue are available in the master branch. Please let me know if you run into any problems. |
@Yana-Guseva @printsev While these changes are now in the master branch, no release has happened in many months. When are you planning to cut a release with these changes? (the |
@printsev @Yana-Guseva any chance a new release can be cut from master? thx!! |
Sorry for some delay with my answer -- vacation time (even the year is absolutely crazy). I've deployed 2.0.12-SNAPSHOT to maven snapshot. Hope it's OK for now, and after we deal with some failing tests (I believe it's not the application as they are failing even with code from 2016), we can make a 2.0.12 release. Hope it's OK. |
Thank you Igor |
I've made the 2.0.12 release, please let me know if it works for you |
Hi Guys, I am the maintainer of the spark-sas7bdat package, which is used by many to read large SAS7BDAT with Apache Spark across many servers.
The issue is, because we need to start reading arbitrary offsets of the sas files (so each of the servers only reads a piece of the file), we need to call some of the protected methods/constructors in Parso.
Currently we use this crazy hack (PrivateMethodExposer.scala) to break the into protected methods and constructors.
I would love it if you could publicly expose the following things:
com.epam.parso.impl.SasFileParser
getSasFileProperties()
method ofSasFileParser
readNext()
method ofSasFileParser
readNextPage()
method ofSasFileParser
TIME_FORMAT_STRINGS
,DATE_FORMAT_STRINGS
, andEPSILON
Here is the actual class we use in conjunction with the PrivateMethodExposer.scala, so we can use
com.epam.parso.impl.SasFileParser
: ParsoWrapper.scalaThe text was updated successfully, but these errors were encountered: