public abstract class MessageQueueSyncTableActionBase extends SyncTableActionBase
Action
for synchronizing one message queue topic into one Paimon table.
If the specified Paimon table does not exist, this action will automatically create the table. Its schema will be derived from all specified topics. If the Paimon table already exists, its schema will be compared against the schema of all specified topics.
This action supports a limited number of schema changes. Unsupported schema changes will be ignored. Currently supported schema changes includes:
SyncTableActionBase.SchemaRetrievalException
computedColumnArgs, computedColumns, fileStoreTable, partitionKeys, primaryKeys, table
allowUpperCase, cdcSourceConfig, database, metadataConverters, syncJobHandler, tableConfig, typeMapping
batchTEnv, catalog, catalogName, catalogOptions, env, flinkCatalog
Constructor and Description |
---|
MessageQueueSyncTableActionBase(String warehouse,
String database,
String table,
Map<String,String> catalogConfig,
Map<String,String> mqConfig,
SyncJobHandler.SourceType sourceType) |
Modifier and Type | Method and Description |
---|---|
protected Schema |
buildPaimonSchema(Schema retrievedSchema) |
protected CdcTimestampExtractor |
createCdcTimestampExtractor() |
protected Schema |
retrieveSchema() |
beforeBuildingSourceSink, buildEventParserFactory, buildSink, fileStoreTable, recordParse, validateCaseSensitivity, withComputedColumnArgs, withPartitionKeys, withPartitionKeys, withPrimaryKeys, withPrimaryKeys
alterTableOptions, build, buildSource, run, tableConfig, validateRuntimeExecutionMode, withMetadataColumns, withTableConfig, withTypeMapping
catalogConfig, catalogLoader, compatibleCheck, execute, initFlinkCatalog, initFlinkEnv, initPaimonCatalog, toPaimonTypes, withStreamExecutionEnvironment
protected Schema retrieveSchema() throws Exception
retrieveSchema
in class SyncTableActionBase
Exception
protected CdcTimestampExtractor createCdcTimestampExtractor()
createCdcTimestampExtractor
in class SynchronizationActionBase
protected Schema buildPaimonSchema(Schema retrievedSchema)
buildPaimonSchema
in class SyncTableActionBase
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.