Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying list of data sources #306

Open
RelativisticMechanic opened this issue Jun 21, 2023 · 2 comments
Open

Querying list of data sources #306

RelativisticMechanic opened this issue Jun 21, 2023 · 2 comments

Comments

@RelativisticMechanic
Copy link

Hello,

Is there any way that I can get a list of data sources currently active on a Druid server? I want my client to be able to type a phrase or word that is part of the data source name and it'll show the available data sources that match said phrases / words.

Is there a way to do that?

@suneet-s
Copy link

This information is available in the INFORMATION_SCHEMA. You can query it via the query API. The datasources live under the TABLE_SCHEMA druid

SELECT * FROM "INFORMATION_SCHEMA"."TABLES" WHERE "TABLE_SCHEMA" = 'druid'

@RelativisticMechanic
Copy link
Author

Perfect. Thanks a lot for the answer! Please mark it as solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants