[ 
https://issues.apache.org/jira/browse/KUDU-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16495699#comment-16495699
 ] 

Shriya Gupta edited comment on KUDU-2459 at 5/30/18 9:23 PM:
-------------------------------------------------------------

Proposed solution: 

There's 2 ways to tackle this. Either we extract an Impala conforming tablename 
from given Kudu tablename or give it a standard placeholder name for users to 
replace with what they need.

Extracting a name can be achieved by string manipulation (for example by 
considering only the last after-decimal portion of Kudu tablename, or ignoring 
the decimal in the tablename), however it will result in a name that wouldn't 
match the original name and may be non-intuitive for most users.

Using a standard placeholder name would clearly communicate the need to update 
this name to user-desired name, while maintaining consistency with Impala 
naming conventions.


was (Author: shriya_gupta):
Proposed solution: 

There's 2 ways to tackle this. Either we extract an Impala conforming tablename 
from given Kudu tablename or give it a standard placeholder name for users to 
replace with what they need. 

Extracting a name can be achieved by string manipulation (for example by 
considering only the last after-decimal portion of Kudu tablename, or ignoring 
the decimal in the tablename), however it will result in a name thatwouldn't 
match the original name and may be non-intuitive.

Using a standard placeholder name would clearly communicate the need to update 
this name to user-desired name, while maintaining consistency with Impala 
naming conventions.

> Impala 'Create Table' Statement under Web UI doesn't account for non-Impala 
> conforming tablenames
> -------------------------------------------------------------------------------------------------
>
>                 Key: KUDU-2459
>                 URL: https://issues.apache.org/jira/browse/KUDU-2459
>             Project: Kudu
>          Issue Type: Bug
>          Components: ui
>    Affects Versions: 1.7.0
>            Reporter: Shriya Gupta
>            Assignee: Shriya Gupta
>            Priority: Major
>         Attachments: Screen Shot 2018-05-30 at 4.45.12 PM.png
>
>
> Under the Tables section of Kudu Web UI, for a selected table, the table 
> metrics display a CREATE TABLE statement that can be run to make Impala 
> cognizant of that table. However, in generation of this statement, the table 
> name tries to match the original Kudu tablename which may not always be 
> acceptable as a tablename for Impala. For example, Kudu accepts dot in 
> tablename, Impala does not. 
> A statement like the following throws an invalid tablename error in Impala – 
> !Screen Shot 2018-05-30 at 4.45.12 PM.png|width=606,height=321!  



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

Reply via email to