Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 355481943A for ; Wed, 13 Apr 2016 20:24:26 +0000 (UTC) Received: (qmail 54514 invoked by uid 500); 13 Apr 2016 20:24:26 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 54470 invoked by uid 500); 13 Apr 2016 20:24:26 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 54379 invoked by uid 99); 13 Apr 2016 20:24:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 20:24:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 89E7A2C1F68 for ; Wed, 13 Apr 2016 20:24:25 +0000 (UTC) Date: Wed, 13 Apr 2016 20:24:25 +0000 (UTC) From: "Pengcheng Xiong (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-13486) Cast the column type for column masking MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-13486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-13486: ----------------------------------- Affects Version/s: 2.0.0 > Cast the column type for column masking > --------------------------------------- > > Key: HIVE-13486 > URL: https://issues.apache.org/jira/browse/HIVE-13486 > Project: Hive > Issue Type: Sub-task > Components: Security > Affects Versions: 2.0.0 > Reporter: Pengcheng Xiong > Assignee: Pengcheng Xiong > Fix For: 2.1.0 > > Attachments: HIVE-13486.01.patch > > > Quoted from [~jdere] "in the case that getCellValueTransformer() returns a constant value (such as "NULL" to indicate the expression should be null), the resulting data type for that column ends up becoming the constant value NULL, which is different from the original column's type. Might want to add a type check somewhere to make sure the transformed expression and original expression match, or maybe wrap the transformed expression within a CAST to get the types to match." -- This message was sent by Atlassian JIRA (v6.3.4#6332)