Skip to content

Conversation

@Earthson
Copy link
Contributor

https://issues.apache.org/jira/browse/SPARK-6465

Cause: com.esotericsoftware.kryo.KryoException: Class cannot be created (missing no-arg constructor): org.apache.spark.sql.catalyst.expressions.GenericRowWithSchema

I can't register GenericRowWithSchema and make a no-arg constructor, StructType would cause this exception, too.

Fallback to GenericRow.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@rxin
Copy link
Contributor

rxin commented Mar 25, 2015

Thanks for looking at this. Wouldn't it work if we just add a no-arg ctor to GenericRowWithSchema?

@Earthson
Copy link
Contributor Author

@rxin, not work, because we also need no-arg ctor for StructType, also StructFields, and so on? Is this what we really want to do?

I do not really understand how Kryo works. I've added a no-arg ctor for GenericRowWithSchema, then I got the same Exception for StructType.

@sryza
Copy link
Contributor

sryza commented Mar 25, 2015

Mind putting the JIRA number in the title and labeling this with [SQL]?

@rxin
Copy link
Contributor

rxin commented Mar 26, 2015

FYI I think this is the solution I was referring to: #5191

@Earthson Earthson closed this Mar 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants