-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Java][FlightRPC] Flight SQL JDBC driver parameter getting an exception: parameter ordinal 1 out of range #40118
Comments
Duplicate of #33475 This was fixed in 15.0.0, can you upgrade and try again? |
Have tried it with 15.0.0 and it's has the same issue |
Can you post all the details with 15.0.0 (stack trace, versions, etc)? |
Sir, the error is still the same and the code is exactly the same, if you want I can repaste in here again , including the exception details. I can even add the project it self if needed. Which I will do. |
I'm just asking for the stack trace, so I can take a quick look. While the project is appreciated, I don't have the time to build this from scratch. |
|
Is the server implementation actually returning a parameter schema? |
all the column names are back other than that IDK, can you point me where to look please? |
What server implementation are you using? It needs to fill in the parameter_schema in the CreatePreparedStatement response Lines 1524 to 1549 in a03d957
|
Seems like it's empty: The calcite oriented db var preparedStatementResult = new ActionCreatePreparedStatementResult
{
DatasetSchema = schema.ToByteString(),
ParameterSchema = ByteString.Empty, |
The server needs to return the schema so that the driver knows how many and what type the parameters are. We could perhaps improve the error message on the client, or assume what the type/number of parameters are based on what the client does, but that is a duplicate of #38585 |
I understand and already opened an issue in our code base, really appreciate you assistance. Awesome responsiveness. |
Sounds good. I'll leave this open and link it in that issue to track the error message improvement. |
Describe the bug, including details regarding any error messages, version, and platform.
Getting this exception
My code:
Component(s)
Java
The text was updated successfully, but these errors were encountered: