Hi everyone I need a sql queries(statements) for g...
# general
j
Hi everyone I need a sql queries(statements) for getting list of tables, table schema and partition details. Please help me with this
g
@Jithendar Do you really need a query ? Are powerful controller APIs to get these details. For eg: curl http//&lt;PINOT CONTROLLER HOST&gt;<PORT>/tables Will get you what you want, have you see the swagger spec ?
j
@guru Thanks for the reply, like in general relational databases, we do have partitions information/information schema queries right for eg:SELECT table_name, subpartition_name, partition_ordinal_position, subpartition_ordinal_position, partition_method, subpartition_method, partition_expression, subpartition_expression, table_rows FROM information_schema.PARTITIONS WHERE table_schema = 'your_database_name' AND table_name = 'your_table_name';
g
Yes, absolutely you get all these results via the APIs, actually even more. What is your use case ? What do you want to do with this data ?