MCPcopy Create free account
hub / github.com/apache/arrow / is_valid_data_field

Method is_valid_data_field

cpp/src/arrow/acero/asof_join_node.cc:1212–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210 }
1211
1212 static Status is_valid_data_field(const std::shared_ptr<Field>& field) {
1213 switch (field->type()->id()) {
1214 case Type::BOOL:
1215 case Type::INT8:
1216 case Type::INT16:
1217 case Type::INT32:
1218 case Type::INT64:
1219 case Type::UINT8:
1220 case Type::UINT16:
1221 case Type::UINT32:
1222 case Type::UINT64:
1223 case Type::FLOAT:
1224 case Type::DOUBLE:
1225 case Type::DATE32:
1226 case Type::DATE64:
1227 case Type::TIME32:
1228 case Type::TIME64:
1229 case Type::TIMESTAMP:
1230 case Type::STRING:
1231 case Type::LARGE_STRING:
1232 case Type::BINARY:
1233 case Type::LARGE_BINARY:
1234 return Status::OK();
1235 default:
1236 return Status::Invalid("Unsupported type for data field ", field->name(), " : ",
1237 field->type()->ToString());
1238 }
1239 }
1240
1241 /// \brief Make the output schema of an as-of-join node
1242 ///

Callers

nothing calls this directly

Calls 6

OKFunction · 0.50
InvalidFunction · 0.50
idMethod · 0.45
typeMethod · 0.45
nameMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected