Vineet Garg created HIVE-21673:
----------------------------------

             Summary: Casting output of mask udf to string produce different 
result for date type
                 Key: HIVE-21673
                 URL: https://issues.apache.org/jira/browse/HIVE-21673
             Project: Hive
          Issue Type: Bug
            Reporter: Vineet Garg


*Reproducer*

{code:sql}
create table t1(d date);
insert into t1 values('2019-09-08');
select cast(mask(d) as string) from t1;
{code}

*Expected result*
{noformat}
0001-01-01
{noformat}

*Actual Result*
{noformat}
0001-01-03
{noformat}

 



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

Reply via email to