connector |
Yes |
The name of the connector. It is in the adbpg-nightly-Version number format. Example: adbpg-nightly-1.13 .
|
url |
Yes |
The JDBC URL that is used to connect to the AnalyticDB for PostgreSQL instance. It is in the jdbc:postgresql://<Internal endpoint>:<Port>/<Database name> format. Example: jdbc:postgresql://gp-xxxxxx.gpdb.cn-chengdu.rds.aliyuncs.com:3432/postgres .
|
tablename |
Yes |
The name of the table created in the AnalyticDB for PostgreSQL instance.
|
username |
Yes |
The name of the database account used to connect to the AnalyticDB for PostgreSQL instance.
|
password |
Yes |
The password of the database account used to connect to the AnalyticDB for PostgreSQL instance.
|
joinmaxrows |
No |
The maximum number of rows in the right table that can be joined with a row in the
left table. Default value: 1024.
If a large number of rows in the right table are joined, you must increase the cache
size to ensure the performance of streaming tasks.
|
maxretrytimes |
No |
The maximum number of retries allowed after a statement fails to be executed. Default
value: 3.
|
connectionmaxactive |
No |
The maximum number of active connections that can be allocated in the connection pool
of the dimension table. Default value: 5.
|
retrywaittime |
No |
The wait interval between retries of failed statements. Default value: 100. Unit:
milliseconds.
|
targetschema |
No |
The schema of the AnalyticDB for PostgreSQL instance. Default value: public.
|
casesensitive |
No |
Specifies whether column and table names are case-sensitive. Default value: 0. Valid
values:
- 0: case-insensitive
- 1: case-sensitive
|
cache |
No |
The policy that is used to cache data. Default value: none. Valid values:
- none: No data is cached.
- lru: Partial data in the dimension table is cached. The system searches the cache
each time it receives a data record from the source table. If the system cannot find
the record in the cache, the system searches for the data record in the physical dimension
table.
If you set this parameter to lru, you must specify the cachesize and cachettlms parameters.
- all: All data in the dimension table is cached. Before a Realtime Compute for Apache
Flink job starts to run, the system loads all data in the dimension table to the cache,
and then looks up the cache for all subsequent queries on the dimension table. If
no keys exist, the system cannot find the data record in the cache. The system reloads
all data in the cache after cache entries expire. If the remote table stores only
a small volume of data and a large number of keys are missing, we recommend that you
set this parameter to all. If you use the ON clause to join the dimension table with
a source table and the dimension table does not contain the keys that are specified
in the join conditions, these keys are missing.
If you set this parameter to all, you must specify the cachettlms parameter.
|
cachesize |
No |
The maximum number of rows that can be cached if the cache parameter is set to lru.
Default value: 10000.
|
cachettlms |
No |
The interval at which the system refreshes the cache. Unit: milliseconds. The system
reloads the most recent data in the dimension table based on the value of this parameter
to ensure that the source table can be joined with the most recent data of the dimension
table.
By default, this parameter is left empty, which indicates that the most recent data
in the dimension table is not reloaded.
|
exceptionmode |
No |
The policy that is used to handle exceptions during data reading. Default value: ignore.
Valid values:
- ignore: If an exception occurs during data reading, the system ignores the exception
and returns only the data that exists before the exception.
- strict: If an exception occurs during data reading, the system performs a failover
and reports an error.
|