[ https://issues.apache.org/jira/browse/HIVE-13859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306961#comment-15306961 ]
Hive QA commented on HIVE-13859: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12806808/HIVE-13859.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 13 failed/errored test(s), 10178 tests executed *Failed tests:* {noformat} TestHWISessionManager - did not produce a TEST-*.xml file TestJdbcWithMiniHA - did not produce a TEST-*.xml file TestJdbcWithMiniMr - did not produce a TEST-*.xml file TestOperationLoggingAPIWithTez - did not produce a TEST-*.xml file org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_ivyDownload org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_list_bucket_dml_12 org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_list_bucket_dml_13 org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_stats_list_bucket org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver_constprog_partitioner org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver_index_bitmap3 org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_vector_complex_all org.apache.hadoop.hive.llap.tez.TestConverters.testFragmentSpecToTaskSpec org.apache.hadoop.hive.ql.lockmgr.TestDbTxnManager2.testLocksInSubquery {noformat} Test results: http://ec2-54-177-240-2.us-west-1.compute.amazonaws.com/job/PreCommit-HIVE-MASTER-Build/458/testReport Console output: http://ec2-54-177-240-2.us-west-1.compute.amazonaws.com/job/PreCommit-HIVE-MASTER-Build/458/console Test logs: http://ec2-50-18-27-0.us-west-1.compute.amazonaws.com/logs/PreCommit-HIVE-MASTER-Build-458/ 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: 13 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12806808 - PreCommit-HIVE-MASTER-Build > mask() UDF not retaining day and month field values > --------------------------------------------------- > > Key: HIVE-13859 > URL: https://issues.apache.org/jira/browse/HIVE-13859 > Project: Hive > Issue Type: Bug > Components: UDF > Affects Versions: 2.1.0 > Reporter: Madhan Neethiraj > Fix For: 2.1.0 > > Attachments: HIVE-13859.patch > > > For date type parameters, mask() UDF replaces year/month/day field values > with the values given in arguments to the UDF. Argument value -1 is treated > as special, to specify that mask() should retain the value in the parameter. > This allows to selectively mask only year/month/day fields. > Specifying "-1" does not retain the values for day/month fields; however the > year value is retained, as shown below. > {code} > 0: jdbc:hive2://localhost:10000> select id, join_date from employee where id > < 4; > +-----+-------------+--+ > | id | join_date | > +-----+-------------+--+ > | 1 | 2012-01-01 | > | 2 | 2014-02-01 | > | 3 | 2013-03-01 | > +-----+-------------+--+ > 3 rows selected (0.435 seconds) > 0: jdbc:hive2://localhost:10000> select id, mask(join_date, -1, -1, -1, > -1,-1, -1,-1,-1) join_date from employee where id < 4; > +-----+-------------+--+ > | id | join_date | > +-----+-------------+--+ > | 1 | 2012-01-01 | > | 2 | 2014-01-01 | > | 3 | 2013-01-01 | > +-----+-------------+--+ > 3 rows selected (0.344 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)