diff --git a/scripts/setup-macos.sh b/scripts/setup-macos.sh index 83d8990603ea..1725c3f5ce54 100755 --- a/scripts/setup-macos.sh +++ b/scripts/setup-macos.sh @@ -25,6 +25,9 @@ # $ scripts/setup-macos.sh install_googletest install_fmt # +INSTALL_PREREQUISITES="Y" +PROMPT_ALWAYS_RESPOND="y" + set -e # Exit on error. set -x # Print commands that are executed. @@ -34,7 +37,7 @@ source $SCRIPTDIR/setup-helper-functions.sh NPROC=$(getconf _NPROCESSORS_ONLN) DEPENDENCY_DIR=${DEPENDENCY_DIR:-$(pwd)} -MACOS_DEPS="ninja flex bison cmake ccache protobuf@21 icu4c boost gflags glog libevent lz4 lzo snappy xz zstd openssl@1.1" +MACOS_DEPS="ninja flex bison cmake ccache protobuf@21 icu4c boost gflags glog libevent lz4 lzo snappy xz zstd openssl@3" function run_and_time { time "$@" || (echo "Failed to run $* ." ; exit 1 ) @@ -93,8 +96,8 @@ function install_fmt { } function install_folly { - github_checkout facebook/folly "v2022.11.14.00" - OPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1) \ + github_checkout facebook/folly "v2023.08.07.00" + OPENSSL_ROOT_DIR=$(brew --prefix openssl@3) \ cmake_install -DBUILD_TESTS=OFF -DFOLLY_HAVE_INT128_T=ON } diff --git a/velox/benchmarks/basic/ComparisonConjunct.cpp b/velox/benchmarks/basic/ComparisonConjunct.cpp index 24aafb96c2ce..3703cef42ed6 100644 --- a/velox/benchmarks/basic/ComparisonConjunct.cpp +++ b/velox/benchmarks/basic/ComparisonConjunct.cpp @@ -175,7 +175,7 @@ BENCHMARK(conjunctsNested) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmark = std::make_unique(1'000); diff --git a/velox/benchmarks/basic/DecodedVector.cpp b/velox/benchmarks/basic/DecodedVector.cpp index ef13901452c7..1456f508a669 100644 --- a/velox/benchmarks/basic/DecodedVector.cpp +++ b/velox/benchmarks/basic/DecodedVector.cpp @@ -188,7 +188,7 @@ BENCHMARK(decodeDictionary5Nested) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmark = std::make_unique(10'000); diff --git a/velox/benchmarks/basic/FeatureNormalization.cpp b/velox/benchmarks/basic/FeatureNormalization.cpp index 4730510f4324..f1a4d83b9b50 100644 --- a/velox/benchmarks/basic/FeatureNormalization.cpp +++ b/velox/benchmarks/basic/FeatureNormalization.cpp @@ -110,7 +110,7 @@ BENCHMARK(normalizeConstant) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmark = std::make_unique(); diff --git a/velox/benchmarks/basic/LikeFunctionsBenchmark.cpp b/velox/benchmarks/basic/LikeFunctionsBenchmark.cpp index 1931585fdc9a..c52b01010d5d 100644 --- a/velox/benchmarks/basic/LikeFunctionsBenchmark.cpp +++ b/velox/benchmarks/basic/LikeFunctionsBenchmark.cpp @@ -233,7 +233,7 @@ BENCHMARK(tpchQuery20) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv, true); + folly::Init(&argc, &argv, true); benchmark = std::make_unique(); folly::runBenchmarks(); benchmark.reset(); diff --git a/velox/benchmarks/basic/Preproc.cpp b/velox/benchmarks/basic/Preproc.cpp index 214be1fe773e..982a343f2552 100644 --- a/velox/benchmarks/basic/Preproc.cpp +++ b/velox/benchmarks/basic/Preproc.cpp @@ -444,7 +444,7 @@ BENCHMARK(allFusedWithNulls) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); benchmark = std::make_unique(); // Verify that benchmark calculations are correct. diff --git a/velox/benchmarks/basic/SelectivityVector.cpp b/velox/benchmarks/basic/SelectivityVector.cpp index 22273d3d7790..42622fb63492 100644 --- a/velox/benchmarks/basic/SelectivityVector.cpp +++ b/velox/benchmarks/basic/SelectivityVector.cpp @@ -164,7 +164,7 @@ BENCHMARK(sumSelectivity1PerCent) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmark = std::make_unique(10'000); diff --git a/velox/benchmarks/basic/SimpleArithmetic.cpp b/velox/benchmarks/basic/SimpleArithmetic.cpp index c2715fdca028..c494a8ffeceb 100644 --- a/velox/benchmarks/basic/SimpleArithmetic.cpp +++ b/velox/benchmarks/basic/SimpleArithmetic.cpp @@ -343,7 +343,7 @@ BENCHMARK(plusCheckedLarge) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmark = std::make_unique(); diff --git a/velox/benchmarks/basic/SimpleCastExpr.cpp b/velox/benchmarks/basic/SimpleCastExpr.cpp index 5858d5602bba..432234b3609b 100644 --- a/velox/benchmarks/basic/SimpleCastExpr.cpp +++ b/velox/benchmarks/basic/SimpleCastExpr.cpp @@ -106,7 +106,7 @@ BENCHMARK(castTimestampDateAdjustTimeZone) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmark = std::make_unique(); folly::runBenchmarks(); diff --git a/velox/benchmarks/basic/VectorCompare.cpp b/velox/benchmarks/basic/VectorCompare.cpp index f5e4bf8baa5c..6a30bbabbb92 100644 --- a/velox/benchmarks/basic/VectorCompare.cpp +++ b/velox/benchmarks/basic/VectorCompare.cpp @@ -110,7 +110,7 @@ BENCHMARK_DRAW_LINE(); } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmark = std::make_unique(1000); diff --git a/velox/benchmarks/basic/VectorFuzzer.cpp b/velox/benchmarks/basic/VectorFuzzer.cpp index ba76519e9a2f..32938a205811 100644 --- a/velox/benchmarks/basic/VectorFuzzer.cpp +++ b/velox/benchmarks/basic/VectorFuzzer.cpp @@ -128,7 +128,7 @@ BENCHMARK_RELATIVE_MULTI(flatMapArrayNested, n) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); folly::runBenchmarks(); return 0; diff --git a/velox/benchmarks/basic/VectorSlice.cpp b/velox/benchmarks/basic/VectorSlice.cpp index 58fa5642abf2..4777e995954a 100644 --- a/velox/benchmarks/basic/VectorSlice.cpp +++ b/velox/benchmarks/basic/VectorSlice.cpp @@ -110,7 +110,7 @@ DEFINE_BENCHMARKS(row) } // namespace facebook::velox int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); using namespace facebook::velox; gflags::ParseCommandLineFlags(&argc, &argv, true); VELOX_CHECK_LE(FLAGS_slice_size, kVectorSize); diff --git a/velox/benchmarks/tpch/TpchBenchmarkMain.cpp b/velox/benchmarks/tpch/TpchBenchmarkMain.cpp index acd59b3878fc..425d2981e0cb 100644 --- a/velox/benchmarks/tpch/TpchBenchmarkMain.cpp +++ b/velox/benchmarks/tpch/TpchBenchmarkMain.cpp @@ -23,6 +23,6 @@ int main(int argc, char** argv) { std::string kUsage( "This program benchmarks TPC-H queries. Run 'velox_tpch_benchmark -helpon=TpchBenchmark' for available options.\n"); gflags::SetUsageMessage(kUsage); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); tpchBenchmarkMain(); } diff --git a/velox/benchmarks/unstable/MemoryAllocationBenchmark.cpp b/velox/benchmarks/unstable/MemoryAllocationBenchmark.cpp index d267274ce56f..d4519054b56f 100644 --- a/velox/benchmarks/unstable/MemoryAllocationBenchmark.cpp +++ b/velox/benchmarks/unstable/MemoryAllocationBenchmark.cpp @@ -435,7 +435,7 @@ BENCHMARK_RELATIVE_MULTI(MmapReallocateMix64) { } // namespace int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // TODO: add to run benchmark as a standalone program with multithreading as // well as actual memory access to trigger minor page faults in OS which traps // into kernel context to setup physical pages for the lazy-mapped virtual diff --git a/velox/common/base/benchmarks/BitUtilBenchmark.cpp b/velox/common/base/benchmarks/BitUtilBenchmark.cpp index 6f8ac7cefbbd..1c120e41d35e 100644 --- a/velox/common/base/benchmarks/BitUtilBenchmark.cpp +++ b/velox/common/base/benchmarks/BitUtilBenchmark.cpp @@ -191,7 +191,7 @@ BENCHMARK_RELATIVE_MULTI(forEachBitFirstBitFalse) { } // namespace facebook int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/common/base/tests/Memcpy.cpp b/velox/common/base/tests/Memcpy.cpp index 236612db45e2..02850ab0a04d 100644 --- a/velox/common/base/tests/Memcpy.cpp +++ b/velox/common/base/tests/Memcpy.cpp @@ -58,7 +58,7 @@ struct CopyCallable { int main(int argc, char** argv) { constexpr int32_t kAlignment = folly::hardware_destructive_interference_size; - folly::init(&argc, &argv); + folly::Init(&argc, &argv); auto chunk = bits::roundUp( std::max(FLAGS_bytes / FLAGS_threads, kAlignment), kAlignment); int64_t bytes = chunk * FLAGS_threads; diff --git a/velox/common/base/tests/StatsReporterTest.cpp b/velox/common/base/tests/StatsReporterTest.cpp index d70c00e5f434..5f42ac9e1cb8 100644 --- a/velox/common/base/tests/StatsReporterTest.cpp +++ b/velox/common/base/tests/StatsReporterTest.cpp @@ -130,7 +130,7 @@ folly::Singleton reporter([]() { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); facebook::velox::BaseStatsReporter::registered = true; return RUN_ALL_TESTS(); } diff --git a/velox/common/file/benchmark/ReadBenchmarkMain.cpp b/velox/common/file/benchmark/ReadBenchmarkMain.cpp index 848321c92de1..ebb57aef034f 100644 --- a/velox/common/file/benchmark/ReadBenchmarkMain.cpp +++ b/velox/common/file/benchmark/ReadBenchmarkMain.cpp @@ -24,7 +24,7 @@ using namespace facebook::velox; // and the IO throughput is 100 MBps, then it takes 10 seconds to just read the // data. int main(int argc, char** argv) { - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); ReadBenchmark bm; bm.initialize(); bm.run(); diff --git a/velox/common/memory/tests/MemoryPoolBenchmark.cpp b/velox/common/memory/tests/MemoryPoolBenchmark.cpp index ae13d673841e..7dce5e1b9a4b 100644 --- a/velox/common/memory/tests/MemoryPoolBenchmark.cpp +++ b/velox/common/memory/tests/MemoryPoolBenchmark.cpp @@ -239,7 +239,7 @@ BENCHMARK(FlatSticks, iters) { } int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/connectors/fuzzer/tests/FuzzerConnectorTest.cpp b/velox/connectors/fuzzer/tests/FuzzerConnectorTest.cpp index fad06218be86..5a90a888cc44 100644 --- a/velox/connectors/fuzzer/tests/FuzzerConnectorTest.cpp +++ b/velox/connectors/fuzzer/tests/FuzzerConnectorTest.cpp @@ -124,6 +124,6 @@ TEST_F(FuzzerConnectorTest, reproducible) { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/connectors/hive/benchmarks/HivePartitionFunctionBenchmark.cpp b/velox/connectors/hive/benchmarks/HivePartitionFunctionBenchmark.cpp index 36532b495f57..4affd4afb5a5 100644 --- a/velox/connectors/hive/benchmarks/HivePartitionFunctionBenchmark.cpp +++ b/velox/connectors/hive/benchmarks/HivePartitionFunctionBenchmark.cpp @@ -267,7 +267,7 @@ BENCHMARK_DRAW_LINE(); } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); benchmarkFew = std::make_unique(1'000); diff --git a/velox/connectors/hive/storage_adapters/gcs/benchmark/GCSReadBenchmarkMain.cpp b/velox/connectors/hive/storage_adapters/gcs/benchmark/GCSReadBenchmarkMain.cpp index f18437f9e490..adea5804179f 100644 --- a/velox/connectors/hive/storage_adapters/gcs/benchmark/GCSReadBenchmarkMain.cpp +++ b/velox/connectors/hive/storage_adapters/gcs/benchmark/GCSReadBenchmarkMain.cpp @@ -24,7 +24,7 @@ using namespace facebook::velox; // and the IO throughput is 100 MBps, then it takes 10 seconds to just read the // data. int main(int argc, char** argv) { - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); GCSReadBenchmark bm; bm.initialize(); bm.run(); diff --git a/velox/connectors/hive/storage_adapters/s3fs/benchmark/S3ReadBenchmarkMain.cpp b/velox/connectors/hive/storage_adapters/s3fs/benchmark/S3ReadBenchmarkMain.cpp index 5b9d233f56f1..2fbb6b981c1c 100644 --- a/velox/connectors/hive/storage_adapters/s3fs/benchmark/S3ReadBenchmarkMain.cpp +++ b/velox/connectors/hive/storage_adapters/s3fs/benchmark/S3ReadBenchmarkMain.cpp @@ -24,7 +24,7 @@ using namespace facebook::velox; // and the IO throughput is 100 MBps, then it takes 10 seconds to just read the // data. int main(int argc, char** argv) { - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); S3ReadBenchmark bm; bm.initialize(); bm.run(); diff --git a/velox/connectors/tpch/tests/SpeedTest.cpp b/velox/connectors/tpch/tests/SpeedTest.cpp index 7df845877df6..c5fa1e042832 100644 --- a/velox/connectors/tpch/tests/SpeedTest.cpp +++ b/velox/connectors/tpch/tests/SpeedTest.cpp @@ -179,7 +179,7 @@ class TpchSpeedTest { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); TpchSpeedTest speedTest; speedTest.run( diff --git a/velox/connectors/tpch/tests/TpchConnectorTest.cpp b/velox/connectors/tpch/tests/TpchConnectorTest.cpp index 7685bebf516b..ea1ac361de67 100644 --- a/velox/connectors/tpch/tests/TpchConnectorTest.cpp +++ b/velox/connectors/tpch/tests/TpchConnectorTest.cpp @@ -287,6 +287,6 @@ TEST_F(TpchConnectorTest, orderDateCount) { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/dwio/common/tests/BitPackDecoderBenchmark.cpp b/velox/dwio/common/tests/BitPackDecoderBenchmark.cpp index 162f30fa9d26..e5e654b19b77 100644 --- a/velox/dwio/common/tests/BitPackDecoderBenchmark.cpp +++ b/velox/dwio/common/tests/BitPackDecoderBenchmark.cpp @@ -412,7 +412,7 @@ void naiveDecodeBitsLE( } int32_t main(int32_t argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // Populate uint32 buffer diff --git a/velox/dwio/common/tests/DataBufferBenchmark.cpp b/velox/dwio/common/tests/DataBufferBenchmark.cpp index 4890f184a738..bec343f2b750 100644 --- a/velox/dwio/common/tests/DataBufferBenchmark.cpp +++ b/velox/dwio/common/tests/DataBufferBenchmark.cpp @@ -53,7 +53,7 @@ BENCHMARK(ChainedBufferOps, iters) { } int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/dwio/common/tests/IntDecoderBenchmark.cpp b/velox/dwio/common/tests/IntDecoderBenchmark.cpp index fab234c025b2..628340f1a985 100644 --- a/velox/dwio/common/tests/IntDecoderBenchmark.cpp +++ b/velox/dwio/common/tests/IntDecoderBenchmark.cpp @@ -939,7 +939,7 @@ BENCHMARK_RELATIVE(decodeNew_64) { } int32_t main(int32_t argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // Populate uint16 buffer buffer_u16.resize(kNumElements); diff --git a/velox/dwio/dwrf/test/E2EFilterTest.cpp b/velox/dwio/dwrf/test/E2EFilterTest.cpp index 93c36fbf9fd7..a81eb2d3dfb3 100644 --- a/velox/dwio/dwrf/test/E2EFilterTest.cpp +++ b/velox/dwio/dwrf/test/E2EFilterTest.cpp @@ -410,6 +410,6 @@ TEST_F(E2EFilterTest, mutationCornerCases) { // Define main so that gflags get processed. int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/dwio/dwrf/test/FloatColumnWriterBenchmark.cpp b/velox/dwio/dwrf/test/FloatColumnWriterBenchmark.cpp index 529a990fddde..2e34d2f46503 100644 --- a/velox/dwio/dwrf/test/FloatColumnWriterBenchmark.cpp +++ b/velox/dwio/dwrf/test/FloatColumnWriterBenchmark.cpp @@ -130,7 +130,7 @@ BENCHMARK(FloatColumnWriterBenchmark10000) { } int32_t main(int32_t argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/dwio/dwrf/test/IntEncoderBenchmark.cpp b/velox/dwio/dwrf/test/IntEncoderBenchmark.cpp index f09939325fad..78c673ac9a60 100644 --- a/velox/dwio/dwrf/test/IntEncoderBenchmark.cpp +++ b/velox/dwio/dwrf/test/IntEncoderBenchmark.cpp @@ -204,7 +204,7 @@ BENCHMARK_RELATIVE(GenerateAutoIdNew_64) { } int32_t main(int32_t argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/dwio/parquet/tests/ParquetTpchTest.cpp b/velox/dwio/parquet/tests/ParquetTpchTest.cpp index c71358008a10..4a6535b51b52 100644 --- a/velox/dwio/parquet/tests/ParquetTpchTest.cpp +++ b/velox/dwio/parquet/tests/ParquetTpchTest.cpp @@ -113,6 +113,6 @@ TEST_F(ParquetTpchTest, Q22) { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/dwio/parquet/tests/reader/E2EFilterTest.cpp b/velox/dwio/parquet/tests/reader/E2EFilterTest.cpp index e93549598bde..ce9d5d360695 100644 --- a/velox/dwio/parquet/tests/reader/E2EFilterTest.cpp +++ b/velox/dwio/parquet/tests/reader/E2EFilterTest.cpp @@ -616,6 +616,6 @@ TEST_F(E2EFilterTest, combineRowGroup) { // Define main so that gflags get processed. int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/dwio/parquet/tests/reader/ParquetReaderBenchmark.cpp b/velox/dwio/parquet/tests/reader/ParquetReaderBenchmark.cpp index 0190b8ab8190..30640c1fe4d7 100644 --- a/velox/dwio/parquet/tests/reader/ParquetReaderBenchmark.cpp +++ b/velox/dwio/parquet/tests/reader/ParquetReaderBenchmark.cpp @@ -374,7 +374,7 @@ PARQUET_BENCHMARKS_NO_FILTER(ARRAY(BIGINT()), List); // TODO: Add all data types int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/dwio/parquet/tests/reader/ParquetTableScanTest.cpp b/velox/dwio/parquet/tests/reader/ParquetTableScanTest.cpp index 49f538dd857b..f04d195dd94c 100644 --- a/velox/dwio/parquet/tests/reader/ParquetTableScanTest.cpp +++ b/velox/dwio/parquet/tests/reader/ParquetTableScanTest.cpp @@ -446,6 +446,6 @@ TEST_F(ParquetTableScanTest, readAsLowerCase) { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/dwio/parquet/tests/thrift/ThriftTransportTest.cpp b/velox/dwio/parquet/tests/thrift/ThriftTransportTest.cpp index 2fed88512f6d..51648ff20b41 100644 --- a/velox/dwio/parquet/tests/thrift/ThriftTransportTest.cpp +++ b/velox/dwio/parquet/tests/thrift/ThriftTransportTest.cpp @@ -106,6 +106,6 @@ TEST_F(ThriftTransportTest, bufferedOutOfBoundry) { // Define main so that gflags get processed. int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/examples/OperatorExtensibility.cpp b/velox/examples/OperatorExtensibility.cpp index b534f4f1145f..c54dad543e50 100644 --- a/velox/examples/OperatorExtensibility.cpp +++ b/velox/examples/OperatorExtensibility.cpp @@ -160,7 +160,7 @@ class DuplicateRowTranslator : public exec::Operator::PlanNodeTranslator { }; int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // Fourth, we register the custom plan translator. We're now ready to use our // operator in a query plan. diff --git a/velox/examples/ScanAndSort.cpp b/velox/examples/ScanAndSort.cpp index 3484b56ff5d9..727ad6601c5c 100644 --- a/velox/examples/ScanAndSort.cpp +++ b/velox/examples/ScanAndSort.cpp @@ -42,7 +42,7 @@ using exec::test::HiveConnectorTestBase; int main(int argc, char** argv) { // Velox Tasks/Operators are based on folly's async framework, so we need to // make sure we initialize it first. - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // Default memory allocator used throughout this example. auto pool = memory::addDefaultLeafMemoryPool(); diff --git a/velox/examples/ScanOrc.cpp b/velox/examples/ScanOrc.cpp index be84fb3389a8..432437c7d4c4 100644 --- a/velox/examples/ScanOrc.cpp +++ b/velox/examples/ScanOrc.cpp @@ -31,7 +31,7 @@ using namespace facebook::velox::dwrf; // Used to compare the ORC data read by DWRFReader against apache-orc repo. // Usage: velox_example_scan_orc {orc_file_path} int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); if (argc < 2) { return 1; diff --git a/velox/exec/benchmarks/ExchangeBenchmark.cpp b/velox/exec/benchmarks/ExchangeBenchmark.cpp index 783183f4354c..4d5a5aaf1b59 100644 --- a/velox/exec/benchmarks/ExchangeBenchmark.cpp +++ b/velox/exec/benchmarks/ExchangeBenchmark.cpp @@ -331,7 +331,7 @@ BENCHMARK(localFlat10k) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); functions::prestosql::registerAllScalarFunctions(); aggregate::prestosql::registerAllAggregateFunctions(); parse::registerTypeResolver(); diff --git a/velox/exec/benchmarks/FilterProjectBenchmark.cpp b/velox/exec/benchmarks/FilterProjectBenchmark.cpp index fd74c1e8359e..ba1a6432f79e 100644 --- a/velox/exec/benchmarks/FilterProjectBenchmark.cpp +++ b/velox/exec/benchmarks/FilterProjectBenchmark.cpp @@ -266,7 +266,7 @@ class FilterProjectBenchmark : public VectorTestBase { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); functions::prestosql::registerAllScalarFunctions(); aggregate::prestosql::registerAllAggregateFunctions(); parse::registerTypeResolver(); diff --git a/velox/exec/benchmarks/HashTableBenchmark.cpp b/velox/exec/benchmarks/HashTableBenchmark.cpp index cb2216ff513a..dd873c367ed9 100644 --- a/velox/exec/benchmarks/HashTableBenchmark.cpp +++ b/velox/exec/benchmarks/HashTableBenchmark.cpp @@ -611,7 +611,7 @@ void combineResults( } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); memory::MmapAllocator::Options options; options.capacity = 10UL << 30; options.useMmapArena = true; diff --git a/velox/exec/benchmarks/MergeBenchmark.cpp b/velox/exec/benchmarks/MergeBenchmark.cpp index e44819e57c8e..5a85460f9059 100644 --- a/velox/exec/benchmarks/MergeBenchmark.cpp +++ b/velox/exec/benchmarks/MergeBenchmark.cpp @@ -54,7 +54,7 @@ BENCHMARK_RELATIVE(wideArray) { } int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); MergeTestBase test; test.seed(1); diff --git a/velox/exec/benchmarks/VectorHasherBenchmark.cpp b/velox/exec/benchmarks/VectorHasherBenchmark.cpp index 4df26a4aeffc..4086d05e896c 100644 --- a/velox/exec/benchmarks/VectorHasherBenchmark.cpp +++ b/velox/exec/benchmarks/VectorHasherBenchmark.cpp @@ -178,7 +178,7 @@ BENCHMARK_RELATIVE(computeValueIdsFlatStrings) { } int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/exec/tests/AggregationFuzzerTest.cpp b/velox/exec/tests/AggregationFuzzerTest.cpp index 3f5c8e9018e4..acd637b3eece 100644 --- a/velox/exec/tests/AggregationFuzzerTest.cpp +++ b/velox/exec/tests/AggregationFuzzerTest.cpp @@ -45,7 +45,7 @@ int main(int argc, char** argv) { // Calls common init functions in the necessary order, initializing // singletons, installing proper signal handlers for better debugging // experience, and initialize glog and gflags. - folly::init(&argc, &argv); + folly::Init(&argc, &argv); size_t initialSeed = FLAGS_seed == 0 ? std::time(nullptr) : FLAGS_seed; diff --git a/velox/exec/tests/AggregationRunnerTest.cpp b/velox/exec/tests/AggregationRunnerTest.cpp index 1dc7e387fa95..df67f1fcc3c7 100644 --- a/velox/exec/tests/AggregationRunnerTest.cpp +++ b/velox/exec/tests/AggregationRunnerTest.cpp @@ -65,7 +65,7 @@ static void checkDirForExpectedFiles() { int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv); + folly::Init(&argc, &argv); if (!FLAGS_aggregation_fuzzer_repro_path.empty()) { checkDirForExpectedFiles(); diff --git a/velox/exec/tests/JoinFuzzerTest.cpp b/velox/exec/tests/JoinFuzzerTest.cpp index 78097953ec4c..301f4a27b8e5 100644 --- a/velox/exec/tests/JoinFuzzerTest.cpp +++ b/velox/exec/tests/JoinFuzzerTest.cpp @@ -33,7 +33,7 @@ int main(int argc, char** argv) { // Calls common init functions in the necessary order, initializing // singletons, installing proper signal handlers for better debugging // experience, and initialize glog and gflags. - folly::init(&argc, &argv); + folly::Init(&argc, &argv); size_t initialSeed = FLAGS_seed == 0 ? std::time(nullptr) : FLAGS_seed; return JoinFuzzerRunner::run(initialSeed); diff --git a/velox/exec/tests/Main.cpp b/velox/exec/tests/Main.cpp index 970f35d8180a..22eeb763521a 100644 --- a/velox/exec/tests/Main.cpp +++ b/velox/exec/tests/Main.cpp @@ -24,6 +24,6 @@ int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); // Signal handler required for ThreadDebugInfoTest facebook::velox::process::addDefaultFatalSignalHandler(); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/exec/tests/SparkAggregationFuzzerTest.cpp b/velox/exec/tests/SparkAggregationFuzzerTest.cpp index dd10707da628..b6a18a83e863 100644 --- a/velox/exec/tests/SparkAggregationFuzzerTest.cpp +++ b/velox/exec/tests/SparkAggregationFuzzerTest.cpp @@ -44,7 +44,7 @@ int main(int argc, char** argv) { // Calls common init functions in the necessary order, initializing // singletons, installing proper signal handlers for better debugging // experience, and initialize glog and gflags. - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // TODO: List of the functions that at some point crash or fail and need to // be fixed before we can enable. Constant argument of bloom_filter_agg cause diff --git a/velox/exec/tests/VeloxIn10MinDemo.cpp b/velox/exec/tests/VeloxIn10MinDemo.cpp index 47cae22e11da..02cf8f0d73ec 100644 --- a/velox/exec/tests/VeloxIn10MinDemo.cpp +++ b/velox/exec/tests/VeloxIn10MinDemo.cpp @@ -290,7 +290,7 @@ void VeloxIn10MinDemo::run() { } int main(int argc, char** argv) { - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); VeloxIn10MinDemo demo; demo.run(); diff --git a/velox/experimental/codegen/benchmark/CodegenBenchmarks.cpp b/velox/experimental/codegen/benchmark/CodegenBenchmarks.cpp index 7671d560d9bb..411652754725 100644 --- a/velox/experimental/codegen/benchmark/CodegenBenchmarks.cpp +++ b/velox/experimental/codegen/benchmark/CodegenBenchmarks.cpp @@ -24,7 +24,7 @@ using namespace facebook::velox; using namespace facebook::velox::codegen; int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); CodegenBenchmark benchmark; diff --git a/velox/expression/benchmarks/CallNullFreeBenchmark.cpp b/velox/expression/benchmarks/CallNullFreeBenchmark.cpp index 43ca62870308..44e4d38f970c 100644 --- a/velox/expression/benchmarks/CallNullFreeBenchmark.cpp +++ b/velox/expression/benchmarks/CallNullFreeBenchmark.cpp @@ -312,7 +312,7 @@ BENCHMARK_MULTI(simpleMinIntegerNullFreeFastPath) { } // namespace facebook::velox::functions int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::functions::CallNullFreeBenchmark benchmark; benchmark.test(); folly::runBenchmarks(); diff --git a/velox/expression/benchmarks/CastBenchmark.cpp b/velox/expression/benchmarks/CastBenchmark.cpp index 895e74aa23b3..21d5c995aa21 100644 --- a/velox/expression/benchmarks/CastBenchmark.cpp +++ b/velox/expression/benchmarks/CastBenchmark.cpp @@ -151,7 +151,7 @@ BENCHMARK_MULTI(largeStructNested) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/expression/benchmarks/TryBenchmark.cpp b/velox/expression/benchmarks/TryBenchmark.cpp index 61e6fed47542..b73dd67078fd 100644 --- a/velox/expression/benchmarks/TryBenchmark.cpp +++ b/velox/expression/benchmarks/TryBenchmark.cpp @@ -185,7 +185,7 @@ BENCHMARK_MULTI(divideAllExceptions) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/expression/benchmarks/VariadicBenchmark.cpp b/velox/expression/benchmarks/VariadicBenchmark.cpp index 1bc058848a9e..3b9258d481c1 100644 --- a/velox/expression/benchmarks/VariadicBenchmark.cpp +++ b/velox/expression/benchmarks/VariadicBenchmark.cpp @@ -194,7 +194,7 @@ BENCHMARK_MULTI(simpleVariadicLotsOfArgs) { } // namespace facebook::velox::functions int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::functions::VariadicBenchmark benchmark; benchmark.test(); folly::runBenchmarks(); diff --git a/velox/expression/tests/ExpressionFuzzerTest.cpp b/velox/expression/tests/ExpressionFuzzerTest.cpp index 1f01f159706f..4dcf81a625f2 100644 --- a/velox/expression/tests/ExpressionFuzzerTest.cpp +++ b/velox/expression/tests/ExpressionFuzzerTest.cpp @@ -48,7 +48,7 @@ int main(int argc, char** argv) { // Calls common init functions in the necessary order, initializing // singletons, installing proper signal handlers for better debugging // experience, and initialize glog and gflags. - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // TODO: List of the functions that at some point crash or fail and need to // be fixed before we can enable. diff --git a/velox/expression/tests/ExpressionRunnerTest.cpp b/velox/expression/tests/ExpressionRunnerTest.cpp index 12c6771a08bc..3aac060207d4 100644 --- a/velox/expression/tests/ExpressionRunnerTest.cpp +++ b/velox/expression/tests/ExpressionRunnerTest.cpp @@ -165,7 +165,7 @@ int main(int argc, char** argv) { // Calls common init functions in the necessary order, initializing // singletons, installing proper signal handlers for better debugging // experience, and initialize glog and gflags. - folly::init(&argc, &argv); + folly::Init(&argc, &argv); if (!FLAGS_fuzzer_repro_path.empty()) { checkDirForExpectedFiles(); diff --git a/velox/expression/tests/SparkExpressionFuzzerTest.cpp b/velox/expression/tests/SparkExpressionFuzzerTest.cpp index 73eacbfcbe2d..d020bb7af334 100644 --- a/velox/expression/tests/SparkExpressionFuzzerTest.cpp +++ b/velox/expression/tests/SparkExpressionFuzzerTest.cpp @@ -51,7 +51,7 @@ int main(int argc, char** argv) { // Calls common init functions in the necessary order, initializing // singletons, installing proper signal handlers for better debugging // experience, and initialize glog and gflags. - folly::init(&argc, &argv); + folly::Init(&argc, &argv); // The following list are the Spark UDFs that hit issues // For rlike you need the following combo in the only list: diff --git a/velox/functions/lib/benchmarks/ApproxMostFrequentStreamSummaryBenchmark.cpp b/velox/functions/lib/benchmarks/ApproxMostFrequentStreamSummaryBenchmark.cpp index b9dd530d822f..6851cd31d4c7 100644 --- a/velox/functions/lib/benchmarks/ApproxMostFrequentStreamSummaryBenchmark.cpp +++ b/velox/functions/lib/benchmarks/ApproxMostFrequentStreamSummaryBenchmark.cpp @@ -115,7 +115,7 @@ BENCHMARK_NAMED_PARAM(merge, capacity2048, 1e6, 2048) } // namespace facebook::velox::functions int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); folly::runBenchmarks(); return 0; diff --git a/velox/functions/lib/benchmarks/KllSketchBenchmark.cpp b/velox/functions/lib/benchmarks/KllSketchBenchmark.cpp index 2b78ec7edf80..c87574ffe2db 100644 --- a/velox/functions/lib/benchmarks/KllSketchBenchmark.cpp +++ b/velox/functions/lib/benchmarks/KllSketchBenchmark.cpp @@ -188,7 +188,7 @@ BENCHMARK_RELATIVE_NAMED_PARAM(mergeKllSketch, 1e6x80, 1e6, 80); } // namespace facebook::velox::functions::kll::test int main(int argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); gflags::ParseCommandLineFlags(&argc, &argv, true); folly::runBenchmarks(); return 0; diff --git a/velox/functions/lib/benchmarks/Re2FunctionsBenchmarks.cpp b/velox/functions/lib/benchmarks/Re2FunctionsBenchmarks.cpp index 99fce0c41254..920d9afb9893 100644 --- a/velox/functions/lib/benchmarks/Re2FunctionsBenchmarks.cpp +++ b/velox/functions/lib/benchmarks/Re2FunctionsBenchmarks.cpp @@ -103,7 +103,7 @@ void registerRe2Functions() { } // namespace facebook::velox::functions::test int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::functions::test::registerRe2Functions(); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/aggregates/benchmarks/SimpleAggregates.cpp b/velox/functions/prestosql/aggregates/benchmarks/SimpleAggregates.cpp index cfe770bdcb80..dbc9a41c9cce 100644 --- a/velox/functions/prestosql/aggregates/benchmarks/SimpleAggregates.cpp +++ b/velox/functions/prestosql/aggregates/benchmarks/SimpleAggregates.cpp @@ -268,7 +268,7 @@ BENCHMARK_DRAW_LINE(); } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); benchmark = std::make_unique(); folly::runBenchmarks(); diff --git a/velox/functions/prestosql/aggregates/tests/Main.cpp b/velox/functions/prestosql/aggregates/tests/Main.cpp index 684d28a08797..5d7dac13068f 100644 --- a/velox/functions/prestosql/aggregates/tests/Main.cpp +++ b/velox/functions/prestosql/aggregates/tests/Main.cpp @@ -18,6 +18,6 @@ int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/functions/prestosql/benchmarks/ArrayContainsBenchmark.cpp b/velox/functions/prestosql/benchmarks/ArrayContainsBenchmark.cpp index 3d452e1d9b3e..40996782f9e5 100644 --- a/velox/functions/prestosql/benchmarks/ArrayContainsBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ArrayContainsBenchmark.cpp @@ -67,7 +67,7 @@ VELOX_UDF_END(); } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); functions::prestosql::registerArrayFunctions(); registerFunction< diff --git a/velox/functions/prestosql/benchmarks/ArrayMinMaxBenchmark.cpp b/velox/functions/prestosql/benchmarks/ArrayMinMaxBenchmark.cpp index e3249b41d000..3b62e725e544 100644 --- a/velox/functions/prestosql/benchmarks/ArrayMinMaxBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ArrayMinMaxBenchmark.cpp @@ -46,7 +46,7 @@ void registerTestSimpleFunctions() { using namespace facebook::velox; int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); functions::prestosql::registerArrayFunctions(); functions::registerTestVectorFunctionBasic(); diff --git a/velox/functions/prestosql/benchmarks/ArrayPositionBenchmark.cpp b/velox/functions/prestosql/benchmarks/ArrayPositionBenchmark.cpp index 81cb138c6524..c5dc51e67b99 100644 --- a/velox/functions/prestosql/benchmarks/ArrayPositionBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ArrayPositionBenchmark.cpp @@ -222,7 +222,7 @@ BENCHMARK_RELATIVE(vectorBasicIntegerWithInstance) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/ArraySumBenchmark.cpp b/velox/functions/prestosql/benchmarks/ArraySumBenchmark.cpp index 4b649cd55fa4..44b8708ad1f2 100644 --- a/velox/functions/prestosql/benchmarks/ArraySumBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ArraySumBenchmark.cpp @@ -27,7 +27,7 @@ using namespace facebook::velox::exec; using namespace facebook::velox::functions; int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); functions::prestosql::registerArrayFunctions(); registerFunction>( diff --git a/velox/functions/prestosql/benchmarks/ArrayWriterBenchmark.cpp b/velox/functions/prestosql/benchmarks/ArrayWriterBenchmark.cpp index 191ec5c1b48f..1b30a1c8b592 100644 --- a/velox/functions/prestosql/benchmarks/ArrayWriterBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ArrayWriterBenchmark.cpp @@ -275,7 +275,7 @@ BENCHMARK_MULTI(std_reference) { } // namespace facebook::velox::exec int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::exec::ArrayWriterBenchmark benchmark; benchmark.test(); diff --git a/velox/functions/prestosql/benchmarks/BitwiseBenchmark.cpp b/velox/functions/prestosql/benchmarks/BitwiseBenchmark.cpp index 712441e7e2a9..ffd2704c488f 100644 --- a/velox/functions/prestosql/benchmarks/BitwiseBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/BitwiseBenchmark.cpp @@ -154,7 +154,7 @@ BENCHMARK_RELATIVE(bitwise_shift_left) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/CardinalityBenchmark.cpp b/velox/functions/prestosql/benchmarks/CardinalityBenchmark.cpp index 99c7f84d21d0..729dee6cd76e 100644 --- a/velox/functions/prestosql/benchmarks/CardinalityBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/CardinalityBenchmark.cpp @@ -238,7 +238,7 @@ BENCHMARK(vectorConditional) { } int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); LOG(ERROR) << "Seed: " << seed; { diff --git a/velox/functions/prestosql/benchmarks/CompareBenchmark.cpp b/velox/functions/prestosql/benchmarks/CompareBenchmark.cpp index 49c1e790c3be..6f9c6257ebeb 100644 --- a/velox/functions/prestosql/benchmarks/CompareBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/CompareBenchmark.cpp @@ -180,7 +180,7 @@ BENCHMARK_MULTI(Gt_Velox) { } // namespace facebook::velox::functions::test int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/ComparisonsBenchmark.cpp b/velox/functions/prestosql/benchmarks/ComparisonsBenchmark.cpp index 4331b986e10b..88d56d27db3e 100644 --- a/velox/functions/prestosql/benchmarks/ComparisonsBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ComparisonsBenchmark.cpp @@ -109,7 +109,7 @@ BENCHMARK_RELATIVE(simd_tinyint_eq) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/ConcatBenchmark.cpp b/velox/functions/prestosql/benchmarks/ConcatBenchmark.cpp index 56b0ee058ba5..1bb195ca9ff1 100644 --- a/velox/functions/prestosql/benchmarks/ConcatBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ConcatBenchmark.cpp @@ -137,7 +137,7 @@ BENCHMARK_MULTI(flattenAndConstantFold, n) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); LOG(ERROR) << "Seed: " << seed; { diff --git a/velox/functions/prestosql/benchmarks/DateTimeBenchmark.cpp b/velox/functions/prestosql/benchmarks/DateTimeBenchmark.cpp index 4348e99a8145..27309a90bc91 100644 --- a/velox/functions/prestosql/benchmarks/DateTimeBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/DateTimeBenchmark.cpp @@ -200,7 +200,7 @@ BENCHMARK(second) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/InBenchmark.cpp b/velox/functions/prestosql/benchmarks/InBenchmark.cpp index 7f3955349058..08e95b0944bd 100644 --- a/velox/functions/prestosql/benchmarks/InBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/InBenchmark.cpp @@ -129,7 +129,7 @@ BENCHMARK_RELATIVE(in1K) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/JsonExprBenchmark.cpp b/velox/functions/prestosql/benchmarks/JsonExprBenchmark.cpp index b798c2640f9e..dc5046b2d1c8 100644 --- a/velox/functions/prestosql/benchmarks/JsonExprBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/JsonExprBenchmark.cpp @@ -474,7 +474,7 @@ BENCHMARK_DRAW_LINE(); } // namespace facebook::velox::functions::prestosql int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/functions/prestosql/benchmarks/MapBenchmark.cpp b/velox/functions/prestosql/benchmarks/MapBenchmark.cpp index 01e718f8895f..3acfa5cf2e64 100644 --- a/velox/functions/prestosql/benchmarks/MapBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/MapBenchmark.cpp @@ -83,7 +83,7 @@ BENCHMARK_MULTI(flatKeys, n) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/functions/prestosql/benchmarks/MapInputBenchmark.cpp b/velox/functions/prestosql/benchmarks/MapInputBenchmark.cpp index c657949681f8..5032df6b3d26 100644 --- a/velox/functions/prestosql/benchmarks/MapInputBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/MapInputBenchmark.cpp @@ -434,7 +434,7 @@ BENCHMARK_RELATIVE(nestedMapSumVectorFunctionMapView) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); MapInputBenchmark benchmark; if (benchmark.testMapSum() && benchmark.testNestedMapSum()) { diff --git a/velox/functions/prestosql/benchmarks/MapWriterBenchmarks.cpp b/velox/functions/prestosql/benchmarks/MapWriterBenchmarks.cpp index 5660439b9cbd..4cbe34b0b7b7 100644 --- a/velox/functions/prestosql/benchmarks/MapWriterBenchmarks.cpp +++ b/velox/functions/prestosql/benchmarks/MapWriterBenchmarks.cpp @@ -255,7 +255,7 @@ BENCHMARK(simple_general, n) { } // namespace facebook::velox::exec int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::exec::MapWriterBenchmark benchmark; benchmark.test(); diff --git a/velox/functions/prestosql/benchmarks/MapZipWithBenchmark.cpp b/velox/functions/prestosql/benchmarks/MapZipWithBenchmark.cpp index c4ec34fc8365..21a32fb5e193 100644 --- a/velox/functions/prestosql/benchmarks/MapZipWithBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/MapZipWithBenchmark.cpp @@ -123,7 +123,7 @@ BENCHMARK_MULTI(dictionaryKeys, n) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); LOG(ERROR) << "Seed: " << seed; { diff --git a/velox/functions/prestosql/benchmarks/NestedArrayWriterBenchmark.cpp b/velox/functions/prestosql/benchmarks/NestedArrayWriterBenchmark.cpp index 798990bbef7c..b7087b9a093b 100644 --- a/velox/functions/prestosql/benchmarks/NestedArrayWriterBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/NestedArrayWriterBenchmark.cpp @@ -194,7 +194,7 @@ BENCHMARK_MULTI(simple) { } // namespace facebook::velox::exec int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::exec::NestedArrayWriterBenchmark benchmark; benchmark.test(); diff --git a/velox/functions/prestosql/benchmarks/NotBenchmark.cpp b/velox/functions/prestosql/benchmarks/NotBenchmark.cpp index 236b5cd34beb..1cd672ffb216 100644 --- a/velox/functions/prestosql/benchmarks/NotBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/NotBenchmark.cpp @@ -79,7 +79,7 @@ BENCHMARK_RELATIVE(vectorizedNot) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/Row.cpp b/velox/functions/prestosql/benchmarks/Row.cpp index 5118c6eb821d..a3de4f824808 100644 --- a/velox/functions/prestosql/benchmarks/Row.cpp +++ b/velox/functions/prestosql/benchmarks/Row.cpp @@ -73,7 +73,7 @@ BENCHMARK(copyMostlyConst) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/RowWriterBenchmark.cpp b/velox/functions/prestosql/benchmarks/RowWriterBenchmark.cpp index 67b897b272a9..b32069826699 100644 --- a/velox/functions/prestosql/benchmarks/RowWriterBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/RowWriterBenchmark.cpp @@ -220,7 +220,7 @@ BENCHMARK_MULTI(complex_row) { } // namespace facebook::velox::exec int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::exec::RowWriterBenchmark benchmark; benchmark.test(); diff --git a/velox/functions/prestosql/benchmarks/SimpleSubscriptBenchmark.cpp b/velox/functions/prestosql/benchmarks/SimpleSubscriptBenchmark.cpp index 12b526fef848..9851bd84b166 100644 --- a/velox/functions/prestosql/benchmarks/SimpleSubscriptBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/SimpleSubscriptBenchmark.cpp @@ -352,7 +352,7 @@ BENCHMARK(ArraySubscript_ArrayRowIntInt) { } int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); benchmark = std::make_unique(); benchmark->test(); folly::runBenchmarks(); diff --git a/velox/functions/prestosql/benchmarks/StringAsciiUTFFunctionBenchmarks.cpp b/velox/functions/prestosql/benchmarks/StringAsciiUTFFunctionBenchmarks.cpp index e23b4c46b5a0..ff2c79507582 100644 --- a/velox/functions/prestosql/benchmarks/StringAsciiUTFFunctionBenchmarks.cpp +++ b/velox/functions/prestosql/benchmarks/StringAsciiUTFFunctionBenchmarks.cpp @@ -185,7 +185,7 @@ BENCHMARK_RELATIVE(aciiRPad) { // asciiUpper 98.22% 68.98ms 14.50 //============================================================================ int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/StringWriterBenchmark.cpp b/velox/functions/prestosql/benchmarks/StringWriterBenchmark.cpp index 41ff095d2c87..6c596e17ba20 100644 --- a/velox/functions/prestosql/benchmarks/StringWriterBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/StringWriterBenchmark.cpp @@ -178,7 +178,7 @@ BENCHMARK_MULTI(array_of_string) { } // namespace facebook::velox::exec int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::exec::StringWriterBenchmark benchmark; benchmark.test(); diff --git a/velox/functions/prestosql/benchmarks/URLBenchmark.cpp b/velox/functions/prestosql/benchmarks/URLBenchmark.cpp index 94cfe5764136..963bb01a0dc2 100644 --- a/velox/functions/prestosql/benchmarks/URLBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/URLBenchmark.cpp @@ -300,7 +300,7 @@ BENCHMARK_RELATIVE(velox_param) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/WidthBucketBenchmark.cpp b/velox/functions/prestosql/benchmarks/WidthBucketBenchmark.cpp index c7be659c4b20..aa261d43ddcb 100644 --- a/velox/functions/prestosql/benchmarks/WidthBucketBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/WidthBucketBenchmark.cpp @@ -111,7 +111,7 @@ BENCHMARK_RELATIVE(widthBucket) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/ZipBenchmark.cpp b/velox/functions/prestosql/benchmarks/ZipBenchmark.cpp index 33fb428db37f..d256e3d02a64 100644 --- a/velox/functions/prestosql/benchmarks/ZipBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ZipBenchmark.cpp @@ -111,7 +111,7 @@ BENCHMARK_MULTI(NeqSizeFlatFlat) { } // namespace facebook::velox::functions::test int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/functions/prestosql/benchmarks/ZipWithBenchmark.cpp b/velox/functions/prestosql/benchmarks/ZipWithBenchmark.cpp index fe54035de2de..33098895c7ef 100644 --- a/velox/functions/prestosql/benchmarks/ZipWithBenchmark.cpp +++ b/velox/functions/prestosql/benchmarks/ZipWithBenchmark.cpp @@ -136,7 +136,7 @@ BENCHMARK_MULTI(fast, n) { } // namespace int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); LOG(ERROR) << "Seed: " << seed; { diff --git a/velox/functions/prestosql/window/tests/Main.cpp b/velox/functions/prestosql/window/tests/Main.cpp index 684d28a08797..5d7dac13068f 100644 --- a/velox/functions/prestosql/window/tests/Main.cpp +++ b/velox/functions/prestosql/window/tests/Main.cpp @@ -18,6 +18,6 @@ int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/functions/remote/client/tests/RemoteFunctionTest.cpp b/velox/functions/remote/client/tests/RemoteFunctionTest.cpp index 38e1b576cb4d..f559087a014a 100644 --- a/velox/functions/remote/client/tests/RemoteFunctionTest.cpp +++ b/velox/functions/remote/client/tests/RemoteFunctionTest.cpp @@ -180,6 +180,6 @@ VELOX_INSTANTIATE_TEST_SUITE_P( int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/functions/sparksql/aggregates/tests/Main.cpp b/velox/functions/sparksql/aggregates/tests/Main.cpp index 684d28a08797..5d7dac13068f 100644 --- a/velox/functions/sparksql/aggregates/tests/Main.cpp +++ b/velox/functions/sparksql/aggregates/tests/Main.cpp @@ -18,6 +18,6 @@ int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/functions/sparksql/benchmarks/In.cpp b/velox/functions/sparksql/benchmarks/In.cpp index bfe7ad39faab..96fd1053f5fa 100644 --- a/velox/functions/sparksql/benchmarks/In.cpp +++ b/velox/functions/sparksql/benchmarks/In.cpp @@ -124,7 +124,7 @@ void registerInFunctions() { } // namespace facebook::velox::functions::sparksql int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); facebook::velox::functions::registerPrestoIn(); facebook::velox::functions::sparksql::registerInFunctions(); facebook::velox::functions::registerArrayConstructor(); diff --git a/velox/functions/sparksql/window/tests/Main.cpp b/velox/functions/sparksql/window/tests/Main.cpp index 684d28a08797..5d7dac13068f 100644 --- a/velox/functions/sparksql/window/tests/Main.cpp +++ b/velox/functions/sparksql/window/tests/Main.cpp @@ -18,6 +18,6 @@ int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/row/benchmark/DynamicRowVectorDeserializeBenchmark.cpp b/velox/row/benchmark/DynamicRowVectorDeserializeBenchmark.cpp index 679feac385af..fa4f865a0853 100644 --- a/velox/row/benchmark/DynamicRowVectorDeserializeBenchmark.cpp +++ b/velox/row/benchmark/DynamicRowVectorDeserializeBenchmark.cpp @@ -173,7 +173,7 @@ BENCHMARK_NAMED_PARAM_MULTI( } // namespace facebook::spark::benchmarks int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/row/benchmark/UnsafeRowSerializeBenchmark.cpp b/velox/row/benchmark/UnsafeRowSerializeBenchmark.cpp index f751f201d93b..5a306427cf70 100644 --- a/velox/row/benchmark/UnsafeRowSerializeBenchmark.cpp +++ b/velox/row/benchmark/UnsafeRowSerializeBenchmark.cpp @@ -289,7 +289,7 @@ SERDE_BENCHMARKS( } // namespace facebook::velox::row int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/substrait/tests/VeloxSubstraitRoundTripTest.cpp b/velox/substrait/tests/VeloxSubstraitRoundTripTest.cpp index ca2435ebce2f..bef33eeba435 100644 --- a/velox/substrait/tests/VeloxSubstraitRoundTripTest.cpp +++ b/velox/substrait/tests/VeloxSubstraitRoundTripTest.cpp @@ -509,6 +509,6 @@ TEST_F(VeloxSubstraitRoundTripTest, dateType) { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/tpch/gen/tests/TpchGenTest.cpp b/velox/tpch/gen/tests/TpchGenTest.cpp index 39109f331230..d1784dd37dfb 100644 --- a/velox/tpch/gen/tests/TpchGenTest.cpp +++ b/velox/tpch/gen/tests/TpchGenTest.cpp @@ -823,6 +823,6 @@ TEST_F(TpchGenTestCustomerTest, reproducible) { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - folly::init(&argc, &argv, false); + folly::Init(&argc, &argv, false); return RUN_ALL_TESTS(); } diff --git a/velox/type/tests/FilterBenchmark.cpp b/velox/type/tests/FilterBenchmark.cpp index ead694fe61dc..65823ac814ca 100644 --- a/velox/type/tests/FilterBenchmark.cpp +++ b/velox/type/tests/FilterBenchmark.cpp @@ -70,7 +70,7 @@ BENCHMARK_RELATIVE(simdSparse) { int32_t main(int32_t argc, char* argv[]) { constexpr int32_t kNumValues = 1000000; constexpr int32_t kFilterValues = 1000; - folly::init(&argc, &argv); + folly::Init(&argc, &argv); std::vector filterValues; filterValues.reserve(kFilterValues); diff --git a/velox/type/tests/NegatedBigintRangeBenchmark.cpp b/velox/type/tests/NegatedBigintRangeBenchmark.cpp index 4c4c4369de0d..fada468f4e2e 100644 --- a/velox/type/tests/NegatedBigintRangeBenchmark.cpp +++ b/velox/type/tests/NegatedBigintRangeBenchmark.cpp @@ -118,7 +118,7 @@ DEFINE_RANGE_BENCHMARKS(9000) DEFINE_RANGE_BENCHMARKS(9900) int32_t main(int32_t argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); constexpr int32_t kNumValues = 1000000; constexpr int64_t distinctVals = 20001; // -10000 to 10000 const std::vector pctZeros = {0, 1, 5, 10, 50, 90, 95, 99, 100}; diff --git a/velox/type/tests/NegatedBytesRangeBenchmark.cpp b/velox/type/tests/NegatedBytesRangeBenchmark.cpp index fe0a0d0b5cbb..b00f574837db 100644 --- a/velox/type/tests/NegatedBytesRangeBenchmark.cpp +++ b/velox/type/tests/NegatedBytesRangeBenchmark.cpp @@ -129,7 +129,7 @@ DEFINE_BENCHMARKS(100, 94) DEFINE_BENCHMARKS(100, 98) int32_t main(int32_t argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); constexpr int32_t kNumValues = 1000000; constexpr int32_t kStringPoolSize = 20000; const std::vector stringLengths = {2, 3, 5, 10, 100}; diff --git a/velox/type/tests/NegatedBytesValuesBenchmark.cpp b/velox/type/tests/NegatedBytesValuesBenchmark.cpp index 3217e6c316f8..356d42ad249a 100644 --- a/velox/type/tests/NegatedBytesValuesBenchmark.cpp +++ b/velox/type/tests/NegatedBytesValuesBenchmark.cpp @@ -121,7 +121,7 @@ DEFINE_BENCHMARKS(100, 1000) DEFINE_BENCHMARKS(100, 10000) int32_t main(int32_t argc, char* argv[]) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); constexpr int32_t k_num_values = 1000000; constexpr int32_t k_string_pool_size = 20000; const std::vector string_lengths = {1, 2, 5, 10, 100}; diff --git a/velox/type/tests/NegatedValuesFilterBenchmark.cpp b/velox/type/tests/NegatedValuesFilterBenchmark.cpp index b613911cc24f..3814402782fe 100644 --- a/velox/type/tests/NegatedValuesFilterBenchmark.cpp +++ b/velox/type/tests/NegatedValuesFilterBenchmark.cpp @@ -125,7 +125,7 @@ int32_t main(int32_t argc, char* argv[]) { 1000, 1000, 10000, 10, 1000, 1000, 1000}; std::vector> rejectedValues; - folly::init(&argc, &argv); + folly::Init(&argc, &argv); rejectedValues.reserve(kFilterSizes.size()); for (auto i = 0; i < kFilterSizes.size(); ++i) { diff --git a/velox/type/tests/StringViewBenchmark.cpp b/velox/type/tests/StringViewBenchmark.cpp index d4cb5e63423c..1fedc286f0f2 100644 --- a/velox/type/tests/StringViewBenchmark.cpp +++ b/velox/type/tests/StringViewBenchmark.cpp @@ -53,7 +53,7 @@ BENCHMARK_PARAM(runStringViewCreate, NON_INLINE_SIZE); } // namespace facebook::velox int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/vector/benchmarks/CopyBenchmark.cpp b/velox/vector/benchmarks/CopyBenchmark.cpp index d021db3482ad..e97ab0608ea7 100644 --- a/velox/vector/benchmarks/CopyBenchmark.cpp +++ b/velox/vector/benchmarks/CopyBenchmark.cpp @@ -351,7 +351,7 @@ BENCHMARK_MULTI(copyStructNonContiguous) { } // namespace facebook::velox int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; diff --git a/velox/vector/benchmarks/NthBitBenchmark.cpp b/velox/vector/benchmarks/NthBitBenchmark.cpp index d6a4043c53b5..514f179559e3 100644 --- a/velox/vector/benchmarks/NthBitBenchmark.cpp +++ b/velox/vector/benchmarks/NthBitBenchmark.cpp @@ -117,7 +117,7 @@ BENCHMARK_RELATIVE_PARAM(BM_setNthBit_shift_false_unsigned, 1000000); BENCHMARK_DRAW_LINE(); int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/vector/benchmarks/SelectivityVectorBenchmark.cpp b/velox/vector/benchmarks/SelectivityVectorBenchmark.cpp index a2678843b6a0..c38406a866f1 100644 --- a/velox/vector/benchmarks/SelectivityVectorBenchmark.cpp +++ b/velox/vector/benchmarks/SelectivityVectorBenchmark.cpp @@ -308,7 +308,7 @@ BENCHMARK_DRAW_LINE(); // buck run @mode/opt-clang-thinlto \ // velox/vector/benchmarks:selectivity_vector_benchmark int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; } diff --git a/velox/vector/benchmarks/SimpleVectorHashAllBenchmark.cpp b/velox/vector/benchmarks/SimpleVectorHashAllBenchmark.cpp index e4f36d0f77b6..6451a12b3180 100644 --- a/velox/vector/benchmarks/SimpleVectorHashAllBenchmark.cpp +++ b/velox/vector/benchmarks/SimpleVectorHashAllBenchmark.cpp @@ -467,7 +467,7 @@ BENCHMARK_DRAW_LINE(); } // namespace facebook::velox::test int main(int argc, char** argv) { - folly::init(&argc, &argv); + folly::Init(&argc, &argv); folly::runBenchmarks(); return 0; }