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

Function InitTestTimezoneDatabase

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

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

OKFunction · 0.50
InitializeFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected