kou commented on code in PR #44621:
URL: https://github.com/apache/arrow/pull/44621#discussion_r1836010991
##########
cpp/src/arrow/util/value_parsing_test.cc:
##########
@@ -838,12 +838,21 @@ TEST(TimestampParser, StrptimeZoneOffset) {
std::string format = "%Y-%d-%m %H:%M:%S%z";
auto parser = TimestampParser::MakeStrptime(format);
+ std::vector<std::string> values = {
+ "2018-01-01 00:00:00+0000",
+ "2018-01-01 00:00:00+0100",
+#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) && (__GLIBC__ >= 2) && \
+ (__GLIBC_MINOR__ >= 28)
+ // see https://github.com/apache/arrow/issues/43808
+ "2018-01-01 00:00:00-0117",
+#endif
Review Comment:
Can we enable this for non-glibc cases?
Something like:
```c
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
# if (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 28)
"2018-01-01 00:00:00-0117",
# else
// glibc < 2.28 doesn't support "-0117" timezone offset.
// See also: https://github.com/apache/arrow/issues/43808
# endif
#else
"2018-01-01 00:00:00-0117",
#endif
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]