drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norris Lee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-1955) C++ Client - Drill client should provide a clean method for detecting query completion in the async API.
Date Thu, 08 Jan 2015 01:28:34 GMT

    [ https://issues.apache.org/jira/browse/DRILL-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268663#comment-14268663
] 

Norris Lee commented on DRILL-1955:
-----------------------------------

Assuming that there's an API to check the query state, calling the listener with a null record
batch should be OK.

> C++ Client - Drill client should provide a clean method for detecting query completion
in the async API.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-1955
>                 URL: https://issues.apache.org/jira/browse/DRILL-1955
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - C++
>            Reporter: Parth Chandra
>            Assignee: Parth Chandra
>
> The C++ client swallows the query_completed status message because it has already signaled
the end of data thru the ls_last_chunk.
> However, it may be too early for the application (or odbc driver) to free resources.
> The API should provide a clean method for detecting the completion of the query. This
may include calling the listener callback one more time with no records, but with the query
state set to completed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message