[ https://issues.apache.org/jira/browse/DRILL-7138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arina Ielchiieva updated DRILL-7138: ------------------------------------ Description: As part of schema provisioning project, it will be handy for the user to see if table has schema and its content. Command syntax: *describe schema for table dfs.tmp.`text_table`* By default schema will be output in JSON format (format schema is stored in .drill.schema file): {noformat} { "table" : "dfs.tmp.`text_table`", "schema" : { "columns" : [ { "name" : "id", "type" : "INT", "mode" : "OPTIONAL" } ] }, "version" : 1 } {noformat} JSON format can be indicated explicitly: *describe schema for table dfs.tmp.`text_table` JSON* Other formats: STATEMENT - schema will be output in the form of CREATE SCHEMA statement. was: As part of schema provisioning project, it will be handy for the user to see if table has schema and its content. Command syntax: *describe schema for table dfs.tmp.`text_table`* By default schema will be output in JSON format (format schema is stored in .drill.schema file): {noformat} { "table" : "dfs.tmp.`text_table`", "schema" : { "columns" : [ { "name" : "id", "type" : "INT", "mode" : "OPTIONAL" } ] }, "version" : 1 } {noformat} JSON format can be indicated explicitly: *describe schema for table dfs.tmp.`text_table` as JSON* Other formats: STATEMENT - schema will be output in the form of CREATE SCHEMA statement. > Implement command to show schema for table > ------------------------------------------ > > Key: DRILL-7138 > URL: https://issues.apache.org/jira/browse/DRILL-7138 > Project: Apache Drill > Issue Type: Sub-task > Reporter: Arina Ielchiieva > Assignee: Arina Ielchiieva > Priority: Major > Fix For: 1.16.0 > > > As part of schema provisioning project, it will be handy for the user to see > if table has schema and its content. > Command syntax: > *describe schema for table dfs.tmp.`text_table`* > By default schema will be output in JSON format (format schema is stored in > .drill.schema file): > {noformat} > { > "table" : "dfs.tmp.`text_table`", > "schema" : { > "columns" : [ > { > "name" : "id", > "type" : "INT", > "mode" : "OPTIONAL" > } > ] > }, > "version" : 1 > } > {noformat} > JSON format can be indicated explicitly: > *describe schema for table dfs.tmp.`text_table` JSON* > Other formats: > STATEMENT - schema will be output in the form of CREATE SCHEMA statement. -- This message was sent by Atlassian JIRA (v7.6.3#76005)