Skip to content

[Feature][Clickhouse] Support multi-table source read #7529

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

Open
wants to merge 66 commits into
base: dev
Choose a base branch
from

Conversation

zhilinli123
Copy link
Contributor

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

# Conflicts:
#	seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/source/ClickhouseSource.java
@hailin0
Copy link
Member

hailin0 commented Sep 3, 2024

close #6230

@hailin0 hailin0 linked an issue Sep 3, 2024 that may be closed by this pull request
3 tasks
private CatalogTable catalogTable;
private String sql;
private Map<TablePath, ClickhouseCatalogConfig> tableClickhouseCatalogConfigMap =
new HashedMap<>();
Copy link
Member

Choose a reason for hiding this comment

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

why not use HashMap?

}
}

private CatalogTable createCatalogTable(SeaTunnelRowType rowType, TablePath tablePath) {
Copy link
Member

Choose a reason for hiding this comment

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

why not use CatalogTableUtil.convertDataTypeToCatalogTables()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
I think it's an outdated one. Is it okay to keep using it?

@DisabledOnContainer(
value = {},
type = {EngineType.SPARK, EngineType.FLINK},
disabledReason = "The multi-catalog does not currently support the Spark Flink engine")
Copy link
Member

Choose a reason for hiding this comment

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

Current, flink and spark supported multi-tables

Container.ExecResult execResult = container.executeJob(CLICKHOUSE_MULTI_LIST_TABLE_CONFIG);
Assertions.assertEquals(0, execResult.getExitCode());

Thread.sleep(3000);
Copy link
Member

Choose a reason for hiding this comment

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

why sleep?

# Conflicts:
#	seatunnel-e2e/seatunnel-connector-v2-e2e/connector-clickhouse-e2e/src/test/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/ClickhouseIT.java
# Conflicts:
#	seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/config/ClickhouseConfig.java
@zhilinli123
Copy link
Contributor Author

PTAL: @hailin0 @Hisoka-X

# Conflicts:
#	seatunnel-e2e/seatunnel-connector-v2-e2e/connector-clickhouse-e2e/src/test/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/ClickhouseIT.java
#	seatunnel-e2e/seatunnel-connector-v2-e2e/connector-clickhouse-e2e/src/test/resources/init/clickhouse_init.conf
# Conflicts:
#	seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/config/ClickhouseSinkOptions.java
#	seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/source/ClickhouseSourceFactory.java
# Conflicts:
#	docs/zh/connector-v2/source/Clickhouse.md
@zhilinli123 zhilinli123 closed this Mar 6, 2025
@zhilinli123 zhilinli123 reopened this Mar 6, 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.

[Feature][clickhouse] Support multi-table source read
3 participants