[ https://issues.apache.org/jira/browse/HIVE-13372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15219272#comment-15219272 ]
Hive QA commented on HIVE-13372: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12795770/HIVE-13372.01.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 11 failed/errored test(s), 9878 tests executed *Failed tests:* {noformat} TestSparkCliDriver-groupby3_map.q-sample2.q-auto_join14.q-and-12-more - did not produce a TEST-*.xml file TestSparkCliDriver-groupby_map_ppr_multi_distinct.q-table_access_keys_stats.q-groupby4_noskew.q-and-12-more - did not produce a TEST-*.xml file TestSparkCliDriver-join_rc.q-insert1.q-vectorized_rcfile_columnar.q-and-12-more - did not produce a TEST-*.xml file TestSparkCliDriver-parallel_join0.q-union_remove_9.q-smb_mapjoin_21.q-and-12-more - did not produce a TEST-*.xml file TestSparkCliDriver-ppd_join4.q-join9.q-ppd_join3.q-and-12-more - did not produce a TEST-*.xml file TestSparkCliDriver-timestamp_lazy.q-bucketsortoptimize_insert_4.q-date_udf.q-and-12-more - did not produce a TEST-*.xml file org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver_index_bitmap3 org.apache.hadoop.hive.cli.TestMiniTezCliDriver.org.apache.hadoop.hive.cli.TestMiniTezCliDriver org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_insert_values_tmp_table org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_schema_evol_orc_nonvec_fetchwork_table org.apache.hadoop.hive.metastore.TestHiveMetaStorePartitionSpecs.testGetPartitionSpecs_WithAndWithoutPartitionGrouping {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/7418/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/7418/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-7418/ 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: 11 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12795770 - PreCommit-HIVE-TRUNK-Build > Hive Macro overwritten when multiple macros are used in one column > ------------------------------------------------------------------ > > Key: HIVE-13372 > URL: https://issues.apache.org/jira/browse/HIVE-13372 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 1.2.1 > Reporter: Lin Liu > Assignee: Pengcheng Xiong > Priority: Critical > Attachments: HIVE-13372.01.patch > > > When multiple macros are used in one column, results of the later ones are > over written by that of the first. > For example: > Suppose we have created a table called macro_test with single column x in > STRING type, and with data as: > "a" > "bb" > "ccc" > We also create three macros: > {code} > CREATE TEMPORARY MACRO STRING_LEN(x string) length(x); > CREATE TEMPORARY MACRO STRING_LEN_PLUS_ONE(x string) length(x)+1; > CREATE TEMPORARY MACRO STRING_LEN_PLUS_TWO(x string) length(x)+2; > {code} > When we ran the following query, > {code} > SELECT > CONCAT(STRING_LEN(x), ":", STRING_LEN_PLUS_ONE(x), ":", > STRING_LEN_PLUS_TWO(x)) a > FROM macro_test > SORT BY a DESC; > {code} > We get result: > 3:3:3 > 2:2:2 > 1:1:1 > instead of expected: > 3:4:5 > 2:3:4 > 1:2:3 > Currently we are using Hive 1.2.1, and have applied both HIVE-11432 and > HIVE-12277 patches. -- This message was sent by Atlassian JIRA (v6.3.4#6332)