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

Attila Magyar commented on HIVE-21666:
--------------------------------------

[~tlipcon], alter table goes through the same validation
{code:java}
> create table aaa(key int) stored as orc;
> ALTER TABLE aaa SET TBLPROPERTIES ('transactional_properties'='insert_only');
Error: Error while processing statement: FAILED: Execution Error, return code 1 
from org.apache.hadoop.hive.ql.exec.DDLTask. Cannot set 
'transactional_properties' to 'insert_only' without setting 'transactional' to 
'true' (state=08S01,code=1){code}
 

> Bad behavior with 'insert_only' property on non-transactional table
> -------------------------------------------------------------------
>
>                 Key: HIVE-21666
>                 URL: https://issues.apache.org/jira/browse/HIVE-21666
>             Project: Hive
>          Issue Type: Bug
>          Components: Transactions
>            Reporter: Todd Lipcon
>            Assignee: Attila Magyar
>            Priority: Major
>
> I created a table with 'transactional_properties'='insert_only' but didn't 
> specify 'transactional'='TRUE'. I was able to insert into this table, but 
> when I tried to query it, I got a NumberFormatException since it appears the 
> insert path used a non-transactional layout while the read path expected one.



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

Reply via email to