You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Rajkumar Singh (Jira)" <ji...@apache.org> on 2020/01/07 03:04:00 UTC
[jira] [Commented] (HIVE-22699) Mask UDFs should mask numeric value
0
[ https://issues.apache.org/jira/browse/HIVE-22699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009325#comment-17009325 ]
Rajkumar Singh commented on HIVE-22699:
---------------------------------------
Hi [~stigahuang] can you please let me know what documentation you are referring here? what's the hive version you are using to repro the test? I did try on hive-3.1 and for me its working as expected
{code:java}
// select mask('ABC-abc-0000123');
+------------------+
| _c0 |
+------------------+
| XXX-xxx-nnnnnnn |
+------------------+
{code}
> Mask UDFs should mask numeric value 0
> -------------------------------------
>
> Key: HIVE-22699
> URL: https://issues.apache.org/jira/browse/HIVE-22699
> Project: Hive
> Issue Type: Bug
> Reporter: Quanlong Huang
> Priority: Major
>
> These queries all return 0:
> {code:java}
> select mask(0);
> select mask_first_n(0);
> select mask_last_n(0);
> select mask_show_first_n(0, 0);
> select mask_show_last_n(0, 0);{code}
> According to the doc, they should return 1.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)