Skip to content
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

[jvm-packages] Fix json4s binary compatibility issue #7376

Merged
merged 1 commit into from Oct 29, 2021

Conversation

wbo4958
Copy link
Contributor

@wbo4958 wbo4958 commented Oct 28, 2021

Spark 3.2 depends on 3.7.0-M11 which has changed some implicited functions'
signatures. And it will result the xgboost4j built against spark 3.0/3.1
failed when saving the model.

Spark 3.2 depends on 3.7.0-M11 which has changed some implicited functions'
signatures. And it will result the xgboost4j built against spark 3.0/3.1
failed when saving the model.
@@ -87,3 +89,62 @@ private[spark] object DefaultXGBoostParamsWriter {
metadataJson
}
}

// Fix json4s bin-incompatible issue.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering this is some sort of workaround, could you please add a note on when can it be removed in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a workaround. This PR explicitly call the implicit functions (copied from original Json4s) to build Json object, so the function signatures are unique, and it will not depend on any Json4s version

@trivialfis trivialfis merged commit b81ebbe into dmlc:master Oct 29, 2021
@trivialfis trivialfis added this to 1.5.1 Done in 2.0 Roadmap Oct 29, 2021
@wbo4958 wbo4958 deleted the json4s-compatible branch November 1, 2021 01:51
trivialfis pushed a commit to trivialfis/xgboost that referenced this pull request Nov 10, 2021
Spark 3.2 depends on 3.7.0-M11 which has changed some implicited functions'
signatures. And it will result the xgboost4j built against spark 3.0/3.1
failed when saving the model.
trivialfis added a commit that referenced this pull request Nov 10, 2021
Spark 3.2 depends on 3.7.0-M11 which has changed some implicited functions'
signatures. And it will result the xgboost4j built against spark 3.0/3.1
failed when saving the model.

Co-authored-by: Bobby Wang <wbo4958@gmail.com>
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.

None yet

2 participants