mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
The mask functions in Hive are implemented through GenericUDFs which can accept an infinite number of function signatures. Impala currently don't support GenericUDFs. So we provide builtin mask functions with limited overloads. This patch adds some missing overloads that could be used by Ranger default masking policies, e.g. MASK_HASH, MASK_SHOW_LAST_4, MASK_DATE_SHOW_YEAR, etc. Tests: - Add test coverage on all default masking policies applied on all supported types. Change-Id: Icf3e70fd7aa9f3b6d6b508b776696e61ec1fcc2e Reviewed-on: http://gerrit.cloudera.org:8080/16930 Reviewed-by: Quanlong Huang <huangquanlong@gmail.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>