Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-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 A4784174C9 for ; Thu, 23 Apr 2015 18:18:39 +0000 (UTC) Received: (qmail 89312 invoked by uid 500); 23 Apr 2015 18:18:39 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 89224 invoked by uid 500); 23 Apr 2015 18:18:39 -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 89151 invoked by uid 99); 23 Apr 2015 18:18:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 18:18:39 +0000 Date: Thu, 23 Apr 2015 18:18:39 +0000 (UTC) From: "Krystal (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DRILL-1537) C++ Client: Passing the listener context to queryResultListener function 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/DRILL-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Krystal closed DRILL-1537. -------------------------- Close bug as "won't fix" > C++ Client: Passing the listener context to queryResultListener function > ------------------------------------------------------------------------ > > Key: DRILL-1537 > URL: https://issues.apache.org/jira/browse/DRILL-1537 > Project: Apache Drill > Issue Type: Bug > Components: Client - ODBC > Reporter: Alexander Zarei > Fix For: 0.7.0 > > Attachments: Drill-1537-patch-1.diff > > > When submitting queries by the function *SubmitQuery(QueryType t, string& plan, pfnQueryResultsListener l, void\* lCtx)* of drillClientImp class, the listenerContext parameter provides a convenient way of associating returned results with submitted queries. > The way it works is that the calling application passes the context to *SubmitQuery* and when returning results, *processQueryResult* passes the context to the *queryResultListener* callback function. As such, the callback function can associate the returned result with the context. > When we were updating QuerySubmitter example to showcase usage of *SubmitQuery* with context, we noticed *processQueryResult* function does not pass the context directly to the *queryResultListener* callback function; Instead, an instance of DrillClientQueryResult which contains the context as a data member is passed to the *queryResultListener*. This requires the *queryResultListener* function, which is implemented in consumers of the C++ Client, to know about the *DrillClientQueryResult*. > However, *DrillClientQueryResult* is not in the public API of the C++ Client. Two solutions are imaginable at the first glance: First, passing the context instead of a *DrillClientQueryResult*, which we implemented and tested it; Second, moving *DrillClientQueryResult* to the public API; Moving *DrillClientQueryResult* to the public API does not seem to be desirable as it is internal detail for the C++ Client. > I was wondering what your thoughts are on this. > Thanks, > Alex -- This message was sent by Atlassian JIRA (v6.3.4#6332)