Skip to content

Commit

Permalink
test with thrift 0.17 and fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimexist committed Nov 14, 2022
1 parent 94565bc commit d3eeeb4
Show file tree
Hide file tree
Showing 7 changed files with 288 additions and 138 deletions.
2 changes: 1 addition & 1 deletion arrow/src/row/dictionary.rs
Expand Up @@ -260,7 +260,7 @@ unsafe fn decode_fixed<T: FixedLengthEncoding + ToByteSlice>(
.add_buffer(buffer.into());

// SAFETY: Buffers correct length
unsafe { builder.build_unchecked() }
builder.build_unchecked()
}

/// Decodes a `PrimitiveArray` from dictionary values
Expand Down
2 changes: 1 addition & 1 deletion parquet/Cargo.toml
Expand Up @@ -41,7 +41,7 @@ arrow-ipc = { version = "27.0.0", path = "../arrow-ipc", default-features = fals

ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] }
bytes = { version = "1.1", default-features = false, features = ["std"] }
thrift = { version = "0.16", default-features = false }
thrift = { version = "0.17", package = "databend-thrift", default-features = false }
snap = { version = "1.0", default-features = false, optional = true }
brotli = { version = "3.3", default-features = false, features = ["std"], optional = true }
flate2 = { version = "1.0", default-features = false, features = ["rust_backend"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion parquet/src/file/footer.rs
Expand Up @@ -18,7 +18,7 @@
use std::{io::Read, sync::Arc};

use crate::format::{ColumnOrder as TColumnOrder, FileMetaData as TFileMetaData};
use thrift::protocol::TCompactInputProtocol;
use thrift::protocol::{TCompactInputProtocol, TSerializable};

use crate::basic::ColumnOrder;

Expand Down
2 changes: 1 addition & 1 deletion parquet/src/file/page_index/index_reader.rs
Expand Up @@ -23,7 +23,7 @@ use crate::file::page_index::index::{BooleanIndex, ByteArrayIndex, Index, Native
use crate::file::reader::ChunkReader;
use crate::format::{ColumnIndex, OffsetIndex, PageLocation};
use std::io::{Cursor, Read};
use thrift::protocol::TCompactInputProtocol;
use thrift::protocol::{TCompactInputProtocol, TSerializable};

/// Read on row group's all columns indexes and change into [`Index`]
/// If not the format not available return an empty vector.
Expand Down
2 changes: 1 addition & 1 deletion parquet/src/file/serialized_reader.rs
Expand Up @@ -24,7 +24,7 @@ use std::{convert::TryFrom, fs::File, io::Read, path::Path, sync::Arc};

use crate::format::{PageHeader, PageLocation, PageType};
use bytes::{Buf, Bytes};
use thrift::protocol::TCompactInputProtocol;
use thrift::protocol::{TCompactInputProtocol, TSerializable};

use crate::basic::{Encoding, Type};
use crate::column::page::{Page, PageMetadata, PageReader};
Expand Down
2 changes: 1 addition & 1 deletion parquet/src/file/writer.rs
Expand Up @@ -22,7 +22,7 @@ use std::{io::Write, sync::Arc};

use crate::format as parquet;
use crate::format::{ColumnIndex, OffsetIndex, RowGroup};
use thrift::protocol::{TCompactOutputProtocol, TOutputProtocol};
use thrift::protocol::{TCompactOutputProtocol, TOutputProtocol, TSerializable};

use crate::basic::PageType;
use crate::column::writer::{
Expand Down

0 comments on commit d3eeeb4

Please sign in to comment.