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 05BAE200D37 for ; Thu, 9 Nov 2017 10:36:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 041FF160BEF; Thu, 9 Nov 2017 09:36:32 +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 428BF1609E5 for ; Thu, 9 Nov 2017 10:36:31 +0100 (CET) Received: (qmail 28541 invoked by uid 500); 9 Nov 2017 09:36:30 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 28532 invoked by uid 99); 9 Nov 2017 09:36:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2017 09:36:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5958BDFC27; Thu, 9 Nov 2017 09:36:30 +0000 (UTC) From: ravipesala To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org References: In-Reply-To: Subject: [GitHub] carbondata pull request #1473: [WIP]Event listener added Content-Type: text/plain Message-Id: <20171109093630.5958BDFC27@git1-us-west.apache.org> Date: Thu, 9 Nov 2017 09:36:30 +0000 (UTC) archived-at: Thu, 09 Nov 2017 09:36:32 -0000 Github user ravipesala commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1473#discussion_r149906040 --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/CleanFilesCommand.scala --- @@ -46,12 +47,23 @@ case class CleanFilesCommand( val relation = catalog .lookupRelation(databaseNameOp, tableName)(sparkSession).asInstanceOf[CarbonRelation] val carbonTable = relation.tableMeta.carbonTable + val operationContext = new OperationContext + val cleanFilesPreEvent: CleanFilesPreEvent = + CleanFilesPreEvent(carbonTable, + sparkSession) + OperationListenerBus.getInstance.fireEvent(cleanFilesPreEvent, operationContext) --- End diff -- Add one more overload method OperationListenerBus.getInstance.fireEvent(cleanFilesPreEvent) with no operationContext ---