phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Soldatov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-4436) Hive PhoenixStorageHandler doesn't work well with quoted namespace/table name.
Date Tue, 05 Dec 2017 09:17:00 GMT

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

Sergey Soldatov updated PHOENIX-4436:
-------------------------------------
    Attachment: PHOENIX-4436.patch

> Hive PhoenixStorageHandler doesn't work well with quoted namespace/table name. 
> -------------------------------------------------------------------------------
>
>                 Key: PHOENIX-4436
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4436
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.13.0, 4.14.0
>            Reporter: Sergey Soldatov
>            Assignee: Sergey Soldatov
>              Labels: HivePhoenix
>         Attachments: PHOENIX-4436.patch
>
>
> With quoted schema name the table will be created, but not usable with an exception about
'\' character. The reason is that job properties in Hive are stored using escaped java strings.
So to correctly handle it we need to unescape. 
> For quoted name the table creation would fail because we are using table name in PK name
prefixed by 'pk_'. So the PK name comes incorrect like 'pk_"table_name"'. I think that there
is no reason to generate constraint pk name and we may use the constant. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message