rok commented on a change in pull request #10610:
URL: https://github.com/apache/arrow/pull/10610#discussion_r702989021



##########
File path: cpp/src/arrow/compute/api_scalar.h
##########
@@ -278,6 +279,31 @@ struct ARROW_EXPORT DayOfWeekOptions : public 
FunctionOptions {
   uint32_t week_start;
 };
 
+/// Used to control timestamp timezone conversion and handling 
ambiguous/nonexistent
+/// times.
+struct ARROW_EXPORT AssumeTimezoneOptions : public FunctionOptions {
+ public:
+  /// How to interpret ambiguous local times that can be interpreted as
+  /// multiple instants due to DST shifts.
+  enum Ambiguous { AMBIGUOUS_RAISE, AMBIGUOUS_EARLIEST, AMBIGUOUS_LATEST };
+
+  /// How to handle local times that do not exists due to DST shifts.
+  enum Nonexistent { NONEXISTENT_RAISE, NONEXISTENT_EARLIEST, 
NONEXISTENT_LATEST };
+
+  explicit AssumeTimezoneOptions(std::string timezone,
+                                 Ambiguous ambiguous = AMBIGUOUS_RAISE,
+                                 Nonexistent nonexistent = NONEXISTENT_RAISE);
+  AssumeTimezoneOptions();
+  constexpr static char const kTypeName[] = "AssumeTimezoneOptions";
+
+  /// Timezone and timezone name to convert timestamp from
+  std::string timezone;
+  const arrow_vendored::date::time_zone* tz;

Review comment:
       Removed.




-- 
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]


Reply via email to