Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Dec 30, 2025

Rationale for this change

Clarify that IsAutoUnique() correctly maps to both ODBC 2.0 (AUTO_INCREMENT) and ODBC 3.0+ (AUTO_UNIQUE_VALUE) concepts, resolving a TODO comment.

Reference: https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlgettypeinfo-function?view=sql-server-ver17

What changes are included in this PR?

Replace the todo to the explanation of the equivalence.

Are these changes tested?

No, I did not test.

Are there any user-facing changes?

No, dev-only.

@lidavidm
Copy link
Member

CC @alinaliBQ

@HyukjinKwon HyukjinKwon changed the title MINOR: [C++][FlightRPC][ODBC] Clarify IsAutoUnique equivalence between ODBC 2.0 and 3.0+ MINOR: [C++][FlightRPC] Clarify IsAutoUnique equivalence between ODBC 2.0 and 3.0+ Jan 2, 2026
Copy link
Contributor

@alinaliBQ alinaliBQ left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +225 to +227
// AUTO_UNIQUE_VALUE (ODBC 3.0+) is equivalent to
// AUTO_INCREMENT (ODBC 2.0). Both indicate columns
// that automatically generate unique values.
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes the statement is correct.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jan 2, 2026
@lidavidm lidavidm merged commit 582d99c into apache:main Jan 3, 2026
48 of 49 checks passed
@lidavidm lidavidm removed the awaiting committer review Awaiting committer review label Jan 3, 2026
@github-actions github-actions bot added the awaiting merge Awaiting merge label Jan 3, 2026
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 582d99c.

There weren't enough matching historic benchmark results to make a call on whether there were regressions.

The full Conbench report has more details.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants