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

Function InitTestTimezoneDatabase

cpp/src/arrow/testing/util.cc:135–146  ·  view source on GitHub ↗

TODO(GH-48593): Remove when libc++ supports std::chrono timezones.

Source from the content-addressed store, hash-verified

133
134// TODO(GH-48593): Remove when libc++ supports std::chrono timezones.
135ARROW_SUPPRESS_DEPRECATION_WARNING
136Status InitTestTimezoneDatabase() {
137 auto maybe_tzdata = GetTestTimezoneDatabaseRoot();
138 // If missing, timezone database will default to %USERPROFILE%\Downloads\tzdata
139 if (!maybe_tzdata.has_value()) return Status::OK();
140
141 auto tzdata_path = std::string(maybe_tzdata.value());
142 arrow::GlobalOptions options;
143 options.timezone_db_path = std::make_optional(tzdata_path);
144 ARROW_RETURN_NOT_OK(arrow::Initialize(options));
145 return Status::OK();
146}
147ARROW_UNSUPPRESS_DEPRECATION_WARNING
148
149int GetListenPort() {

Callers

nothing calls this directly

Calls 4

OKFunction · 0.50
InitializeFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected