broad-tomato-45373
01/21/2022, 1:52 PMsource:
type: superset
config:
# Coordinates
connect_uri: <>
# Credentials
username: admin
password: admin
sink:
type: "datahub-rest"
config:
# TODO : Parameterizing the sink url from single config
server: <>
under lying source for superset datasets is redshift ..square-activity-64562
01/21/2022, 1:56 PMbroad-tomato-45373
01/21/2022, 1:58 PMsource-datasets [lying in redshift] -> [dataset in superset] -> [charts] -> [dashboards]
lineage part from source-datasets [lying in redshift] -> [dataset in superset] -> [charts] is the missing link ..square-activity-64562
01/21/2022, 2:02 PMsource-datasets [lying in redshift] and [dataset in superset] are the same thing. Just represented differently in superset (as connection) vs original source. For getting schema from redshift you will have to use redshift source.square-activity-64562
01/21/2022, 2:03 PMbroad-tomato-45373
01/21/2022, 2:05 PMredshift to superset chart is not there..square-activity-64562
01/21/2022, 2:10 PMchartInfo or something like that there? The code is there for this lineage https://github.com/linkedin/datahub/blob/master/metadata-ingestion/src/datahub/ingestion/source/superset.py#L290 so it should be comingsquare-activity-64562
01/21/2022, 2:11 PMchartInfo aspect for the chart?broad-tomato-45373
01/21/2022, 2:12 PMbroad-tomato-45373
01/21/2022, 2:23 PM"inputs": [
{
"string": "urn:li:dataset:(urn:li:dataPlatform:external,Amazon Redshift.<schema-name>.<table-name>,PROD)"
}
],
as we can see here Amon redshift is <schema-name>.<table-name>
whereas, redshift takes the dataset name as <database-name>.<schema-name>.<table-name>square-activity-64562
01/21/2022, 2:25 PMsquare-activity-64562
01/21/2022, 2:29 PMsquare-activity-64562
01/21/2022, 2:29 PMbroad-tomato-45373
01/21/2022, 2:33 PMDisplay Name , which was different from the original Database Name in my case causing the issue .
but now i checked the backend (entity type) is external in the above case , it should be redshift
any idea to change the same
updated (current -state) :
"inputs": [
{
"string": "urn:li:dataset:(urn:li:dataPlatform:external,mydb.<schema-name>.<table-name>,PROD)"
}
],
expected :
"inputs": [
{
"string": "urn:li:dataset:(urn:li:dataPlatform:redshift,Amazon Redshift.<schema-name>.<table-name>,PROD)"
}
],square-activity-64562
01/21/2022, 2:36 PMsqlalchemy_uri.startswith("jdbc:postgres:")
and sqlalchemy_uri.index("redshift.amazonaws") > 0
Does your uri not satisfy either of these conditions?square-activity-64562
01/21/2022, 2:38 PMsquare-activity-64562
01/21/2022, 2:39 PMjdbc:postgres not redshiftsquare-activity-64562
01/21/2022, 2:39 PMbroad-tomato-45373
01/21/2022, 2:41 PMsquare-activity-64562
01/21/2022, 2:42 PMbroad-tomato-45373
01/21/2022, 2:43 PMredshift+psycopg2://<userName>:<DBPassword>@<AWS End Point>:5439/<Database Name>square-activity-64562
01/21/2022, 2:46 PMexternal should be fixedbroad-tomato-45373
01/21/2022, 2:49 PMbroad-tomato-45373
01/21/2022, 2:55 PMsquare-activity-64562
01/21/2022, 2:56 PMsquare-activity-64562
01/21/2022, 2:59 PM