Skip to content

Commit

Permalink
fix encoding of int8
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Feb 13, 2023
1 parent 0378b4b commit a575056
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "_pgpq"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
readme = "README.md"
license-file = "LICENSE.txt"
Expand Down
2 changes: 1 addition & 1 deletion pgpq/src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl_encode!(UInt32Encoder, 8, i64::from, BufMut::put_i64);
pub(crate) struct Int8Encoder<'a> {
arr: &'a arrow_array::Int8Array,
}
impl_encode!(Int8Encoder, 2, identity, BufMut::put_i8);
impl_encode!(Int8Encoder, 2, i16::from, BufMut::put_i16);

#[derive(Debug, Clone)]
pub(crate) struct Int16Encoder<'a> {
Expand Down
4 changes: 2 additions & 2 deletions pgpq/tests/snapshots/int8.bin
Git LFS file not shown
3 changes: 0 additions & 3 deletions pgpq/tests/snapshots/int8_nullable.bin

This file was deleted.

0 comments on commit a575056

Please sign in to comment.