connector-plugin-sdk icon indicating copy to clipboard operation
connector-plugin-sdk copied to clipboard

Show schema for table in Data Source pane

Open alex-kar opened this issue 4 years ago • 4 comments

About You: Name: Alex K Company: SQream

Your question: Please, let us know how to configure JDBC based connector to show schema name for tables in Data Source pane (in case when schema is not default). As an example PostgreSQL connector: image But if I try to use this sample it does not show. So, I can assume that probably it can be achieved through some configuration in .taco package. Thanks.

alex-kar avatar Jan 24 '21 14:01 alex-kar

Hi Alex,

The postgres_jdbc sample you reference is written in Connection Dialog V1 style. To include schema on the Data Source pane (assuming the underlying database supports it) the following line should be added to connection-dialog.tcd: <has-schemas value="true" />. XSD for reference.

For writing a new connector I'd also recommend reviewing the documentation on Connection Dialog V2. Here is a sample. Based on feedback we've more clearly separated the Connection Dialog and Data Source pane configurations with this design. See the 'The Connection Metadata File' section for more details.

Thanks.

rosswbrown avatar Jan 25 '21 20:01 rosswbrown

@rosswbrown Hi Ross, We already have connector written in Dialog V1 style. When I add has-schemas flag it does show database and schema selectors. And if I want to achieve exactly the same result as on screenshot (show schema next to the table name) I should rewrite connector in Dialog V2 style. Am I right? Thanks.

alex-kar avatar Jan 26 '21 07:01 alex-kar

Sorry, I misunderstood your previous question. The abc (test.abc) style of table name shown in the schema viewer is not customizable via the SDK today, either by V1 or V2 style. What is shown above is a feature of Tableau's built-it PostgreSQL connector.

Thanks for raising this issue. I'll tag this as an enhancement request for consideration by the team for a future Tableau release.

rosswbrown avatar Jan 29 '21 19:01 rosswbrown

Hi, I am a new PM for the Connector SDK and I am looking at our feature backlog and getting things prioritized. I would appreciate if you can give your feedback for our product via this form. It should only take 2-5 mins but would be super valuable to our team. Thanks in advance!! https://docs.google.com/forms/d/e/1FAIpQLSfs5OreNsxnva_uTO2vTxnoF-oq-37tEdrUpirUKwqud2Ib7g/viewform?usp=sf_link

VasanthiNeelagiri avatar Nov 03 '21 19:11 VasanthiNeelagiri