-
Notifications
You must be signed in to change notification settings - Fork 173
fix(csharp/src/Apache.Arrow.Adbc/C): export statement_execute_schema correctly #2409
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
fix(csharp/src/Apache.Arrow.Adbc/C): export statement_execute_schema correctly #2409
Conversation
…ectly from c# exporter try01
lidavidm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
|
This is actually not correct. ExecuteSchema was added in 1.1, for which the exporter doesn't yet have support. |
CurtHagenlocher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not correct. StatementExecuteSchema was not added until ADBC 1.1, for which the native exporter does not yet have support.
| nativeDriver->StatementRelease = StatementReleasePtr; | ||
| nativeDriver->StatementSetSqlQuery = StatementSetSqlQueryPtr; | ||
| nativeDriver->StatementSetSubstraitPlan = StatementSetSubstraitPlanPtr; | ||
| nativeDriver->StatementGetParameterSchema = StatementGetParameterSchemaPtr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fields are deliberately initialized in the order that they are declared in adbc.h to make it easy to compare the two. If you look at that definition, you'll see that StatementGetParameterSchema does indeed come immediately after StatementExecutePartitions and that StatementExecuteSchema doesn't come until the 1.1 section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, I see, thank Curt for the clarification.
|
Ah, sorry, let me put up a revert... |
|
I should also remove myself from the codeowners now that you're around |
…_schema correctly (apache#2409)" This reverts commit 1d268e9.
|
No worries! Thanks for contributing! |
Fix a minor typo,
I think we accidentally forgot to export the
statement_execute_schemahandler from the C# exporter. And mistook StatementGetParameterSchema for it, as they two looked so alike to each other...so, this should restore it, please kindly approve.