Skip to content

Conversation

@felipecrv
Copy link
Contributor

No description provided.

@felipecrv felipecrv requested a review from zeroshade as a code owner July 25, 2025 14:22
@github-actions github-actions bot added this to the ADBC Libraries 20 milestone Jul 25, 2025
func FlightSQLDriverInit(version C.int, rawDriver *C.void, err *C.struct_AdbcError) C.AdbcStatusCode {
// For backwards compatibility
return AdbcDriverFlightsqlInit(version, rawDriver, err)
return AdbcDriverFlightSQLInit(version, rawDriver, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zeroshade do I have to update mentions of the AdbcDriverFlightsqlInit string in other drivers?

$ git grep --name-only AdbcDriverFlightsqlInit
c/driver/flightsql/sqlite_flightsql_test.cc
c/include/arrow-adbc/driver/flightsql.h
c/integration/static_test/main.c
csharp/src/Drivers/Interop/FlightSql/FlightSqlDriverLoader.cs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well... C# interop tests tell me yes :)

Copy link
Member

Choose a reason for hiding this comment

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

yea, the generation should be fixed so that it doesn't change driver.go to AdbcDriverFlightSQLInit and keeps it as AdbcDriverFlightsqlInit which is what is failing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The 3 spellings of SQL:

  • SQL
  • sql
  • Sql

// For backwards compatibility
return AdbcDriverFlightsqlInit(version, driver, error);
}

Copy link
Contributor Author

@felipecrv felipecrv Jul 25, 2025

Choose a reason for hiding this comment

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

The changes to init.go were needed to compensate for this removal of code that was previously manually added to this auto-generated C file.

@felipecrv felipecrv changed the title chore(go/adbc/pkg): Run make regeneate to keep generated code in sync with templates chore(go/adbc/pkg): Run make regenerate to keep generated code in sync with templates Jul 25, 2025
@felipecrv felipecrv changed the title chore(go/adbc/pkg): Run make regenerate to keep generated code in sync with templates fix(go/adbc/pkg): Run make regenerate to keep generated code in sync with templates Jul 25, 2025
@zeroshade zeroshade merged commit 38dc738 into apache:main Jul 25, 2025
67 of 68 checks passed
@felipecrv felipecrv deleted the regenerate branch July 25, 2025 15:47
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.

2 participants