pinot icon indicating copy to clipboard operation
pinot copied to clipboard

Support for SHOW TABLES and DESCRIBE <tbl_name> Commands

Open MinuraPunchihewa opened this issue 2 years ago • 9 comments

As a user, I would like to be able to issue an equivalent of MySQL's SHOW TABLES and DESCRIBE <tbl_name> commands, to get a list of tables in my cluster and to get metadata about a particular table (such as its columns and their types) respectively.

MinuraPunchihewa avatar Aug 11 '22 18:08 MinuraPunchihewa

Hey folks, I'm new here, may I take this task? :) @npawar

liyujiel avatar Oct 11 '22 21:10 liyujiel

Hey folks, I'm new here, may I take this task? :) @npawar

Thanks! Assigned to you!

xiangfu0 avatar Oct 11 '22 21:10 xiangfu0

I think we may need to support the SQL syntax, cc: @walterddr to confirm we already have all the prerequisites.

xiangfu0 avatar Oct 11 '22 21:10 xiangfu0

see: https://calcite.apache.org/docs/reference.html#ddl-extensions

  • DESCRIBE TABLE <table_name> should be parsable by calcite
  • SHOW TALBES might not be,
    • although we can make it as an alias of DESCRIBE DATABASE "default" since pinot doesn't have a catalog/database concept and it should show the table list

walterddr avatar Oct 11 '22 21:10 walterddr

I'm interested in diving into this one, feels like a good first issue. Might need some time getting acquainted with the code base and calcite.

jonas-grgt avatar Mar 25 '23 10:03 jonas-grgt

Can I take this up? @xiangfu0 @walterddr

aadilkhalifa avatar Feb 27 '24 08:02 aadilkhalifa

@aadilkhalifa Sure, welcome to the community!

Jackie-Jiang avatar Feb 27 '24 22:02 Jackie-Jiang

hi!, I saw this tasty feature and I must have it. Could I please know the status?, if nobody is currently working on it due to too busy schedules, may I please take it? thank you

marregui avatar Mar 22 '24 09:03 marregui

@marregui Hi. I'm working on it here https://github.com/apache/pinot/pull/12537

aadilkhalifa avatar Mar 22 '24 10:03 aadilkhalifa