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

[Feature] FakeSource support MultipleTable #5766

Merged

Conversation

ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Oct 31, 2023

Purpose of this pull request

FakeSource support generate multiple different CatalogTable. This will be used for testing multiple table feature for sink.

Does this PR introduce any user-facing change?

How was this patch tested?

Tested by UT and e2e case

Check list

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch 5 times, most recently from efbcb92 to fe14cfa Compare October 31, 2023 11:33
@ruanwenjun ruanwenjun changed the title FakeSource support generate different CatalogTable for MultipleTable [Feature] FakeSource support generate different CatalogTable for MultipleTable Oct 31, 2023
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch 6 times, most recently from 8edcb52 to 61d3371 Compare November 5, 2023 09:01
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch from 61d3371 to 86788c0 Compare November 8, 2023 09:54
@EricJoy2048 EricJoy2048 added this to the 2.3.4 milestone Nov 10, 2023
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch from 86788c0 to 1d9e779 Compare November 12, 2023 05:48
@ruanwenjun ruanwenjun added the feature New feature label Nov 12, 2023
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch from 1d9e779 to 7de401b Compare November 12, 2023 05:51
@ruanwenjun ruanwenjun changed the title [Feature] FakeSource support generate different CatalogTable for MultipleTable [Feature] FakeSource support MultipleTable Nov 12, 2023
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch 5 times, most recently from 7e9094a to 7075e19 Compare November 14, 2023 12:45
parseFromConfig(fakeSourceRootConfig);
}
// validate
assert fakeConfigs != null;
Copy link
Member

Choose a reason for hiding this comment

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

I think the assert will not work by default. Please use com.google.common.base.Preconditions.checkNotNull.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -209,9 +209,9 @@ public SeaTunnelDataType<?> toSeaTunnelType(
case DATE:
return LocalTimeType.LOCAL_DATE_TYPE;
case DATETIME:
return LocalTimeType.LOCAL_DATE_TIME_TYPE;
case TIMESTAMP:
return LocalTimeType.LOCAL_TIME_TYPE;
Copy link
Member

Choose a reason for hiding this comment

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

mapping DATETIME to LOCAL_DATE_TIME_TYPE ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The DATETIME should convert to LocalTime and TIMESTAMP should convert to LOCAL_DATE_TIME_TYPE

Copy link
Member Author

Choose a reason for hiding this comment

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

I revert this change.

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch 2 times, most recently from 8fabd05 to 4afca2c Compare November 15, 2023 09:27
Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

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

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fakeSourceSupportMultipleTable branch from 4afca2c to a1dd591 Compare November 16, 2023 03:24
@ruanwenjun
Copy link
Member Author

@ruanwenjun ruanwenjun requested a review from Hisoka-X November 16, 2023 07:17
Copy link
Member

@hailin0 hailin0 left a comment

Choose a reason for hiding this comment

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

LGTM

@Hisoka-X Hisoka-X merged commit a8b9380 into apache:dev Nov 16, 2023
@ruanwenjun ruanwenjun deleted the dev_wenjun_fakeSourceSupportMultipleTable branch November 16, 2023 07:28
alextinng pushed a commit to alextinng/seatunnel that referenced this pull request Dec 19, 2023
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