You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2017/08/29 12:49:00 UTC
[jira] [Commented] (HIVE-16332) When create a partitioned text
format table with one partition, after we change the format of table to
orc, then the array type field may output error.
[ https://issues.apache.org/jira/browse/HIVE-16332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16145226#comment-16145226 ]
Hive QA commented on HIVE-16332:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12884219/HIVE-16332.1.patch
{color:red}ERROR:{color} -1 due to no test(s) being added or modified.
{color:red}ERROR:{color} -1 due to 6 failed/errored test(s), 11000 tests executed
*Failed tests:*
{noformat}
TestTxnCommandsBase - did not produce a TEST-*.xml file (likely timed out) (batchId=280)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[insert_values_orig_table_use_metadata] (batchId=61)
org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver[spark_vectorized_dynamic_partition_pruning] (batchId=169)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=234)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query23] (batchId=234)
org.apache.hadoop.hive.cli.TestSparkCliDriver.org.apache.hadoop.hive.cli.TestSparkCliDriver (batchId=102)
{noformat}
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6580/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6580/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6580/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 6 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12884219 - PreCommit-HIVE-Build
> When create a partitioned text format table with one partition, after we change the format of table to orc, then the array type field may output error.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-16332
> URL: https://issues.apache.org/jira/browse/HIVE-16332
> Project: Hive
> Issue Type: Bug
> Components: ORC
> Affects Versions: 2.1.1
> Reporter: Zhizhen Hou
> Assignee: Zhizhen Hou
> Priority: Critical
> Labels: patch
> Attachments: HIVE-16332.1.patch
>
>
> ##The step to reproduce the result.
> 1. First crate a text format table with array type field in hive.
> ```
> create table test_text_orc (
> col_int bigint,
> col_text string,
> col_array array<string>,
> col_map map<string, string>
> )
> PARTITIONED BY (
> day string
> )
> ROW FORMAT DELIMITED
> FIELDS TERMINATED BY ','
> collection items TERMINATED BY ']'
> map keys TERMINATED BY ':'
> ;
>
> ```
> 2. Create new text file hive-orc-text-file-array-error-test.txt.
> ```
> 1,text_value1,array_value1]array_value2]array_value3, map_key1:map_value1,map_key2:map_value2
> 2,text_value2,array_value4, map_key1:map_value3
> ,text_value3,, map_key1:]map_key3:map_value3
> ```
> 3. Load the data into one partition.
> ```
> LOAD DATA local INPATH '.hive-orc-text-file-array-error-test.txt' overwrite into table test_text_orc partition(day=20170329)
> ```
> 4. select the data to verify the result.
> ```
> hive> select * from test.test_text_orc;
> OK
> 1 text_value1 ["array_value1","array_value2","array_value3"] {" map_key1":"map_value1","map_key2":"map_value2"} 20170329
> 2 text_value2 ["array_value4"] {"map_key1":"map_value3"} 20170329
> NULL text_value3 [] {" map_key1":"","map_key3":"map_value3"} 20170329
> ```
> 5. Alter table format of table to orc;
> ```
> alter table test_text_orc set fileformat orc;
> ```
> 6. Check the result again, and you can see the error result.
> ```
> hive> select * from test.test_text_orc;
> OK
> 1 text_value1 ["array_value1","array_value2","array_value3"] {" map_key1":"map_value1","map_key2":"map_value2"} 20170329
> 2 text_value2 ["array_value4","array_value2","array_value3"] {"map_key1":"map_value3"} 20170329
> NULL text_value3 ["array_value4","array_value2","array_value3"] {"map_key3":"map_value3"," map_key1":""} 20170329
> ```
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)