This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new ec4fe6e049 [docs] Fix Flink compact_database table pattern examples 
(#10452)
ec4fe6e049 is described below

commit ec4fe6e049a24dae01d2b8232f365095c42bf676
Author: p-eye <[email protected]>
AuthorDate: Fri Oct 9 22:55:06 2026 +0900

    [docs] Fix Flink compact_database table pattern examples (#10452)
---
 docs/docs/flink/procedures/compaction.md       | 8 ++++----
 docs/docs/maintenance/dedicated-compaction.mdx | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/docs/docs/flink/procedures/compaction.md 
b/docs/docs/flink/procedures/compaction.md
index bec6556333..d2a3b889f9 100644
--- a/docs/docs/flink/procedures/compaction.md
+++ b/docs/docs/flink/procedures/compaction.md
@@ -130,9 +130,9 @@ To compact databases. Arguments:
 
 - `mode`: compact mode. "divided" (default): start a sink for each table, 
detecting the new table requires restarting the job; "combined": start a single 
combined sink for all tables, the new table will be automatically detected.
 
-- `includingTables`: to specify tables. You can use regular expression.
+- `includingTables`: to specify tables. The format is 
`databaseName.tableName`, and the whole name must match. You can use regular 
expression, for example `.*\.table_.*`.
 
-- `excludingTables`: to specify tables that are not compacted. You can use 
regular expression.
+- `excludingTables`: to specify tables that are not compacted. The usage is 
same as `includingTables`.
 
 - `tableOptions`: additional dynamic options of the table.
 
@@ -198,8 +198,8 @@ CALL [catalog.]sys.compact_database(
 CALL sys.compact_database(
     including_databases => 'db1|db2',
     mode => 'combined',
-    including_tables => 'table_.*',
-    excluding_tables => 'ignore',
+    including_tables => '.*\.table_.*',
+    excluding_tables => '.*\.ignore',
     table_options => 'sink.parallelism=4',
     compact_strategy => 'full');
 ```
diff --git a/docs/docs/maintenance/dedicated-compaction.mdx 
b/docs/docs/maintenance/dedicated-compaction.mdx
index 7b190a7710..6632b63050 100644
--- a/docs/docs/maintenance/dedicated-compaction.mdx
+++ b/docs/docs/maintenance/dedicated-compaction.mdx
@@ -221,8 +221,8 @@ CALL sys.compact_database(
 CALL sys.compact_database(
   including_databases => 'db1|db2', 
   mode => 'combined', 
-  including_tables => 'table_.*', 
-  excluding_tables => 'ignore', 
+  including_tables => '.*\.table_.*',
+  excluding_tables => '.*\.ignore',
   table_options => 'sink.parallelism=4'
 )
 ```
@@ -444,7 +444,7 @@ Example: compact historical partitions for tables in 
database
 ```sql
 -- history partition compact table
 CALL sys.compact_database(
-  includingDatabases => 'test_db', 
+  including_databases => 'test_db',
   mode => 'combined', 
   partition_idle_time => '1 d'
 );

Reply via email to