Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0FAFF200BD4 for ; Fri, 16 Dec 2016 08:26:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0934B160B24; Fri, 16 Dec 2016 07:26:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 560DB160AF6 for ; Fri, 16 Dec 2016 08:26:01 +0100 (CET) Received: (qmail 58550 invoked by uid 500); 16 Dec 2016 07:25:58 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 58532 invoked by uid 99); 16 Dec 2016 07:25:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2016 07:25:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6308B2C0087 for ; Fri, 16 Dec 2016 07:25:58 +0000 (UTC) Date: Fri, 16 Dec 2016 07:25:58 +0000 (UTC) From: "Nagarajan Chinnasamy (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (DRILL-5132) Context based dynamic parameterization of views MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 16 Dec 2016 07:26:02 -0000 [ https://issues.apache.org/jira/browse/DRILL-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15753692#comment-15753692 ] Nagarajan Chinnasamy edited comment on DRILL-5132 at 12/16/16 7:24 AM: ----------------------------------------------------------------------- This feature will particularly be useful for data isolation / data protection with *jdbc storage plugins* where drill-authenticated-credentials are not used for jdbc connection authentication (like in MapR-DB). A jdbc storage has hard-coded, shared credentials. Hence the the responsibility of data isolation / data protection lies with Views themselves. Hence, the need for built-in support of context based dynamic filtering in Views. was (Author: nagarajanchinnasamy): This feature will particularly be useful for data isolation / data protection with *jdbc storage plugins* where drill-authenticated-credentials are not used for jdbc connection authentication (like in MapR-DB). A jdbc storage has hard-coded, shared credentials. Hence the the responsibility of data isolation / data protection lies with Views themselves. > Context based dynamic parameterization of views > ----------------------------------------------- > > Key: DRILL-5132 > URL: https://issues.apache.org/jira/browse/DRILL-5132 > Project: Apache Drill > Issue Type: Wish > Components: Server > Reporter: Nagarajan Chinnasamy > Priority: Critical > Labels: authentication, context, isolation, jdbcstorage, multi-tenancy > > Its known that Views in SQL cannot have dynamic parameters/variables. Please refer to [Justin Swanhart|http://stackoverflow.com/users/679236/justin-swanhart]'s response to [this SO question|http://stackoverflow.com/questions/2281890/can-i-create-view-with-parameter-in-mysql] in handling dynamic parameterization of views. > [The PR #685|https://github.com/apache/drill/pull/685] [DRILL-5043|https://issues.apache.org/jira/browse/DRILL-5043?filter=-2] originated based on this requirement so that we could build views that can dynamically filter records based on some dynamic values (like current tenant-id, user role etc.) > *Since Drill's basic unit is a View... having such built-in support can bring in dynamism into the whole game.* > This feature can be utilized for: > * *Data Isolation in Shared Multi-Tenant environments* based on Custom Tenant Discriminator Column > * *Data Protection in building Chained Views* with Custom Dynamic Filters > I will post further design details in the comments.... -- This message was sent by Atlassian JIRA (v6.3.4#6332)