You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2013/12/20 18:48:31 UTC

[jira] [Updated] (HIVE-6083) User provided table properties are not assigned to the TableDesc of the FileSinkDesc in a CTAS

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

Yin Huai updated HIVE-6083:
---------------------------

    Attachment: HIVE-6083.1.patch.txt

an initial patch. Let me trigger hive qa to see if any test case is affected. I am also thinking about how to test it...

> User provided table properties are not assigned to the TableDesc of the FileSinkDesc in a CTAS
> ----------------------------------------------------------------------------------------------
>
>                 Key: HIVE-6083
>                 URL: https://issues.apache.org/jira/browse/HIVE-6083
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.12.0, 0.13.0
>            Reporter: Yin Huai
>         Attachments: HIVE-6083.1.patch.txt
>
>
> I was trying to use a CTAS query to create a table stored with ORC and orc.compress was set to SNAPPY. However, the table was still compressed as ZLIB (although the result of DESCRIBE still shows that this table is compressed by SNAPPY). For a CTAS query, SemanticAnalyzer.genFileSinkPlan uses CreateTableDesc to generate the TableDesc for the FileSinkDesc by calling PlanUtils.getTableDesc. However, in PlanUtils.getTableDesc, I do not see user provided table properties are assigned to the returned TableDesc (CreateTableDesc.getTblProps was not called in this method ).  
> btw, I only checked the code of 0.12 and trunk.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)