Skip to content

fix: use int2 for arrow 8-bit int#311

Merged
mjgarton merged 1 commit intomasterfrom
fix/use-int2-for-8-bit-int
Mar 24, 2026
Merged

fix: use int2 for arrow 8-bit int#311
mjgarton merged 1 commit intomasterfrom
fix/use-int2-for-8-bit-int

Conversation

@sunng87
Copy link
Member

@sunng87 sunng87 commented Mar 24, 2026

This is an issue reported by greptimedb user. I was using CHAR type for 8-bit integer because there is no native 8-bit int in postgres. This is actually a special "CHAR" type to represent 8-bit integers in postgres, however, that's not exact same as CHAR.

Using CHAR for arrow 8-bit integer causes some client driver to treat the number as a string.

This patch update it to use int2.

@sunng87 sunng87 requested a review from mjgarton March 24, 2026 09:24
@mjgarton mjgarton merged commit 83d9fdf into master Mar 24, 2026
7 checks passed
@mjgarton mjgarton deleted the fix/use-int2-for-8-bit-int branch March 24, 2026 09:52
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