Skip to content

Conversation

@albertli-msft
Copy link
Contributor

@albertli-msft albertli-msft commented Jan 5, 2025

Fix a minor typo,

I think we accidentally forgot to export the statement_execute_schema handler 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.

@github-actions github-actions bot modified the milestone: ADBC Libraries 16 Jan 5, 2025
@albertli-msft albertli-msft changed the title [C#] chore. fix a minor typo: export statement_execute_schema pointer corr… fix(csharp): a minor typo: export statement_execute_schema pointer corr… Jan 5, 2025
@albertli-msft albertli-msft changed the title fix(csharp): a minor typo: export statement_execute_schema pointer corr… fix(csharp): a minor typo: export statement_execute_schema pointer corr… Jan 5, 2025
@lidavidm lidavidm changed the title fix(csharp): a minor typo: export statement_execute_schema pointer corr… fix(csharp/src/Apache.Arrow.Adbc/C): export statement_execute_schema correctly Jan 6, 2025
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@lidavidm lidavidm merged commit 1d268e9 into apache:main Jan 6, 2025
8 of 12 checks passed
@CurtHagenlocher
Copy link
Contributor

This is actually not correct. ExecuteSchema was added in 1.1, for which the exporter doesn't yet have support.

Copy link
Contributor

@CurtHagenlocher CurtHagenlocher left a 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;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@lidavidm
Copy link
Member

lidavidm commented Jan 6, 2025

Ah, sorry, let me put up a revert...

@lidavidm
Copy link
Member

lidavidm commented Jan 6, 2025

I should also remove myself from the codeowners now that you're around

lidavidm added a commit to lidavidm/arrow-adbc that referenced this pull request Jan 6, 2025
@lidavidm
Copy link
Member

lidavidm commented Jan 6, 2025

#2411

@albertli-msft
Copy link
Contributor Author

Ah, sorry, let me put up a revert...
😬sorry for the troubles

CurtHagenlocher pushed a commit that referenced this pull request Jan 6, 2025
@CurtHagenlocher
Copy link
Contributor

😬sorry for the troubles

No worries! Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants