[jira] [Comment Edited] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-10-15 Thread baotuquan (Jira)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16952416#comment-16952416
 ] 

baotuquan edited comment on IMPALA-8738 at 10/16/19 1:21 AM:
-

https://gerrit.cloudera.org/#/c/14422/
[~twmarshall][~grahn][~stigahuang] I submitted the code for this question. 
Could you have time to do code review? Thank you


was (Author: baotuquan):
https://gerrit.cloudera.org/#/c/14422/

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Comment Edited] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-10-15 Thread baotuquan (Jira)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16952416#comment-16952416
 ] 

baotuquan edited comment on IMPALA-8738 at 10/16/19 1:16 AM:
-

https://gerrit.cloudera.org/#/c/14422/


was (Author: baotuquan):
https://gerrit.cloudera.org/#/c/14422/

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Comment Edited] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-10-15 Thread baotuquan (Jira)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16952416#comment-16952416
 ] 

baotuquan edited comment on IMPALA-8738 at 10/16/19 1:16 AM:
-

https://gerrit.cloudera.org/#/c/14422/


was (Author: baotuquan):
https://gerrit.cloudera.org/#/c/14422/

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Commented] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-10-15 Thread baotuquan (Jira)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16952416#comment-16952416
 ] 

baotuquan commented on IMPALA-8738:
---

https://gerrit.cloudera.org/#/c/14422/

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Work started] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-08-09 Thread baotuquan (JIRA)


 [ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on IMPALA-8738 started by baotuquan.
-
> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Commented] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-08-08 Thread baotuquan (JIRA)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16903509#comment-16903509
 ] 

baotuquan commented on IMPALA-8738:
---

Ok. Use the same command as hive  'SHOW EXTENDED TABLES';
The result has two columns, name and table_type;

Name:  is the name of the table or view.
Table_type:  [VIRTUAL_VIEW | MANAGED_TABLE | EXTERNL_TABLE ]

 

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Commented] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-08-02 Thread baotuquan (JIRA)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16898646#comment-16898646
 ] 

baotuquan commented on IMPALA-8738:
---

The show views and show tables commands have some duplicate functionality and 
may mislead newcomers from naming.
There is a similar command in impala, describe extended tables.
So I prefer to use show extended tables or show tables extended.

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Commented] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-07-31 Thread baotuquan (JIRA)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16896821#comment-16896821
 ] 

baotuquan commented on IMPALA-8738:
---

I listed the show tables commands in mysql, hive, and impala.
 It seems that impala and mysql are more similar in syntax on the show tables 
command.

Hive 
 Hive has two commands "show tables;" and "show views;"; 
 respectively returns the table name and view name in the current database.

MySQL 5.7.22
{code:java}
mysql> help show tables;
Syntax:
SHOW [FULL] TABLES 
[{FROM | IN} db_name]
[LIKE 'pattern' | WHERE expr]

mysql> show full tables;
+++
| Tables_in_testdb   | Table_type |
+++
| user   | BASE TABLE |
| v_user | VIEW   |
+++
{code}

Impala3.2
{code:java}
SHOW TABLES
SHOW TABLES "pattern"
SHOW TABLES LIKE "pattern"
SHOW TABLES IN database
SHOW TABLES IN database "pattern"
SHOW TABLES IN database LIKE "pattern"
{code}

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Commented] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-07-27 Thread baotuquan (JIRA)


[ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16894317#comment-16894317
 ] 

baotuquan commented on IMPALA-8738:
---

{{> describe extended }}

{{There is a "Table Type" in the return value, the value can be 
"VIRTUAL_VIEW","MANAGED_TABLE" or "EXTERNL_TABLE"}}

{{So I need to first get the table name through "show tables", and then recycle 
the type corresponding to each table name.The function can be implemented, but 
it is not efficient if there are many tables.}}

{{What do you think of making an extension to the command "show table"?}}{{  
The return value are fields those are in both the properties of table and 
view.}}

For example "show extended tables".

>show extended tables;
+---+
| name   | table type   |
+---+
| table1 |  MANAGED_TABLE   |  
| table2 |  EXTERNAL_TABLE  |
| view1  |  VIRTUAL_VIEW|
+---+
 

 

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org



[jira] [Assigned] (IMPALA-8738) Add a column representing the type(table or view) in the show tables output

2019-07-03 Thread baotuquan (JIRA)


 [ 
https://issues.apache.org/jira/browse/IMPALA-8738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

baotuquan reassigned IMPALA-8738:
-

Assignee: baotuquan

> Add a column representing the type(table or view) in the show tables output
> ---
>
> Key: IMPALA-8738
> URL: https://issues.apache.org/jira/browse/IMPALA-8738
> Project: IMPALA
>  Issue Type: Improvement
>  Components: Catalog, Frontend
>Reporter: baotuquan
>Assignee: baotuquan
>Priority: Minor
>  Labels: features
>
> Now the output of the +*show tables*+ command in the system is as follows:
> {code:java}
> default> show tables;
> Query: show tables
> +--+
> | name |
> +--+
> | table1 |
> | view1 |
> +--+
> {code}
> I think we should add a column for the representation type,The output should 
> be like this
> {code:java}
> default> show tables;
> Query: show tables
> +---+
> | name | type |
> ++
> | table1 |  table   |
> | view1 |   view   |
> ++
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org