My source is posgres and I have partitioned tables. Each partition is being treated as a separate object and I want to load only the table metadata and ignore it's partition's metadata.
(as the columns are same for table and it's partitions)
All the partitions have the pattern "<table_name>_1_prt_<partition_date>" in the name.
Below is my yaml with table_pattern.deny as "1_prt" to exclude them.
--------------
source:
type: postgres
config:
host_port: '
xxx.xx.xxxx.net:5432'
database: vds_prd
username: my_user_name
password: '${db_pwd}'
schema_pattern:
allow:
- my_schema
table_pattern:
deny:
- 1_prt
include_tables: true
include_views: true
profiling:
enabled: false
sink:
type: datahub-rest
config:
server: '
http://datahub-gms:8080'
----------------
From the ingestion log, I see tables with string "1_prt" getting ingested, excerpt below:
---------------------------------------
(urn
lidataPlatform:postgres,
vds_prd.my_schema.xxx_1_prt_232,PROD)\n'
'[2022-04-04 10
4641,942] INFO {datahub.ingestion.run.pipeline:84} - sink wrote workunit '
'
vds_prd.my_schema.xxx_xxx_1_prt_232\n'
'[2022-04-04 10
4644,019] INFO {datahub.ingestion.run.pipeline:84} - sink wrote workunit '
'container-urn
licontainer
5a495cd278d6547e15bf9bd46197c09d to urnli
dataset(urn
lidataPlatform:postgres,
vds_prd.my_schema.xxx_xxx_1_prt_20150701,PROD)\n'
'[2022-04-04 10
4644,037] INFO {datahub.ingestion.run.pipeline:84} - sink wrote workunit '
'
vds_prd.my_schema.xxx_xxx_1_prt_20150701\n'
'[2022-04-04 10
4646,050] INFO {datahub.ingestion.run.pipeline:84} - sink wrote workunit '
'container-urn
licontainer
5a495cd278d6547e15bf9bd46197c09d to urnli:dataset