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

Function GetEnvValue

cpp/src/arrow/acero/asof_join_node_test.cc:1666–1675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1664
1665template <typename T>
1666T GetEnvValue(const std::string& var, T default_value) {
1667 const char* str = std::getenv(var.c_str());
1668 if (str == NULLPTR) {
1669 return default_value;
1670 }
1671 std::stringstream s(str);
1672 T value = default_value;
1673 s >> value;
1674 return value;
1675}
1676
1677} // namespace
1678

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected