quiet-kilobyte-82304
09/30/2021, 9:05 PMyour-tableau-url/metadata/graphiql
and run this. There are a few examples here that you can use. You can then map the o/p to DataHub’s chart or dashboard schema. We’re trying to add some automation around this process. I’ll be happy to share when we have something tangible. But the below query should get you started with ownership and datasources.
query ShowMeWorkbookEmbeddedFilters {
workbooks(filter: { name: "your-workbook-name" }) {
name
owner {
id
name
}
embeddedDatasources {
name
upstreamTables {
id
name
}
upstreamDatabases {
id
name
}
}
}
}
handsome-belgium-11927
10/01/2021, 8:13 AMCan't run the query because the Metadata API has not been enabled yet
I'll ask our admins if they can turn it onhandsome-belgium-11927
10/01/2021, 8:43 AMquiet-kilobyte-82304
10/01/2021, 11:46 AMhandsome-belgium-11927
10/01/2021, 3:26 PM"embeddedDatasources": [
{
"name": "Custom SQL Query",
"upstreamTables": [],
"upstreamDatabases": []
}
]
and I can't any fields for embedded datasources that look like sql codequiet-kilobyte-82304
10/01/2021, 4:50 PMhandsome-belgium-11927
10/01/2021, 5:35 PMhandsome-belgium-11927
10/01/2021, 5:36 PM<_.fcp.ObjectModelEncapsulateLegacy.false...relation connection='exasolution.1iv62f01yftgxg10kul6q0tx71tg' name='Custom_SQL_Query' type='text'><![CDATA[with rfm as
(
select "DATE"
,LOCALITY_ID
,DRIVER_ID
,SEGMENT_ID
from
...
quiet-kilobyte-82304
10/01/2021, 6:51 PMquiet-kilobyte-82304
10/01/2021, 6:51 PMmammoth-bear-12532
quiet-kilobyte-82304
10/01/2021, 7:14 PMhandsome-belgium-11927
10/01/2021, 7:17 PMthe result you got above is because the workbook that you're getting the metadata for doesn't use custom sql
well, BI engineer showed me that this particular datasource is using some custom sql, I may be wrong with terms, but I want to get this code somehow, and graphql not giving me anything like thatquiet-kilobyte-82304
10/01/2021, 7:18 PMdata sources -> initial SQL
?handsome-belgium-11927
10/01/2021, 7:23 PM