Skip to content

Conversation

@Jetiaime
Copy link
Contributor

@Jetiaime Jetiaime commented May 2, 2024

Purpose of this pull request

JdbcCatalogOptions BASE builder will be changed by call required() because it just a static variable and Builder inner list will be changed if you are using code like this:

OceanBaseCatalogFactory factory = new OceanBaseCatalogFactory();
factory.optionRule();
factory.optionRule();

So change the BASE variable to a function, when we call the base() function, it will create a new Builder, so it will be new every call;

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Check list

…ged by call `required()`

JdbcCatalogOptions BASE builder will be changed by call `required()` because it just a static variable and Builder inner list will be changed if you are using code like this:

```java
OceanBaseCatalogFactory factory = new OceanBaseCatalogFactory();
factory.optionRule();
factory.optionRule();
```
So change the BASE variable to a function, when we call the `base()` function, it will create a new Builder, so it will be new every call;
@Hisoka-X
Copy link
Member

Hisoka-X commented May 6, 2024

Hi @Jetiaime , thanks for open this PR! Please follow the guide to open CI on your fork repository. https://github.com/apache/seatunnel/pull/6788/checks?check_run_id=24501297956

@Hisoka-X
Copy link
Member

Hisoka-X commented May 6, 2024

Overall LGTM

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Jul 14, 2025
@github-actions
Copy link

This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.

@github-actions github-actions bot closed this Jul 21, 2025
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.

2 participants