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

James Duong commented on ARROW-17199:
-------------------------------------

The intent for using DoPut to bind parameters was more geared around using 
parameters for write – it models the behavior of executing a write with an 
array of parameters an ODBC or PreparedStatement.executeBatch() in JDBC.

For the query case the spec is left open as this iteration of the spec did not 
include support for multiple result sets.

> [FlightRPC][C++][Java] Fix example Flight SQL servers
> -----------------------------------------------------
>
>                 Key: ARROW-17199
>                 URL: https://issues.apache.org/jira/browse/ARROW-17199
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, FlightRPC, Java
>            Reporter: David Li
>            Assignee: David Li
>            Priority: Major
>
> There are a number of small bugs in the Java Flight SQL example (e.g. binding 
> parameters to the wrong index, not handling null parameter values, not 
> properly reporting errors) that should be fixed. 
> Also, CommandPreparedStatementQuery is implemented wrong in both C++ and Java 
> servers: only the last parameter value will be bound/executed when executing 
> a prepared statement that returns a result set. But this contradicts the 
> spec, which states "All of the bound parameter sets will be executed as a 
> single atomic execution". The server(s) need to cache the uploaded Arrow data 
> and execute using all input rows.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to