Skip to content

Commit 2025040

Browse files
committed
Address review comment
1 parent 1067cab commit 2025040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyarrow/src/arrow/python/inference.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class NumPyDtypeUnifier {
337337
int current_type_num() const { return current_type_num_; }
338338

339339
private:
340-
static const char* DatetimeUnitName(NPY_DATETIMEUNIT unit) {
340+
static std::string DatetimeUnitName(NPY_DATETIMEUNIT unit) {
341341
switch (unit) {
342342
case NPY_FR_Y:
343343
return "Y";
@@ -368,7 +368,7 @@ class NumPyDtypeUnifier {
368368
case NPY_FR_GENERIC:
369369
return "generic";
370370
default:
371-
return "unknown";
371+
return "unknown (" + std::to_string(static_cast<int>(unit)) + ")";
372372
}
373373
}
374374

0 commit comments

Comments
 (0)