Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions cpp/src/arrow/ipc/metadata-internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const std::shared_ptr<DataType> DOUBLE = std::make_shared<DoubleType>();

static Status IntFromFlatbuffer(
const flatbuf::Int* int_data, std::shared_ptr<DataType>* out) {
if (int_data->bitWidth() % 8 != 0) {
return Status::NotImplemented("Integers not in cstdint are not implemented");
}
if (int_data->bitWidth() > 64) {
return Status::NotImplemented("Integers with more than 64 bits not implemented");
}
if (int_data->bitWidth() < 8) {
return Status::NotImplemented("Integers with less than 8 bits not implemented");
}

switch (int_data->bitWidth()) {
case 8:
Expand All @@ -76,8 +76,7 @@ static Status IntFromFlatbuffer(
*out = int_data->is_signed() ? INT64 : UINT64;
break;
default:
*out = nullptr;
break;
return Status::NotImplemented("Integers not in cstdint are not implemented");
}
return Status::OK();
}
Expand Down
2 changes: 1 addition & 1 deletion format/Message.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ table Bit {
}

table Int {
bitWidth: int; // 1 to 64
bitWidth: int; // restricted to 8, 16, 32, and 64 in v1
is_signed: bool;
}

Expand Down