Skip to content

Fallback to GenericRow#5180

Closed
Earthson wants to merge 1 commit into
apache:masterfrom
Earthson:SPARK-6465
Closed

Fallback to GenericRow#5180
Earthson wants to merge 1 commit into
apache:masterfrom
Earthson:SPARK-6465

Conversation

@Earthson

Copy link
Copy Markdown
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
Copy Markdown

Can one of the admins verify this patch?

@rxin

rxin commented Mar 25, 2015

Copy link
Copy Markdown
Contributor

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

@Earthson

Copy link
Copy Markdown
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

sryza commented Mar 25, 2015

Copy link
Copy Markdown
Contributor

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

@rxin

rxin commented Mar 26, 2015

Copy link
Copy Markdown
Contributor

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