Skip to main content
Version: Next

TableMerge

TableFilter transform plugin

Description

TableFilter transform plugin for filter tables.

Options

nametyperequireddefault valueDescription
database_patternstringnoSpecify database filter pattern, the default value is null, which means no filtering. If you want to filter the database name, please set it to a regular expression.
schema_patternstringnoSpecify schema filter pattern, the default value is null, which means no filtering. If you want to filter the schema name, please set it to a regular expression.
table_patternstringnoSpecify table filter pattern, the default value is null, which means no filtering. If you want to filter the table name, please set it to a regular expression.
pattern_modestringnoINCLUDESpecify pattern mode, the default value is INCLUDE, which means include the matched table. If you want to exclude the matched table, please set it to EXCLUDE.

Examples

Include filter tables

Include filter tables with the name matching the regular expression user_\d+ in the database test.

transform {
TableFilter {
plugin_input = "source1"
plugin_output = "transform_a_1"

database_pattern = "test"
table_pattern = "user_\\d+"
}
}

Exclude filter tables

Exclude filter tables with the name matching the regular expression user_\d+ in the database test.

transform {
TableFilter {
plugin_input = "source1"
plugin_output = "transform_a_1"

database_pattern = "test"
table_pattern = "user_\\d+"
pattern_mode = "EXCLUDE"
}
}