drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parth Chandra (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:07:34 GMT

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

Parth Chandra commented on DRILL-1955:
--------------------------------------

So calling the listener with NULLS should be OK? There is no record batch to return and there
is no error, so I would rather return NULLS.
Also, an API to check the query state is probably a good idea.



> 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