-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error writing parquet file from JSON with object array #389
Comments
Hi haggy, thanks for raising this issue. This usecase is exactly the type of functionality eel looks to provide. We would be very welcome to you have a look at a fix, thanks. Also, we'll look to get a new version out on 2.12 soon. Thanks |
@garyfrost I've started looking into this bug. Just an FYI, the build is currently failing due to a single test in the
it's more of a heads up. Im not going to dig into that as it's a pre-existing issue and Im not familiar with that piece of it |
Im trying to use
JsonSource
and write it as Parquet usingParquetSink
. The issue I'm running into is that I get aClassCastException
whenever the Parquet writer encounters aRow
created from json with an array of objects. From what I see, it's because the writer is trying to cast a scalaMap
to aSeq[Any]
in theStructWriter
.Here is where the exception is thrown: https://github.com/51zero/eel-sdk/blob/v1.2.4/eel-core/src/main/scala/io/eels/component/parquet/RecordConsumerWriter.scala#L105
Here is the stack trace:
Here is a fully runnable example (will need hadoop deps if you don't already have them):
core-site.xml
file for local hadoop dev (I put this in my resources folder in ahadoop
sub directory):I do realize that this is on version
1.2.4
of eels but there is no later version for scala 2.12 on Maven. Can you see any reason why Im getting this writer error? If it's an actual bug I'd be happy to take a stab at fixing it.The text was updated successfully, but these errors were encountered: