Skip to content

Comments

GH-3399: Hint IDE the source code generated by thrift#3400

Open
HuaHuaY wants to merge 1 commit intoapache:masterfrom
HuaHuaY:add_thrift_hint
Open

GH-3399: Hint IDE the source code generated by thrift#3400
HuaHuaY wants to merge 1 commit intoapache:masterfrom
HuaHuaY:add_thrift_hint

Conversation

@HuaHuaY
Copy link

@HuaHuaY HuaHuaY commented Feb 24, 2026

Rationale for this change

Hint IDE the source code generated by thrift so it will not report The import org.apache.parquet.xxxxxx cannot be resolved

What changes are included in this PR?

Modified two pom.xml files and added build-helper-maven-plugin plugin.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Closes #3399

Copilot AI review requested due to automatic review settings February 24, 2026 07:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves IDE/Maven project source-root recognition for Thrift-generated Java code, preventing IDE errors like unresolved org.apache.parquet.* imports in generated sources.

Changes:

  • Add build-helper-maven-plugin to register target/generated-sources/thrift as a compile source root in parquet-format-structures.
  • Add build-helper-maven-plugin to register target/generated-test-sources/thrift as a test source root in parquet-thrift.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
parquet-thrift/pom.xml Adds generated Thrift test sources directory to Maven test source roots for IDE/build visibility.
parquet-format-structures/pom.xml Adds generated Thrift main sources directory to Maven compile source roots for IDE/build visibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

Nice improvement!

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.

Use build-helper-maven-plugin to hint IDE the source code generated by thrift

2 participants