You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Steve Yeom (JIRA)" <ji...@apache.org> on 2018/01/10 18:30:00 UTC
[jira] [Comment Edited] (HIVE-18379) ALTER TABLE authorization_part
SET PROPERTIES ("PARTITIONL_LEVEL_PRIVILEGE"="TRUE"); fails when
authorization_part is MicroManaged table.
[ https://issues.apache.org/jira/browse/HIVE-18379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320765#comment-16320765 ]
Steve Yeom edited comment on HIVE-18379 at 1/10/18 6:29 PM:
------------------------------------------------------------
Hey Sergey..
"ALTER TABLE authorization_part SET PROPERTIES ("PARTITIONL_LEVEL_PRIVILEGE"="TRUE");" is the statement
and this statement simply fails since this isToInsertOnlyTable() returns non-null object.
So for an alter statement case like the above has null value for 'transactional' and 'transactionalProp' in isToInsertOnlyTable().
You are right. The conditional statement "If (transactional == null)" may be sufficient.
But I just used the existing logic of checking both and changed the location of the statement.
Was little bit cautious: did not want to change the existing behavior but wanted to fix the issue
found with this defect.
was (Author: steveyeom2017):
Hey Sergey..
"ALTER TABLE authorization_part SET PROPERTIES ("PARTITIONL_LEVEL_PRIVILEGE"="TRUE");" is the statement
and this statement simply fails since this isToInsertOnlyTable() returns non-null object.
So for an alter statement case like the above has null value for 'transactional' and 'transactionalProp' in isToInsertOnlyTable().
You are right. The conditional statement "If (transactional == null)" may be sufficient.
But I just used the existing logic of checking both and changed the location of the statement.
> ALTER TABLE authorization_part SET PROPERTIES ("PARTITIONL_LEVEL_PRIVILEGE"="TRUE"); fails when authorization_part is MicroManaged table.
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-18379
> URL: https://issues.apache.org/jira/browse/HIVE-18379
> Project: Hive
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 3.0.0
> Reporter: Steve Yeom
> Assignee: Steve Yeom
> Priority: Minor
> Attachments: HIVE-18379.01.patch, HIVE-18379.02.patch, HIVE-18379.03.patch, HIVE-18379.04.patch
>
>
> ALTER TABLE authorization_part SET TBLPROPERTIES ("PARTITION_LEVEL_PRIVILEGE"="TRUE") fails when authorization_part is a Micromanaged table.
> This is from authorization_2.q qtest.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)