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

Add nice shortcuts to CLI #118

Merged
merged 1 commit into from
Feb 4, 2018
Merged

Conversation

betodealmeida
Copy link
Contributor

$ pydruid
> SHOW TABLES;
TABLE_NAME
----------------
foo
bar
baz
COLUMNS
SCHEMATA
TABLES
> SHOW SCHEMAS;
SCHEMA_NAME
------------------
druid
INFORMATION_SCHEMA
> DESC foo;
COLUMN_NAME        ORDINAL_POSITION  COLUMN_DEFAULT    IS_NULLABLE    DATA_TYPE
---------------  ------------------  ----------------  -------------  -----------
__time                            0                    NO             TIMESTAMP
count                             1                    NO             BIGINT
location                          2                    YES            VARCHAR
aaaaaa                            3                    YES            VARCHAR
bbbbbb                            4                    YES            VARCHAR
sum_cccccccccc                    5                    NO             FLOAT
>

@betodealmeida
Copy link
Contributor Author

I'm planning to add support for DROP TABLES, but that requires extra work since it needs to communicate with the coordinator instead of the broker. For the Pinot connector I added an option to pass multiple hosts (server and broker), we can do the same thing for Druid.

@mistercrunch mistercrunch merged commit 5eb2808 into druid-io:master Feb 4, 2018
@mistercrunch
Copy link
Member

@betodealmeida the broker may be able to handle some of the coordinator api. I'm not 100% sure but remember hearing that before. We should get to the bottom of it, it'd be great if Superset could also talk only to the broker.

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

Successfully merging this pull request may close these issues.

2 participants