We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1067cab commit 2025040Copy full SHA for 2025040
python/pyarrow/src/arrow/python/inference.cc
@@ -337,7 +337,7 @@ class NumPyDtypeUnifier {
337
int current_type_num() const { return current_type_num_; }
338
339
private:
340
- static const char* DatetimeUnitName(NPY_DATETIMEUNIT unit) {
+ static std::string DatetimeUnitName(NPY_DATETIMEUNIT unit) {
341
switch (unit) {
342
case NPY_FR_Y:
343
return "Y";
@@ -368,7 +368,7 @@ class NumPyDtypeUnifier {
368
case NPY_FR_GENERIC:
369
return "generic";
370
default:
371
- return "unknown";
+ return "unknown (" + std::to_string(static_cast<int>(unit)) + ")";
372
}
373
374
0 commit comments