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

[FLINK-36009] Architecture tests refactor #143

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

eskabetxe
Copy link
Member

Created the module flink-connector-jdbc-architecture to have all tests, we need to add the modules as dependency to validate that module..

Copy link
Contributor

@RocMarshal RocMarshal left a comment

Choose a reason for hiding this comment

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

Hi, @eskabetxe Thank you for your hard work.
LGTM on the whole just the commit message header.
image

Would you mind helping update it ? thx~

@eskabetxe eskabetxe changed the title [FLINK-35363] Architecture tests refactor [FLINK-36009] Architecture tests refactor Oct 10, 2024
@eskabetxe
Copy link
Member Author

Hi, @eskabetxe Thank you for your hard work. LGTM on the whole just the commit message header. image

Would you mind helping update it ? thx~

fixed, the incorrect one was the PR that was using the Epic

Copy link
Contributor

@RocMarshal RocMarshal left a comment

Choose a reason for hiding this comment

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

Thanks @eskabetxe for the update
LGTM +1 after merging & rebasing #144

@eskabetxe
Copy link
Member Author

@1996fanrui can you check

Copy link
Member

@1996fanrui 1996fanrui left a comment

Choose a reason for hiding this comment

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

@1996fanrui can you check

This PR is related to Architecture refactor, since I'm not an expert of jdbc-connector, so it's better to involve a commiter or PMC member related to connector, thanks.

cc @leonardBang

@eskabetxe eskabetxe force-pushed the FLINK-35363_archtectureonly branch from 02c3783 to 99a0e50 Compare October 23, 2024 12:37
@eskabetxe
Copy link
Member Author

@leonardBang @MartijnVisser can you help here..

import org.apache.flink.table.types.logical.RowType;

/** JDBC converter for PostgreSQL compatible databases. */
@PublicEvolving
@Internal
Copy link
Contributor

Choose a reason for hiding this comment

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

this is unclear to me
shouldn't we create a kind of FLIP first if we make such changes?

Copy link
Member Author

Choose a reason for hiding this comment

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

This configuration is currently misaligned. All dialect implementations are classified as internal. The purpose of this class is solely to allow the CrateDB dialect to utilize the PostgreSQL implementation.

To preserve the PublicEvolving status, we need to add an exception to the architecture test. Without this exception, the rule "Public Evolving API Methods Use Only Public Evolving API Types" will fail.

To resolve this issue without an exception, we would need to refactor all dialect implementations and classify them as PublicEvolving.

I can add the exception if you still believe that a FLIP is necessary and focus the discussion solely on that change. I believe this will not impact the rest of the PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can add the exception if you still believe that a FLIP is necessary and focus the discussion solely on that change. I believe this will not impact the rest of the PR.

would be great.
Agree, rest of the PR is more or less ok (I did only a brief look, will look again a bit later)

Copy link
Member Author

Choose a reason for hiding this comment

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

@snuyanzin already changed and added the exception to architecture tests.
When you have time could you check again..
Thanks

@eskabetxe eskabetxe force-pushed the FLINK-35363_archtectureonly branch from 99a0e50 to 6d49ebe Compare January 1, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants