Test on s390x. (#7038)

* Fix && remove unused parameter.
This commit is contained in:
Jiaming Yuan
2021-06-18 14:55:08 +08:00
committed by GitHub
parent 86715e4cd4
commit 7968c0d051
7 changed files with 18 additions and 19 deletions

View File

@@ -29,10 +29,6 @@ struct ArrayInterfaceErrors {
static char const* TypestrFormat() {
return "`typestr' should be of format <endian><type><size of type in bytes>.";
}
// Not supported in Apache Arrow.
static char const* BigEndian() {
return "Big endian is not supported.";
}
static char const* Dimension(int32_t d) {
static std::string str;
str.clear();
@@ -139,7 +135,6 @@ class ArrayInterfaceHandler {
auto typestr = get<String const>(array.at("typestr"));
CHECK(typestr.size() == 3 || typestr.size() == 4) << ArrayInterfaceErrors::TypestrFormat();
CHECK_NE(typestr.front(), '>') << ArrayInterfaceErrors::BigEndian();
if (array.find("shape") == array.cend()) {
LOG(FATAL) << "Missing `shape' field for array interface";
@@ -239,7 +234,6 @@ class ArrayInterfaceHandler {
}
static void* ExtractData(std::map<std::string, Json> const &column,
StringView typestr,
std::pair<size_t, size_t> shape) {
Validate(column);
void* p_data = ArrayInterfaceHandler::GetPtrFromArrayData<void*>(column);
@@ -268,7 +262,7 @@ class ArrayInterface {
std::tie(num_rows, num_cols) = ArrayInterfaceHandler::ExtractShape(array);
data = ArrayInterfaceHandler::ExtractData(
array, StringView{typestr}, std::make_pair(num_rows, num_cols));
array, std::make_pair(num_rows, num_cols));
if (allow_mask) {
common::Span<RBitField8::value_type> s_mask;