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-35152][pipeline-connector/doris] Support create doris auto partition table #3871

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

qg-lin
Copy link
Contributor

@qg-lin qg-lin commented Jan 17, 2025

This PR is to aim to support create auto partition table in doris sink.
SEE JIRA: https://issues.apache.org/jira/browse/FLINK-35152

@github-actions github-actions bot added docs Improvements or additions to documentation doris-pipeline-connector labels Jan 17, 2025
@qg-lin
Copy link
Contributor Author

qg-lin commented Jan 17, 2025

@yuxiqian @lvyanquan @JNSimba PTAL

Currently the partition function only supports date_trunc, and the partition column supports only DATE or DATETIME types, and the version of Doris must greater than 2.1.6. See more about <a href="https://doris.apache.org/docs/table-design/data-partitioning/auto-partitioning">Doris Auto Partitioning</a><br/>
These properties are supported now:<br/>
<code> table.create.auto-partition.properties.include</code>A collection of tables after route to include, separated by commas, supports regular expressions;<br/>
<code> table.create.auto-partition.properties.exclude</code>A collection of tables after route to exclude, separated by commas, supports regular expressions;<br/>
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better not to let user aware of the concept of route, which will make it hard to understand.

<code> table.create.auto-partition.properties.default_partition_key</code>默认分区键;<br/>
<code> table.create.auto-partition.properties.default_partition_unit</code>默认分区单位;<br/>
<code> table.create.auto-partition.properties.DB.TABLE.partition_key</code>特定表的分区键,如未配置取默认分区键;<br/>
<code> table.create.auto-partition.properties.DB.TABLE.partition_unit</code>特定表的分区单位,如未配置取默认分区单位。<br/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add these properties though transform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation doris-pipeline-connector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants