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

[8.0] SQL: Remove JDBC dependency on ES XContent lib (#82225) #82267

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

costin
Copy link
Member

@costin costin commented Jan 5, 2022

Backports the following commits to 8.0:

Remove JDBC driver dependency on XContent by cloning the necessary
classes into the driver.
This has the advantage of keeping the parsing/writing code style in sync
and hopefully making maintenance easier in the future at the cost
of bringing over a lot of code that is potentially unnecessary.
The imported classes were kept as close as possible to the original and
placed under a different package. Noteable exception is JDBC
XContentBuilder which exposes its internal generator to allow unwrapping
inside sql-action.

The bridging between XContent in ES and JDBC is done in sql-action
through ProtoShim which relies on delegation to allow ES XContent to be
used inside the JDBC classes.

Fix elastic#80277
@costin costin added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Jan 5, 2022
@elasticsearchmachine elasticsearchmachine merged commit 801c2ac into elastic:8.0 Jan 5, 2022
@costin costin deleted the backport/8.0/pr-82225 branch January 5, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.0.0-rc2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants