You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it appears there are two redundant ways to get the schema of the result set of a prepared statement: either by reading the dataset_schema from the result of CreatePreparedStatement, or by making a separate GetSchema call. However, the two are not equivalent when bind parameters exist; binding a parameter may change the schema of the result set. We should clarify the purpose of these calls in Flight SQL as a result.
Experimentally, the PostgreSQL JDBC driver handles this: if you look at the MetaData before and after binding parameters, the column types will be updated to reflect your parameters.
Component(s)
FlightRPC
The text was updated successfully, but these errors were encountered:
### Rationale for this change
Schemas of result sets and bind parameters are ambiguous in a few cases when they interact.
### What changes are included in this PR?
Add documentation clarifying the expected behavior.
### Are these changes tested?
N/A
### Are there any user-facing changes?
No
* Closes: #37061
Authored-by: David Li <li.davidm96@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
…apache#38549)
### Rationale for this change
Schemas of result sets and bind parameters are ambiguous in a few cases when they interact.
### What changes are included in this PR?
Add documentation clarifying the expected behavior.
### Are these changes tested?
N/A
### Are there any user-facing changes?
No
* Closes: apache#37061
Authored-by: David Li <li.davidm96@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…apache#38549)
### Rationale for this change
Schemas of result sets and bind parameters are ambiguous in a few cases when they interact.
### What changes are included in this PR?
Add documentation clarifying the expected behavior.
### Are these changes tested?
N/A
### Are there any user-facing changes?
No
* Closes: apache#37061
Authored-by: David Li <li.davidm96@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Describe the enhancement requested
Currently it appears there are two redundant ways to get the schema of the result set of a prepared statement: either by reading the
dataset_schema
from the result of CreatePreparedStatement, or by making a separate GetSchema call. However, the two are not equivalent when bind parameters exist; binding a parameter may change the schema of the result set. We should clarify the purpose of these calls in Flight SQL as a result.Experimentally, the PostgreSQL JDBC driver handles this: if you look at the MetaData before and after binding parameters, the column types will be updated to reflect your parameters.
Component(s)
FlightRPC
The text was updated successfully, but these errors were encountered: