-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Upgrade to airline 2.x #17308
Upgrade to airline 2.x #17308
Conversation
6289fbb
to
782ce95
Compare
Thanks for the contribution. But Presto maintains its own airline and I don't think we are planning to adopt any forked version. |
Hi @zacw7, I created one year ago, an issue on presto's airline but one maintainer told me this version would be deprecated soon. If you confirm that it won't be a waste of time, I would make a PR to the presto's airline version to add the mutually exclusive option. |
Thanks for the explanations. Is the mutually exclusive option for presto-on-spark? |
Yes, this mutually exclusive option is for presto-on-spark. |
@aweisberg Ariel, do you mind taking a look and providing some insights from Presto-on-Spark perspective? Thanks! |
Oddly enough it looks like we never deployed the forked version? I think it would be fine to upgrade assuming no bugs/compatibility issues. It's just going from one version of the dependency we don't own to another. I'll do a real review tomorrow. |
Hi @aweisberg Are changes ok for you ? |
Sorry been very busy. At a high level yes, but I need to test it. I have a hard time knowing what these ignored class patterns are about, and the exclusion for Jakarta and whether it is safe. Nothing ever seems safe with Java dependencies. |
Thanks for the feedback ! Yes I should commit these ignored-class-patterns appart in a separate commit in order to indicate why they were mandatory. I didn't find a better way to avoid Excluding Jakarta is for the same reason: to avoid duplication of several classes between the new "Jakarta" jar vs the old-javax one. Jakarta had a bad time (before its 2.x version) where they kept the same package name as the javax one. |
It looks like there are already quite a few https://github.com/prestodb/airbase/blob/master/airbase/pom.xml |
Created prestodb/airbase#20 to add the duplicate-finder exclusion to airbase. We can remove it from the Presto poms. |
Airbase 103 is out now. |
b2b25d9
to
d85be1c
Compare
@aweisberg this is updated. I just kept the exclusion on |
Can you clean up the history? So first commit should just be upgrade airbase, second commit would be the functional upgrade to airline 2.x. Then I can approve. |
d85be1c
to
ebb6434
Compare
It's done @aweisberg ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
I don't think this needs a release note because it isn't a user visible change.
Can you test that there are no changes with --help for the cli? Looks like the way that is generated has changed a bit with airline 2.x, so want to confirm that it still works as expected. |
Hi @rschlussel I checked differences between my branch and the current master one for As I can see, the only differences are :
while on this migration-to-airlift-2 branch, I see 4 lines
But there are exactly the same number of options with the same names
|
The multiple lines thing is fine, but would be good to fix the issue with required arguments not showing up correctly. |
stale, closing due to conflicts |
It could have been better to ask for a rebase and maybe to integrate the fix about required arguments than closing the PR. I think upgrading to airline 2.x should be a good move for prestodb ! |
@rguillome please feel free to reopen after you have fixed the merge conflicts and incorporate @rschlussel's suggestions, we'll be happy to review once you do. |
Test plan - Existing TU and launch Presto Spark Launcher and Presto Cli from local environment
Depends on https://github.com/facebookexternal/presto-facebook/pull/1840
This migration remove deprecated dependency to airline 0.x version and bring new features as allowing two options to be mutualy exclusive.
Fix this issue #16236