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

[CORE] Enlarge defaultRecursionLimit by pre-loading the protobuf class #8904

Merged
merged 5 commits into from
Mar 6, 2025

Conversation

PHILO-HE
Copy link
Contributor

@PHILO-HE PHILO-HE commented Mar 5, 2025

What changes were proposed in this pull request?

We previously introduced custom protobuf dependency with only defaultRecursionLimit enlarged to avoid the limit is hit for deeply nested plans (one user reported this issue). It is not easy to upgrade this dependency since it requires local build and then publishing the jar to maven repo.

With this change, we can remove the custom protobuf dependency for easily upgrading protobuf when needed.

How was this patch tested?

Verified by local remote debug.

@github-actions github-actions bot added CORE works for Gluten Core VELOX CLICKHOUSE labels Mar 5, 2025
Copy link

github-actions bot commented Mar 5, 2025

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@PHILO-HE
Copy link
Contributor Author

PHILO-HE commented Mar 5, 2025

@FelixYBW, @zhztheplayer

Copy link

github-actions bot commented Mar 5, 2025

Run Gluten Clickhouse CI on x86

@zhouyuan
Copy link
Contributor

zhouyuan commented Mar 5, 2025

related
#3814
protocolbuffers/protobuf#13301

@FelixYBW
Copy link
Contributor

FelixYBW commented Mar 6, 2025

<scope>test</scope>

set to "provide"
several other places also need to be updated

@FelixYBW
Copy link
Contributor

FelixYBW commented Mar 6, 2025

<ignoreClass>com.google.protobuf.*</ignoreClass>

Remove?

Copy link

github-actions bot commented Mar 6, 2025

Run Gluten Clickhouse CI on x86

@PHILO-HE
Copy link
Contributor Author

PHILO-HE commented Mar 6, 2025

<scope>test</scope>

set to "provide" several other places also need to be updated

@FelixYBW, I just removed protobuf from iceberg & hudi module as it is not really used, and changed the scope to provided for delta module.

@PHILO-HE
Copy link
Contributor Author

PHILO-HE commented Mar 6, 2025

<ignoreClass>com.google.protobuf.*</ignoreClass>

Remove?

Yes, seems we can remove it. Let's see CI feedback.

@FelixYBW
Copy link
Contributor

FelixYBW commented Mar 6, 2025

Where is the code to modify protobuf and build customized version? Is it manually upload to mvn repo?

@FelixYBW FelixYBW merged commit 88df3b3 into apache:main Mar 6, 2025
51 checks passed
@PHILO-HE
Copy link
Contributor Author

PHILO-HE commented Mar 6, 2025

Where is the code to modify protobuf and build customized version? Is it manually upload to mvn repo?

@FelixYBW , the code is maintained in my personal repo: https://github.com/PHILO-HE/protobuf/tree/v3.23.4-0.

Yes, we manually did that.
We firstly obtained a jar by building protobuf from source at local, then go through maven's jar publish process to make it available to download when building gluten.

@FelixYBW
Copy link
Contributor

FelixYBW commented Mar 6, 2025

@FelixYBW , the code is maintained in my personal repo: PHILO-HE/protobuf@v3.23.4-0.

Yes, we manually did that. We firstly obtained a jar by building protobuf from source at local, then go through maven's jar publish process to make it available to download when building gluten.

Thank you for the PR! manually doing this definitely isn't a right way. Glad we fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants