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

Unignore re2j dependency conflicts #20244

Conversation

findepi
Copy link
Member

@findepi findepi commented Dec 29, 2023

trino-re2j is a fork of com.google.re2j:re2j. The forks diverged over time. It is not safe to ignore this dependency conflict e.g. because com.google version has com.google.re2j.Pattern.matcher accepting CharSequence or byte[] while Trino version accepts only Slice. They cannot be used interchangeably at all.

`trino-re2j` is a fork of `com.google.re2j:re2j`. The forks diverged
over time. It is not safe to ignore this dependency conflict e.g.
because `com.google` version has `com.google.re2j.Pattern.matcher`
accepting `CharSequence` or `byte[]` while Trino version accepts only
`Slice`. They cannot be used interchangeably at all.
@cla-bot cla-bot bot added the cla-signed label Dec 29, 2023
@github-actions github-actions bot added jdbc Relates to Trino JDBC driver hudi Hudi connector labels Dec 29, 2023
Comment on lines -2437 to -2451
<exception>
<conflictingDependencies>
<dependency>
<groupId>com.google.re2j</groupId>
<artifactId>re2j</artifactId>
</dependency>
<dependency>
<groupId>io.trino</groupId>
<artifactId>re2j</artifactId>
</dependency>
</conflictingDependencies>
<packages>
<package>com.google.re2j</package>
</packages>
</exception>
Copy link
Member Author

Choose a reason for hiding this comment

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

Main change. You can start reviewing from here.

Last use of this dependency was removed in
15cc6e5, while the main use was removed
probably in 59d4859.
@findepi
Copy link
Member Author

findepi commented Dec 29, 2023

CI #20245 (re-running)

@findepi
Copy link
Member Author

findepi commented Dec 29, 2023

CI #15187

@findepi findepi merged commit 875fe1b into trinodb:master Dec 30, 2023
95 checks passed
@findepi findepi deleted the findepi/unignore-re2j-dependency-conflicts-2cec2f branch December 30, 2023 19:25
@github-actions github-actions bot added this to the 436 milestone Dec 30, 2023
@findepi
Copy link
Member Author

findepi commented Feb 7, 2024

followed-up trinodb/re2j#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed hudi Hudi connector jdbc Relates to Trino JDBC driver
Development

Successfully merging this pull request may close these issues.

2 participants