From 758669d4e466bad5fd5168ddb979fafe04c44922 Mon Sep 17 00:00:00 2001 From: lichaoyong Date: Fri, 20 May 2022 09:38:30 +0800 Subject: [PATCH] [License] Keep the Apache License for not changed files (#6335) Many files come from Apache Doris and have not been changed. According to the License rule, the files should keep the Apache License. --- be/src/formats/orc/apache-orc/CMakeLists.txt | 4 - .../formats/orc/apache-orc/c++/CMakeLists.txt | 4 - be/src/formats/orc/apache-orc/c++/Doxyfile | 4 - .../apache-orc/c++/include/orc/BloomFilter.hh | 4 - .../c++/include/orc/ColumnPrinter.hh | 4 - .../orc/apache-orc/c++/include/orc/Common.hh | 4 - .../apache-orc/c++/include/orc/Exceptions.hh | 4 - .../orc/apache-orc/c++/include/orc/Int128.hh | 4 - .../apache-orc/c++/include/orc/Statistics.hh | 4 - .../orc/apache-orc/c++/include/orc/Type.hh | 4 - .../orc/apache-orc/c++/include/orc/Writer.hh | 4 - .../c++/include/orc/orc-config.hh.in | 4 - .../c++/include/orc/sargs/Literal.hh | 4 - .../c++/include/orc/sargs/TruthValue.hh | 4 - .../formats/orc/apache-orc/c++/src/Adaptor.cc | 4 - .../orc/apache-orc/c++/src/Adaptor.hh.in | 4 - .../orc/apache-orc/c++/src/BloomFilter.cc | 4 - .../orc/apache-orc/c++/src/BloomFilter.hh | 4 - .../formats/orc/apache-orc/c++/src/ByteRLE.cc | 4 - .../formats/orc/apache-orc/c++/src/ByteRLE.hh | 4 - .../orc/apache-orc/c++/src/CMakeLists.txt | 4 - .../orc/apache-orc/c++/src/ColumnPrinter.cc | 4 - .../orc/apache-orc/c++/src/ColumnWriter.cc | 4 - .../orc/apache-orc/c++/src/ColumnWriter.hh | 4 - .../formats/orc/apache-orc/c++/src/Common.cc | 4 - .../orc/apache-orc/c++/src/Compression.hh | 4 - .../orc/apache-orc/c++/src/Exceptions.cc | 4 - .../formats/orc/apache-orc/c++/src/Int128.cc | 4 - .../orc/apache-orc/c++/src/LzoDecompressor.hh | 4 - .../formats/orc/apache-orc/c++/src/Murmur3.cc | 4 - .../formats/orc/apache-orc/c++/src/Murmur3.hh | 4 - .../formats/orc/apache-orc/c++/src/OrcFile.cc | 4 - .../orc/apache-orc/c++/src/OrcHdfsFile.cc | 4 - be/src/formats/orc/apache-orc/c++/src/RLE.cc | 4 - be/src/formats/orc/apache-orc/c++/src/RLE.hh | 4 - .../orc/apache-orc/c++/src/RLEV2Util.cc | 4 - .../orc/apache-orc/c++/src/RLEV2Util.hh | 4 - .../formats/orc/apache-orc/c++/src/RLEv1.cc | 4 - .../formats/orc/apache-orc/c++/src/RLEv1.hh | 4 - .../orc/apache-orc/c++/src/RleDecoderV2.cc | 4 - .../orc/apache-orc/c++/src/RleEncoderV2.cc | 4 - .../orc/apache-orc/c++/src/Statistics.cc | 4 - .../orc/apache-orc/c++/src/Statistics.hh | 4 - .../orc/apache-orc/c++/src/Timezone.hh | 4 - .../orc/apache-orc/c++/src/TypeImpl.cc | 4 - .../orc/apache-orc/c++/src/TypeImpl.hh | 4 - .../formats/orc/apache-orc/c++/src/Writer.cc | 4 - .../orc/apache-orc/c++/src/io/OutputStream.cc | 4 - .../orc/apache-orc/c++/src/io/OutputStream.hh | 4 - .../c++/src/sargs/ExpressionTree.cc | 4 - .../c++/src/sargs/ExpressionTree.hh | 4 - .../apache-orc/c++/src/sargs/TruthValue.cc | 4 - .../c++/src/wrap/coded-stream-wrapper.h | 4 - .../orc/apache-orc/c++/src/wrap/gmock.h | 4 - .../apache-orc/c++/src/wrap/gtest-wrapper.h | 4 - .../c++/src/wrap/orc-proto-wrapper.cc | 4 - .../c++/src/wrap/orc-proto-wrapper.hh | 4 - .../apache-orc/c++/src/wrap/snappy-wrapper.h | 4 - .../c++/src/wrap/zero-copy-stream-wrapper.h | 4 - .../apache-orc/c++/test/MemoryInputStream.cc | 4 - .../apache-orc/c++/test/MemoryInputStream.hh | 4 - .../apache-orc/c++/test/MemoryOutputStream.hh | 4 - .../orc/apache-orc/c++/test/OrcTest.hh | 4 - .../orc/apache-orc/c++/test/TestAttributes.cc | 4 - .../apache-orc/c++/test/TestBloomFilter.cc | 4 - .../apache-orc/c++/test/TestByteRLEEncoder.cc | 4 - .../orc/apache-orc/c++/test/TestByteRle.cc | 4 - .../apache-orc/c++/test/TestColumnPrinter.cc | 4 - .../c++/test/TestColumnStatistics.cc | 4 - .../apache-orc/c++/test/TestCompression.cc | 4 - .../orc/apache-orc/c++/test/TestDecimal.cc | 4 - .../apache-orc/c++/test/TestDecompression.cc | 4 - .../c++/test/TestDictionaryEncoding.cc | 4 - .../orc/apache-orc/c++/test/TestDriver.cc | 4 - .../orc/apache-orc/c++/test/TestInt128.cc | 4 - .../apache-orc/c++/test/TestPredicateLeaf.cc | 1135 +++++++++-------- .../c++/test/TestPredicatePushdown.cc | 4 - .../orc/apache-orc/c++/test/TestRLEV2Util.cc | 4 - .../orc/apache-orc/c++/test/TestReader.cc | 4 - .../orc/apache-orc/c++/test/TestRleDecoder.cc | 4 - .../orc/apache-orc/c++/test/TestRleEncoder.cc | 4 - .../apache-orc/c++/test/TestSargsApplier.cc | 4 - .../apache-orc/c++/test/TestSearchArgument.cc | 4 - .../c++/test/TestStripeIndexStatistics.cc | 4 - .../orc/apache-orc/tools/CMakeLists.txt | 4 - .../orc/apache-orc/tools/src/CMakeLists.txt | 4 - .../orc/apache-orc/tools/src/CSVFileImport.cc | 4 - .../orc/apache-orc/tools/src/FileContents.cc | 4 - .../orc/apache-orc/tools/src/FileMemory.cc | 4 - .../orc/apache-orc/tools/src/FileMetadata.cc | 4 - .../orc/apache-orc/tools/src/FileScan.cc | 4 - .../apache-orc/tools/src/FileStatistics.cc | 4 - .../orc/apache-orc/tools/src/TimezoneDump.cc | 4 - .../orc/apache-orc/tools/test/CMakeLists.txt | 4 - .../tools/test/TestCSVFileImport.cc | 4 - .../apache-orc/tools/test/TestFileContents.cc | 4 - .../apache-orc/tools/test/TestFileMetadata.cc | 4 - .../tools/test/TestFileStatistics.cc | 4 - .../orc/apache-orc/tools/test/TestMatch.cc | 4 - .../orc/apache-orc/tools/test/ToolTest.cc | 4 - .../orc/apache-orc/tools/test/ToolTest.hh | 4 - .../formats/orc/apache-orc/tools/test/gzip.cc | 4 - .../formats/orc/apache-orc/tools/test/gzip.hh | 4 - be/src/util/aes_util.h | 4 - be/src/util/aligned_new.h | 4 - be/src/util/alignment.h | 4 - be/src/util/arrow/utils.cpp | 4 - be/src/util/arrow/utils.h | 4 - be/src/util/bfd_parser.h | 4 - be/src/util/bitmap.cpp | 4 - be/src/util/core_local.h | 4 - be/src/util/cpu_info.cpp | 4 - be/src/util/cpu_info.h | 4 - be/src/util/crc32c.cpp | 4 - be/src/util/crc32c.h | 4 - be/src/util/date_func.cpp | 4 - be/src/util/date_func.h | 4 - be/src/util/debug/leak_annotations.h | 4 - be/src/util/debug/leakcheck_disabler.h | 4 - be/src/util/debug_counters.h | 4 - be/src/util/debug_util.h | 4 - be/src/util/disk_info.cpp | 4 - be/src/util/dynamic_util.cpp | 4 - be/src/util/dynamic_util.h | 4 - be/src/util/easy_json.cc | 4 - be/src/util/easy_json.h | 4 - be/src/util/errno.cpp | 4 - be/src/util/errno.h | 4 - be/src/util/error_util.h | 4 - be/src/util/faststring.cc | 4 - be/src/util/load_error_hub.h | 4 - be/src/util/logging.h | 4 - be/src/util/md5.cpp | 4 - be/src/util/md5.h | 4 - be/src/util/mem_util.hpp | 4 - be/src/util/monotime.cpp | 4 - be/src/util/mysql_load_error_hub.h | 4 - be/src/util/null_load_error_hub.h | 4 - be/src/util/once.h | 4 - be/src/util/path_builder.cpp | 4 - be/src/util/path_builder.h | 4 - be/src/util/path_trie.hpp | 4 - be/src/util/path_util.h | 4 - be/src/util/pretty_printer.h | 4 - be/src/util/random.h | 4 - be/src/util/ref_count_closure.h | 4 - be/src/util/scoped_cleanup.h | 4 - be/src/util/semaphore.hpp | 4 - be/src/util/simdutf8check.h | 4 - be/src/util/spinlock.cc | 4 - be/src/util/spinlock.h | 4 - be/src/util/sse_util.hpp | 4 - be/src/util/stack_util.cpp | 4 - be/src/util/stack_util.h | 4 - be/src/util/static_asserts.cpp | 4 - be/src/util/string_parser.cpp | 4 - be/src/util/symbols_util.h | 4 - be/src/util/system_metrics.h | 4 - be/src/util/template_util.h | 4 - be/src/util/thrift_client.cpp | 4 - be/src/util/thrift_client.h | 4 - be/src/util/thrift_rpc_helper.h | 4 - be/src/util/time.cpp | 4 - be/src/util/trace.cpp | 4 - be/src/util/trace.h | 4 - be/src/util/url_coding.cpp | 4 - be/src/util/url_coding.h | 4 - be/test/common/config_test.cpp | 4 - be/test/geo/geo_types_test.cpp | 4 - be/test/geo/wkt_parse_test.cpp | 4 - be/test/http/http_client_test.cpp | 4 - be/test/http/http_utils_test.cpp | 4 - be/test/http/message_body_sink_test.cpp | 4 - be/test/plugin/example/plugin_example.cpp | 4 - be/test/plugin/plugin_loader_test.cpp | 4 - be/test/plugin/plugin_mgr_test.cpp | 4 - be/test/runtime/decimal_value_test.cpp | 4 - be/test/runtime/large_int_value_test.cpp | 4 - be/test/runtime/raw_value_test.cpp | 4 - be/test/runtime/small_file_mgr_test.cpp | 4 - be/test/runtime/snapshot_loader_test.cpp | 4 - be/test/runtime/string_value_test.cpp | 4 - be/test/runtime/thread_resource_mgr_test.cpp | 4 - be/test/storage/decimal12_test.cpp | 4 - be/test/storage/hll_test.cpp | 4 - .../unique_rowset_id_generator_test.cpp | 4 - be/test/storage/selection_vector_test.cpp | 4 - be/test/util/aes_util_test.cpp | 4 - be/test/util/bitmap_test.cpp | 4 - be/test/util/brpc_stub_cache_test.cpp | 4 - be/test/util/byte_buffer_test2.cpp | 4 - be/test/util/cidr_test.cpp | 4 - be/test/util/coding_test.cpp | 4 - be/test/util/core_local_test.cpp | 4 - be/test/util/countdown_latch_test.cpp | 4 - be/test/util/crc32c_test.cpp | 4 - be/test/util/easy_json-test.cpp | 4 - be/test/util/filesystem_util_test.cpp | 4 - .../util/frame_of_reference_coding_test.cpp | 4 - be/test/util/json_util_test.cpp | 4 - be/test/util/md5_test.cpp | 4 - be/test/util/monotime_test.cpp | 4 - be/test/util/new_metrics_test.cpp | 4 - be/test/util/path_trie_test.cpp | 4 - be/test/util/radix_sort_test.cpp | 4 - be/test/util/scoped_cleanup_test.cpp | 4 - be/test/util/thread_test.cpp | 4 - be/test/util/threadpool_test.cpp | 4 - be/test/util/trace_test.cpp | 4 - be/test/util/uid_util_test.cpp | 4 - 210 files changed, 569 insertions(+), 1402 deletions(-) diff --git a/be/src/formats/orc/apache-orc/CMakeLists.txt b/be/src/formats/orc/apache-orc/CMakeLists.txt index 2ea4a6b89428d2..662c3b8857b0d2 100644 --- a/be/src/formats/orc/apache-orc/CMakeLists.txt +++ b/be/src/formats/orc/apache-orc/CMakeLists.txt @@ -1,7 +1,3 @@ -# This file is made available under Elastic License 2.0. -# This file is based on code available under the Apache license here: -# https://github.com/apache/orc/blob/main/CMakeLists.txt - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/be/src/formats/orc/apache-orc/c++/CMakeLists.txt b/be/src/formats/orc/apache-orc/c++/CMakeLists.txt index ba36649c2dac2a..e5694d282da6bf 100644 --- a/be/src/formats/orc/apache-orc/c++/CMakeLists.txt +++ b/be/src/formats/orc/apache-orc/c++/CMakeLists.txt @@ -1,7 +1,3 @@ -# This file is made available under Elastic License 2.0. -# This file is based on code available under the Apache license here: -# https://github.com/apache/orc/tree/main/c++/CMakeLists.txt - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/be/src/formats/orc/apache-orc/c++/Doxyfile b/be/src/formats/orc/apache-orc/c++/Doxyfile index 595486cac14677..ac1f5a8199cd8f 100644 --- a/be/src/formats/orc/apache-orc/c++/Doxyfile +++ b/be/src/formats/orc/apache-orc/c++/Doxyfile @@ -1,7 +1,3 @@ -# This file is made available under Elastic License 2.0. -# This file is based on code available under the Apache license here: -# https://github.com/apache/orc/tree/main/c++/Doxyfile - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/BloomFilter.hh b/be/src/formats/orc/apache-orc/c++/include/orc/BloomFilter.hh index dc9c9583b44481..af17100446ae9f 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/BloomFilter.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/BloomFilter.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/BloomFilter.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/ColumnPrinter.hh b/be/src/formats/orc/apache-orc/c++/include/orc/ColumnPrinter.hh index 5b91a1db25769a..f0040bcc08dce9 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/ColumnPrinter.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/ColumnPrinter.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/ColumnPrinter.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/Common.hh b/be/src/formats/orc/apache-orc/c++/include/orc/Common.hh index 762a2f4bb206c1..d06e955cb8d821 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/Common.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/Common.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/Common.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/Exceptions.hh b/be/src/formats/orc/apache-orc/c++/include/orc/Exceptions.hh index 2fa6683a209993..70150c357762c0 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/Exceptions.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/Exceptions.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/Exceptions.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/Int128.hh b/be/src/formats/orc/apache-orc/c++/include/orc/Int128.hh index 6838f353069bc0..27243fe6010bd4 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/Int128.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/Int128.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/Int128.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/Statistics.hh b/be/src/formats/orc/apache-orc/c++/include/orc/Statistics.hh index 94786935e2f46d..8987894dc798d6 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/Statistics.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/Statistics.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/Statistics.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/Type.hh b/be/src/formats/orc/apache-orc/c++/include/orc/Type.hh index b79cdabb203cf5..b23a660547587c 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/Type.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/Type.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/Type.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/Writer.hh b/be/src/formats/orc/apache-orc/c++/include/orc/Writer.hh index 00908b22585416..444ba307feb514 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/Writer.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/Writer.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/Writer.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/orc-config.hh.in b/be/src/formats/orc/apache-orc/c++/include/orc/orc-config.hh.in index 2d0a4a7d9df38c..56db946cc35224 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/orc-config.hh.in +++ b/be/src/formats/orc/apache-orc/c++/include/orc/orc-config.hh.in @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/orc-config.hh.in - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/sargs/Literal.hh b/be/src/formats/orc/apache-orc/c++/include/orc/sargs/Literal.hh index 9dd005708ee6d2..163d6ee488cf88 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/sargs/Literal.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/sargs/Literal.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/sargs/Literal.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/include/orc/sargs/TruthValue.hh b/be/src/formats/orc/apache-orc/c++/include/orc/sargs/TruthValue.hh index e58d2bd469993d..f15cbac39b0844 100644 --- a/be/src/formats/orc/apache-orc/c++/include/orc/sargs/TruthValue.hh +++ b/be/src/formats/orc/apache-orc/c++/include/orc/sargs/TruthValue.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/include/orc/sargs/TruthValue.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Adaptor.cc b/be/src/formats/orc/apache-orc/c++/src/Adaptor.cc index 285bed7df05219..5416fdd418a0ee 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Adaptor.cc +++ b/be/src/formats/orc/apache-orc/c++/src/Adaptor.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Adaptor.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Adaptor.hh.in b/be/src/formats/orc/apache-orc/c++/src/Adaptor.hh.in index 7cd077f64de2b7..cd32b162367e1b 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Adaptor.hh.in +++ b/be/src/formats/orc/apache-orc/c++/src/Adaptor.hh.in @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Adaptor.hh.in - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/BloomFilter.cc b/be/src/formats/orc/apache-orc/c++/src/BloomFilter.cc index 07a7ec8f63c0f6..ad25d398358c9f 100644 --- a/be/src/formats/orc/apache-orc/c++/src/BloomFilter.cc +++ b/be/src/formats/orc/apache-orc/c++/src/BloomFilter.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/BloomFilter.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/BloomFilter.hh b/be/src/formats/orc/apache-orc/c++/src/BloomFilter.hh index 1c1935e701da81..4fd6451bc11c1e 100644 --- a/be/src/formats/orc/apache-orc/c++/src/BloomFilter.hh +++ b/be/src/formats/orc/apache-orc/c++/src/BloomFilter.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/BloomFilter.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/ByteRLE.cc b/be/src/formats/orc/apache-orc/c++/src/ByteRLE.cc index 986417fba5db93..79e05bd0b73208 100644 --- a/be/src/formats/orc/apache-orc/c++/src/ByteRLE.cc +++ b/be/src/formats/orc/apache-orc/c++/src/ByteRLE.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/ByteRLE.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/ByteRLE.hh b/be/src/formats/orc/apache-orc/c++/src/ByteRLE.hh index c96309bca441d9..735f8653e0e5d9 100644 --- a/be/src/formats/orc/apache-orc/c++/src/ByteRLE.hh +++ b/be/src/formats/orc/apache-orc/c++/src/ByteRLE.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/ByteRLE.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/CMakeLists.txt b/be/src/formats/orc/apache-orc/c++/src/CMakeLists.txt index 51240127054765..79ecc05347f5c0 100644 --- a/be/src/formats/orc/apache-orc/c++/src/CMakeLists.txt +++ b/be/src/formats/orc/apache-orc/c++/src/CMakeLists.txt @@ -1,7 +1,3 @@ -# This file is made available under Elastic License 2.0. -# This file is based on code available under the Apache license here: -# https://github.com/apache/orc/tree/main/c++/src/CMakeLists.txt - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/src/ColumnPrinter.cc b/be/src/formats/orc/apache-orc/c++/src/ColumnPrinter.cc index 8ddbe390c05fbc..c5135e94acfbd9 100644 --- a/be/src/formats/orc/apache-orc/c++/src/ColumnPrinter.cc +++ b/be/src/formats/orc/apache-orc/c++/src/ColumnPrinter.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/ColumnPrinter.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.cc b/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.cc index d650d9f8e57c3d..253974f61a3534 100644 --- a/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.cc +++ b/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/ColumnWriter.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.hh b/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.hh index 7054560b206c56..0773fa9894ec78 100644 --- a/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.hh +++ b/be/src/formats/orc/apache-orc/c++/src/ColumnWriter.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/ColumnWriter.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Common.cc b/be/src/formats/orc/apache-orc/c++/src/Common.cc index b9ce7ef47535a3..c269d30f26cfa9 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Common.cc +++ b/be/src/formats/orc/apache-orc/c++/src/Common.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Common.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Compression.hh b/be/src/formats/orc/apache-orc/c++/src/Compression.hh index bc06279f043864..aa85d9b227f455 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Compression.hh +++ b/be/src/formats/orc/apache-orc/c++/src/Compression.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Compression.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Exceptions.cc b/be/src/formats/orc/apache-orc/c++/src/Exceptions.cc index 8402bff1c8ed4e..225ee6ce740b05 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Exceptions.cc +++ b/be/src/formats/orc/apache-orc/c++/src/Exceptions.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Exceptions.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Int128.cc b/be/src/formats/orc/apache-orc/c++/src/Int128.cc index fc06bd563bc290..005df772779ccb 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Int128.cc +++ b/be/src/formats/orc/apache-orc/c++/src/Int128.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Int128.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/LzoDecompressor.hh b/be/src/formats/orc/apache-orc/c++/src/LzoDecompressor.hh index 7b68a0a52978b3..d04014ff40e7e3 100644 --- a/be/src/formats/orc/apache-orc/c++/src/LzoDecompressor.hh +++ b/be/src/formats/orc/apache-orc/c++/src/LzoDecompressor.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/LzoDecompressor.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Murmur3.cc b/be/src/formats/orc/apache-orc/c++/src/Murmur3.cc index 519b89d518c0f6..116e332608939f 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Murmur3.cc +++ b/be/src/formats/orc/apache-orc/c++/src/Murmur3.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Murmur3.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Murmur3.hh b/be/src/formats/orc/apache-orc/c++/src/Murmur3.hh index f47ef5b950e247..820f41c4f39e78 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Murmur3.hh +++ b/be/src/formats/orc/apache-orc/c++/src/Murmur3.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Murmur3.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/OrcFile.cc b/be/src/formats/orc/apache-orc/c++/src/OrcFile.cc index 391a29f5795dd4..b32382596e3782 100644 --- a/be/src/formats/orc/apache-orc/c++/src/OrcFile.cc +++ b/be/src/formats/orc/apache-orc/c++/src/OrcFile.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/OrcFile.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/OrcHdfsFile.cc b/be/src/formats/orc/apache-orc/c++/src/OrcHdfsFile.cc index 1f1f8453c48bd3..fffd3fd0f8029d 100644 --- a/be/src/formats/orc/apache-orc/c++/src/OrcHdfsFile.cc +++ b/be/src/formats/orc/apache-orc/c++/src/OrcHdfsFile.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/OrcHdfsFile.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RLE.cc b/be/src/formats/orc/apache-orc/c++/src/RLE.cc index 3f8bde1917a5b0..2e6418858f39e6 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RLE.cc +++ b/be/src/formats/orc/apache-orc/c++/src/RLE.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RLE.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RLE.hh b/be/src/formats/orc/apache-orc/c++/src/RLE.hh index 6d1fd5d7a2ae5b..76ab4a9aa9eeaf 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RLE.hh +++ b/be/src/formats/orc/apache-orc/c++/src/RLE.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RLE.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.cc b/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.cc index fc4a890cc8b0dd..2767293c684dee 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.cc +++ b/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RLEV2Util.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.hh b/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.hh index 004a0a02342511..4d1c5f46446bd3 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.hh +++ b/be/src/formats/orc/apache-orc/c++/src/RLEV2Util.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RLEV2Util.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RLEv1.cc b/be/src/formats/orc/apache-orc/c++/src/RLEv1.cc index 075682f6954a4b..7419f9717b310b 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RLEv1.cc +++ b/be/src/formats/orc/apache-orc/c++/src/RLEv1.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RLEv1.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RLEv1.hh b/be/src/formats/orc/apache-orc/c++/src/RLEv1.hh index f212b45a207557..0844078f0e560e 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RLEv1.hh +++ b/be/src/formats/orc/apache-orc/c++/src/RLEv1.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RLEv1.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RleDecoderV2.cc b/be/src/formats/orc/apache-orc/c++/src/RleDecoderV2.cc index 815973aaedb1c5..d19210fc199b9a 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RleDecoderV2.cc +++ b/be/src/formats/orc/apache-orc/c++/src/RleDecoderV2.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RleDecoderV2.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/RleEncoderV2.cc b/be/src/formats/orc/apache-orc/c++/src/RleEncoderV2.cc index d52fba4fc1cc22..5a5b1c4aa6a6e2 100644 --- a/be/src/formats/orc/apache-orc/c++/src/RleEncoderV2.cc +++ b/be/src/formats/orc/apache-orc/c++/src/RleEncoderV2.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/RleEncoderV2.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Statistics.cc b/be/src/formats/orc/apache-orc/c++/src/Statistics.cc index 7c61f26afbb38d..5f51aa2d71ba1e 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Statistics.cc +++ b/be/src/formats/orc/apache-orc/c++/src/Statistics.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Statistics.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Statistics.hh b/be/src/formats/orc/apache-orc/c++/src/Statistics.hh index 56eea559cb992b..c47b76ca2a1399 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Statistics.hh +++ b/be/src/formats/orc/apache-orc/c++/src/Statistics.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Statistics.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Timezone.hh b/be/src/formats/orc/apache-orc/c++/src/Timezone.hh index d114051fc9b4a9..6f519c1fd8dbb7 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Timezone.hh +++ b/be/src/formats/orc/apache-orc/c++/src/Timezone.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Timezone.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/TypeImpl.cc b/be/src/formats/orc/apache-orc/c++/src/TypeImpl.cc index 76437ece9cd49c..cb15ee3b061dd0 100644 --- a/be/src/formats/orc/apache-orc/c++/src/TypeImpl.cc +++ b/be/src/formats/orc/apache-orc/c++/src/TypeImpl.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/TypeImpl.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/TypeImpl.hh b/be/src/formats/orc/apache-orc/c++/src/TypeImpl.hh index 00b379d05a11ae..6489e9b33bbf42 100644 --- a/be/src/formats/orc/apache-orc/c++/src/TypeImpl.hh +++ b/be/src/formats/orc/apache-orc/c++/src/TypeImpl.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/TypeImpl.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/Writer.cc b/be/src/formats/orc/apache-orc/c++/src/Writer.cc index db72e043374f4d..ab4dfd3c95ec92 100644 --- a/be/src/formats/orc/apache-orc/c++/src/Writer.cc +++ b/be/src/formats/orc/apache-orc/c++/src/Writer.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/Writer.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.cc b/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.cc index 58c0ff8b67b062..aa524085293a95 100644 --- a/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.cc +++ b/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/io/OutputStream.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.hh b/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.hh index 5f774bd5d43726..6f7550e44f655b 100644 --- a/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.hh +++ b/be/src/formats/orc/apache-orc/c++/src/io/OutputStream.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/io/OutputStream.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.cc b/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.cc index cc06c9d981395e..2260c22d82ea75 100644 --- a/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.cc +++ b/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/sargs/ExpressionTree.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.hh b/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.hh index 04cf9ec305bfc1..695aa6a2970c36 100644 --- a/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.hh +++ b/be/src/formats/orc/apache-orc/c++/src/sargs/ExpressionTree.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/sargs/ExpressionTree.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/sargs/TruthValue.cc b/be/src/formats/orc/apache-orc/c++/src/sargs/TruthValue.cc index 7654f1a6d36e1a..8516a8aefada67 100644 --- a/be/src/formats/orc/apache-orc/c++/src/sargs/TruthValue.cc +++ b/be/src/formats/orc/apache-orc/c++/src/sargs/TruthValue.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/sargs/TruthValue.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/src/wrap/coded-stream-wrapper.h b/be/src/formats/orc/apache-orc/c++/src/wrap/coded-stream-wrapper.h index 054bafd8e5b456..d5d161ddb0886a 100644 --- a/be/src/formats/orc/apache-orc/c++/src/wrap/coded-stream-wrapper.h +++ b/be/src/formats/orc/apache-orc/c++/src/wrap/coded-stream-wrapper.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/wrap/coded-stream-wrapper.h - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/src/wrap/gmock.h b/be/src/formats/orc/apache-orc/c++/src/wrap/gmock.h index f73d3c60a96d03..f8e5473c551454 100644 --- a/be/src/formats/orc/apache-orc/c++/src/wrap/gmock.h +++ b/be/src/formats/orc/apache-orc/c++/src/wrap/gmock.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/wrap/gmock.h - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/src/wrap/gtest-wrapper.h b/be/src/formats/orc/apache-orc/c++/src/wrap/gtest-wrapper.h index 3581a0e72270eb..c377b26957567e 100644 --- a/be/src/formats/orc/apache-orc/c++/src/wrap/gtest-wrapper.h +++ b/be/src/formats/orc/apache-orc/c++/src/wrap/gtest-wrapper.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/wrap/gtest-wrapper.h - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.cc b/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.cc index 457d81ee504c10..01202dd8d00dff 100644 --- a/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.cc +++ b/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/wrap/orc-proto-wrapper.cc - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.hh b/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.hh index 30dc5ff99c38ae..f14a6ac2d949fb 100644 --- a/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.hh +++ b/be/src/formats/orc/apache-orc/c++/src/wrap/orc-proto-wrapper.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/wrap/orc-proto-wrapper.hh - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/src/wrap/snappy-wrapper.h b/be/src/formats/orc/apache-orc/c++/src/wrap/snappy-wrapper.h index 6bc26b5237ca7e..04adaa14bb4b48 100644 --- a/be/src/formats/orc/apache-orc/c++/src/wrap/snappy-wrapper.h +++ b/be/src/formats/orc/apache-orc/c++/src/wrap/snappy-wrapper.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/wrap/snappy-wrapper.h - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/src/wrap/zero-copy-stream-wrapper.h b/be/src/formats/orc/apache-orc/c++/src/wrap/zero-copy-stream-wrapper.h index fde18ed4006b3f..6e8904b1bd27f5 100644 --- a/be/src/formats/orc/apache-orc/c++/src/wrap/zero-copy-stream-wrapper.h +++ b/be/src/formats/orc/apache-orc/c++/src/wrap/zero-copy-stream-wrapper.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/src/wrap/zero-copy-stream-wrapper.h - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.cc b/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.cc index c5ddc06bc8b4ee..027a0d79058900 100644 --- a/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.cc +++ b/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/MemoryInputStream.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.hh b/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.hh index 6d36b51baefbdc..159dc7c413fc58 100644 --- a/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.hh +++ b/be/src/formats/orc/apache-orc/c++/test/MemoryInputStream.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/MemoryInputStream.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/MemoryOutputStream.hh b/be/src/formats/orc/apache-orc/c++/test/MemoryOutputStream.hh index 406a627457a0fe..d60b41fd5a60a7 100644 --- a/be/src/formats/orc/apache-orc/c++/test/MemoryOutputStream.hh +++ b/be/src/formats/orc/apache-orc/c++/test/MemoryOutputStream.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/MemoryOutputStream.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/OrcTest.hh b/be/src/formats/orc/apache-orc/c++/test/OrcTest.hh index a388f9d4621963..7ff0ec4448cc39 100644 --- a/be/src/formats/orc/apache-orc/c++/test/OrcTest.hh +++ b/be/src/formats/orc/apache-orc/c++/test/OrcTest.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/OrcTest.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestAttributes.cc b/be/src/formats/orc/apache-orc/c++/test/TestAttributes.cc index e7f1de0393683b..effb9ca8d345f4 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestAttributes.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestAttributes.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestAttributes.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestBloomFilter.cc b/be/src/formats/orc/apache-orc/c++/test/TestBloomFilter.cc index e1f712e8d47fa1..9d14147d32e8e0 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestBloomFilter.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestBloomFilter.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestBloomFilter.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestByteRLEEncoder.cc b/be/src/formats/orc/apache-orc/c++/test/TestByteRLEEncoder.cc index d1a2c758ba140f..775319ba537c13 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestByteRLEEncoder.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestByteRLEEncoder.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestByteRLEEncoder.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestByteRle.cc b/be/src/formats/orc/apache-orc/c++/test/TestByteRle.cc index e81d2f6972abc6..81ca9863d90efc 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestByteRle.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestByteRle.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestByteRle.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestColumnPrinter.cc b/be/src/formats/orc/apache-orc/c++/test/TestColumnPrinter.cc index e80163d467fa8c..90c0b37ae0912c 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestColumnPrinter.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestColumnPrinter.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestColumnPrinter.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestColumnStatistics.cc b/be/src/formats/orc/apache-orc/c++/test/TestColumnStatistics.cc index 17bda0f4a9885e..0ed22a26f101c9 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestColumnStatistics.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestColumnStatistics.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestColumnStatistics.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestCompression.cc b/be/src/formats/orc/apache-orc/c++/test/TestCompression.cc index 27982c065d057c..7c4f849fe1d53d 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestCompression.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestCompression.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestCompression.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestDecimal.cc b/be/src/formats/orc/apache-orc/c++/test/TestDecimal.cc index db1165f56ab9ac..03fa9e11244a3e 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestDecimal.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestDecimal.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestDecimal.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestDecompression.cc b/be/src/formats/orc/apache-orc/c++/test/TestDecompression.cc index 04ec460be044a6..cb4fba94dedb58 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestDecompression.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestDecompression.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestDecompression.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestDictionaryEncoding.cc b/be/src/formats/orc/apache-orc/c++/test/TestDictionaryEncoding.cc index 0a36925e4ca7d4..0145f9c6d3915a 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestDictionaryEncoding.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestDictionaryEncoding.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestDictionaryEncoding.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestDriver.cc b/be/src/formats/orc/apache-orc/c++/test/TestDriver.cc index e2d32868b78e8d..b7a6217d65de14 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestDriver.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestDriver.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestDriver.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestInt128.cc b/be/src/formats/orc/apache-orc/c++/test/TestInt128.cc index 8fe24a923547f1..b84333a0492cbf 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestInt128.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestInt128.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestInt128.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestPredicateLeaf.cc b/be/src/formats/orc/apache-orc/c++/test/TestPredicateLeaf.cc index 46669f1bac1334..8631822c9811c7 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestPredicateLeaf.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestPredicateLeaf.cc @@ -1,10 +1,5 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance +*regarding copyright ownership.The ASF licenses this file *to you under the Apache License, + Version 2.0(the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 @@ -15,7 +10,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - #include "BloomFilter.hh" #include "Statistics.hh" #include "orc/BloomFilter.hh" @@ -25,585 +19,594 @@ namespace orc { -TEST(TestPredicateLeaf, testCompareToRangeInt) { - EXPECT_EQ(Location::BEFORE, compareToRange(19L, 20L, 40L)); - EXPECT_EQ(Location::AFTER, compareToRange(41L, 20L, 40L)); - EXPECT_EQ(Location::MIN, compareToRange(20L, 20L, 40L)); - EXPECT_EQ(Location::MIDDLE, compareToRange(21L, 20L, 40L)); - EXPECT_EQ(Location::MAX, compareToRange(40L, 20L, 40L)); - EXPECT_EQ(Location::BEFORE, compareToRange(0L, 1L, 1L)); - EXPECT_EQ(Location::MIN, compareToRange(1L, 1L, 1L)); - EXPECT_EQ(Location::AFTER, compareToRange(2L, 1L, 1L)); -} - -TEST(TestPredicateLeaf, testCompareToRangeString) { - EXPECT_EQ(Location::BEFORE, compareToRange(std::string("a"), std::string("b"), std::string("c"))); - EXPECT_EQ(Location::AFTER, compareToRange(std::string("d"), std::string("b"), std::string("c"))); - EXPECT_EQ(Location::MIN, compareToRange(std::string("b"), std::string("b"), std::string("c"))); - EXPECT_EQ(Location::MIDDLE, compareToRange(std::string("bb"), std::string("b"), std::string("c"))); - EXPECT_EQ(Location::MAX, compareToRange(std::string("c"), std::string("b"), std::string("c"))); - EXPECT_EQ(Location::BEFORE, compareToRange(std::string("a"), std::string("b"), std::string("b"))); - EXPECT_EQ(Location::MIN, compareToRange(std::string("b"), std::string("b"), std::string("b"))); - EXPECT_EQ(Location::AFTER, compareToRange(std::string("c"), std::string("b"), std::string("b"))); -} - -TEST(TestPredicateLeaf, testCompareToCharNeedConvert) { - EXPECT_EQ(Location::BEFORE, compareToRange(std::string("apple"), std::string("hello"), std::string("world"))); - EXPECT_EQ(Location::AFTER, compareToRange(std::string("zombie"), std::string("hello"), std::string("world"))); - EXPECT_EQ(Location::MIN, compareToRange(std::string("hello"), std::string("hello"), std::string("world"))); - EXPECT_EQ(Location::MIDDLE, compareToRange(std::string("pilot"), std::string("hello"), std::string("world"))); - EXPECT_EQ(Location::MAX, compareToRange(std::string("world"), std::string("hello"), std::string("world"))); - EXPECT_EQ(Location::BEFORE, compareToRange(std::string("apple"), std::string("hello"), std::string("hello"))); - EXPECT_EQ(Location::MIN, compareToRange(std::string("hello"), std::string("hello"), std::string("hello"))); - EXPECT_EQ(Location::AFTER, compareToRange(std::string("zombie"), std::string("hello"), std::string("hello"))); -} - -static proto::ColumnStatistics createBooleanStats(uint64_t n, uint64_t trueCount, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(n); - - proto::BucketStatistics* boolStats = colStats.mutable_bucketstatistics(); - boolStats->add_count(trueCount); - return colStats; -} - -static proto::ColumnStatistics createIntStats(int64_t min, int64_t max, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(10); - - proto::IntegerStatistics* intStats = colStats.mutable_intstatistics(); - intStats->set_minimum(min); - intStats->set_maximum(max); - return colStats; -} - -static proto::ColumnStatistics createDoubleStats(double min, double max, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(10); - - proto::DoubleStatistics* doubleStats = colStats.mutable_doublestatistics(); - const auto& curr_sum = min + max; - doubleStats->set_minimum(min); - doubleStats->set_maximum(max); - doubleStats->set_sum(curr_sum); - return colStats; -} - -static proto::ColumnStatistics createDecimalStats(Decimal min, Decimal max, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(10); - - proto::DecimalStatistics* decimalStats = colStats.mutable_decimalstatistics(); - decimalStats->set_minimum(min.toString(true)); - decimalStats->set_maximum(max.toString(true)); - return colStats; -} - -static proto::ColumnStatistics createDateStats(int32_t min, int32_t max, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(10); - - proto::DateStatistics* dateStats = colStats.mutable_datestatistics(); - dateStats->set_minimum(min); - dateStats->set_maximum(max); - return colStats; -} - -static proto::ColumnStatistics createTimestampStats(int64_t min, int64_t max, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(10); - - proto::TimestampStatistics* tsStats = colStats.mutable_timestampstatistics(); - tsStats->set_minimumutc(min); - tsStats->set_maximumutc(max); - return colStats; -} - -static proto::ColumnStatistics createTimestampStats(int64_t minSecond, int32_t minNano, int64_t maxSecond, - int32_t maxNano, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(10); - - proto::TimestampStatistics* tsStats = colStats.mutable_timestampstatistics(); - tsStats->set_minimumutc(minSecond * 1000 + minNano / 1000000); - tsStats->set_maximumutc(maxSecond * 1000 + maxNano / 1000000); - tsStats->set_minimumnanos((minNano % 1000000) + 1); - tsStats->set_maximumnanos((maxNano % 1000000) + 1); - return colStats; -} - -static proto::ColumnStatistics createStringStats(std::string min, std::string max, bool hasNull = false) { - proto::ColumnStatistics colStats; - colStats.set_hasnull(hasNull); - colStats.set_numberofvalues(10); - - proto::StringStatistics* strStats = colStats.mutable_stringstatistics(); - strStats->set_minimum(min); - strStats->set_maximum(max); - return colStats; -} - -static TruthValue evaluate(const PredicateLeaf& pred, const proto::ColumnStatistics& pbStats, - const BloomFilter* bf = nullptr) { - return pred.evaluate(WriterVersion_ORC_135, pbStats, bf); -} - -TEST(TestPredicateLeaf, testPredEvalWithColStats) { - PredicateLeaf pred0(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::BOOLEAN, "x", Literal(true)); - EXPECT_EQ(TruthValue::YES, evaluate(pred0, createBooleanStats(10, 10))); - EXPECT_EQ(TruthValue::NO, evaluate(pred0, createBooleanStats(10, 0))); - - PredicateLeaf pred1(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::BOOLEAN, "x", Literal(false)); - EXPECT_EQ(TruthValue::NO, evaluate(pred1, createBooleanStats(10, 10))); - EXPECT_EQ(TruthValue::YES, evaluate(pred1, createBooleanStats(10, 0))); - - PredicateLeaf pred2(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", - Literal(static_cast(15))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred2, createIntStats(10, 100))); - EXPECT_EQ(TruthValue::NO, evaluate(pred2, createIntStats(50, 100))); - - // delibrately pass column statistics of float type - PredicateLeaf pred3(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::FLOAT, "x", Literal(1.0)); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred3, createIntStats(10, 100))); - - PredicateLeaf pred4(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::FLOAT, "x", Literal(15.0)); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred4, createDoubleStats(10.0, 100.0))); - EXPECT_EQ(TruthValue::NO, evaluate(pred4, createDoubleStats(50.0, 100.0))); - - PredicateLeaf pred5(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::STRING, "x", Literal("100", 3)); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred5, createStringStats("10", "1000"))); - - PredicateLeaf pred6(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DATE, "x", - Literal(PredicateDataType::DATE, 15)); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred6, createDateStats(10, 100))); - - PredicateLeaf pred7(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DATE, "x", - Literal(PredicateDataType::DATE, 150)); - EXPECT_EQ(TruthValue::NO, evaluate(pred7, createDateStats(10, 100))); - - PredicateLeaf pred8(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::TIMESTAMP, "x", Literal(500L, 0)); - EXPECT_EQ(TruthValue::NO, evaluate(pred8, createTimestampStats(450LL, 490L))); - - PredicateLeaf pred9(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DECIMAL, "x", - Literal(1500, 4, 2)); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred9, createDecimalStats(Decimal("10.0"), Decimal("100.0")))); - - PredicateLeaf pred10(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", - Literal(PredicateDataType::LONG)); - EXPECT_EQ(TruthValue::NO, evaluate(pred2, createIntStats(50, 100))); -} - -TEST(TestPredicateLeaf, testEquals) { - PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::LONG, "x", - Literal(static_cast(15))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(15L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 15L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(0L, 10L, true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(15L, 15L, true))); - EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(20L, 30L))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(15L, 30L))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 30L))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 15L))); - EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(0L, 10L))); - EXPECT_EQ(TruthValue::YES, evaluate(pred, createIntStats(15L, 15L))); -} - -TEST(TestPredicateLeaf, testNullSafeEquals) { - PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", - Literal(static_cast(15))); - EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(20L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(15L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 15L, true))); - EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(0L, 10L, true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(15L, 15L, true))); -} - -TEST(TestPredicateLeaf, testLessThan) { - PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::LONG, "x", - Literal(static_cast(15))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 30L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(15L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 15L, true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(0L, 10L, true))); -} - -TEST(TestPredicateLeaf, testLessThanEquals) { - PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN_EQUALS, PredicateDataType::LONG, "x", - Literal(static_cast(15))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(15L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(10L, 15L, true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(0L, 10L, true))); - // Edge cases where minValue == maxValue - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(10L, 10L, true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(15L, 15L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 20L, true))); - // Edge case where stats contain NaN or Inf numbers - PredicateLeaf pred4(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::FLOAT, "x", Literal(10.0)); - const auto& dInf = static_cast(INFINITY); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred4, createDoubleStats(dInf, dInf))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred4, createDoubleStats(dInf, dInf, true))); -} - -TEST(TestPredicateLeaf, testIn) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::LONG, "x", - {Literal(static_cast(10)), Literal(static_cast(20))}); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(20L, 20L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(30L, 30L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(12L, 18L, true))); - - std::vector inList{static_cast(10), static_cast(15), static_cast(20)}; - PredicateLeaf pred2(PredicateLeaf::Operator::IN, PredicateDataType::LONG, "y", inList); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred2, createIntStats(20L, 20L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred2, createIntStats(12L, 14L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred2, createIntStats(16L, 19L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred2, createIntStats(12L, 18L, true))); -} - -TEST(TestPredicateLeaf, testBetween) { - PredicateLeaf pred(PredicateLeaf::Operator::BETWEEN, PredicateDataType::LONG, "x", - {Literal(static_cast(10)), Literal(static_cast(20))}); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(0L, 5L, true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(30L, 40L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(5L, 15L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(15L, 25L, true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(5L, 25L, true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(10L, 20L, true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(12L, 18L, true))); - - // check with empty predicate list - PredicateLeaf pred1(PredicateLeaf::Operator::BETWEEN, PredicateDataType::LONG, "x", {}); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(0L, 5L, true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(30L, 40L, true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(5L, 15L, true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(10L, 20L, true))); -} - -TEST(TestPredicateLeaf, testIsNull) { - PredicateLeaf pred(PredicateLeaf::Operator::IS_NULL, PredicateDataType::LONG, "x", {}); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(20L, 30L, true))); -} - -TEST(TestPredicateLeaf, testEqualsWithNullInStats) { - PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::STRING, "x", Literal("c", 1)); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("a", "b", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "c", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "d", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); -} - -TEST(TestPredicateLeaf, testNullSafeEqualsWithNullInStats) { - PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::STRING, "x", Literal("c", 1)); - EXPECT_EQ(TruthValue::NO, evaluate(pred, createStringStats("d", "e", true))); - EXPECT_EQ(TruthValue::NO, evaluate(pred, createStringStats("a", "b", true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("b", "c", true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("c", "d", true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("b", "d", true))); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("c", "c", true))); -} - -TEST(TestPredicateLeaf, testLessThanWithNullInStats) { - PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::STRING, "x", Literal("c", 1)); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("a", "b", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "c", true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("c", "d", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("c", "c", true))); -} - -TEST(TestPredicateLeaf, testLessThanEqualsWithNullInStats) { - PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN_EQUALS, PredicateDataType::STRING, "x", Literal("c", 1)); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("a", "b", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("b", "c", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "d", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); - // Edge cases where minValue == maxValue - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("a", "a", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "d", true))); -} - -TEST(TestPredicateLeaf, testInWithNullInStats) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::STRING, "x", {Literal("c", 1), Literal("f", 1)}); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("a", "b", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("e", "f", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "d", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); -} - -TEST(TestPredicateLeaf, testBetweenWithNullInStats) { - PredicateLeaf pred(PredicateLeaf::Operator::BETWEEN, PredicateDataType::STRING, "x", - {Literal("c", 1), Literal("f", 1)}); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("d", "e", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("e", "f", true))); - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("h", "g", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("f", "g", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("e", "g", true))); - - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "e", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "f", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "g", true))); - - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("a", "b", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("a", "c", true))); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); - EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); -} - -TEST(TestPredicateLeaf, testIsNullWithNullInStats) { - PredicateLeaf pred(PredicateLeaf::Operator::IS_NULL, PredicateDataType::STRING, "x", {}); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("c", "d", true))); - EXPECT_EQ(TruthValue::NO, evaluate(pred, createStringStats("c", "d", false))); -} - -TEST(TestPredicateLeaf, testIntNullSafeEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", - Literal(static_cast(15))); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addLong(i); - } - EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(10, 100), &bf)); - bf.addLong(15); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10, 100), &bf)); -} - -TEST(TestPredicateLeaf, testIntEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::LONG, "x", - Literal(static_cast(15))); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addLong(i); - } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); - bf.addLong(15); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); -} - -TEST(TestPredicateLeaf, testIntInBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::LONG, "x", - {Literal(static_cast(15)), Literal(static_cast(19))}); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addLong(i); - } - bf.addLong(19); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); - bf.addLong(15); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); -} - -TEST(TestPredicateLeaf, testDoubleNullSafeEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::FLOAT, "x", Literal(15.0)); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addDouble(static_cast(i)); - } - EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); - bf.addDouble(15.0); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); -} - -TEST(TestPredicateLeaf, testDoubleEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::FLOAT, "x", Literal(15.0)); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addDouble(static_cast(i)); - } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); - bf.addDouble(15.0); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); -} - -TEST(TestPredicateLeaf, testDoubleInBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::FLOAT, "x", {Literal(15.0), Literal(19.0)}); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addDouble(static_cast(i)); - } - bf.addDouble(19.0); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); - bf.addDouble(15.0); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); -} - -TEST(TestPredicateLeaf, testStringEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::STRING, "x", Literal("str_15", 6)); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - std::string str = "str_" + std::to_string(i); - bf.addBytes(str.c_str(), static_cast(str.size())); + TEST(TestPredicateLeaf, testCompareToRangeInt) { + EXPECT_EQ(Location::BEFORE, compareToRange(19L, 20L, 40L)); + EXPECT_EQ(Location::AFTER, compareToRange(41L, 20L, 40L)); + EXPECT_EQ(Location::MIN, compareToRange(20L, 20L, 40L)); + EXPECT_EQ(Location::MIDDLE, compareToRange(21L, 20L, 40L)); + EXPECT_EQ(Location::MAX, compareToRange(40L, 20L, 40L)); + EXPECT_EQ(Location::BEFORE, compareToRange(0L, 1L, 1L)); + EXPECT_EQ(Location::MIN, compareToRange(1L, 1L, 1L)); + EXPECT_EQ(Location::AFTER, compareToRange(2L, 1L, 1L)); } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); - bf.addBytes("str_15", 6); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); -} - -TEST(TestPredicateLeaf, testStringInBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::STRING, "x", - {Literal("str_15", 6), Literal("str_19", 6)}); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - std::string str = "str_" + std::to_string(i); - bf.addBytes(str.c_str(), static_cast(str.size())); + + TEST(TestPredicateLeaf, testCompareToRangeString) { + EXPECT_EQ(Location::BEFORE, compareToRange(std::string("a"), std::string("b"), std::string("c"))); + EXPECT_EQ(Location::AFTER, compareToRange(std::string("d"), std::string("b"), std::string("c"))); + EXPECT_EQ(Location::MIN, compareToRange(std::string("b"), std::string("b"), std::string("c"))); + EXPECT_EQ(Location::MIDDLE, compareToRange(std::string("bb"), std::string("b"), std::string("c"))); + EXPECT_EQ(Location::MAX, compareToRange(std::string("c"), std::string("b"), std::string("c"))); + EXPECT_EQ(Location::BEFORE, compareToRange(std::string("a"), std::string("b"), std::string("b"))); + EXPECT_EQ(Location::MIN, compareToRange(std::string("b"), std::string("b"), std::string("b"))); + EXPECT_EQ(Location::AFTER, compareToRange(std::string("c"), std::string("b"), std::string("b"))); } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); - bf.addBytes("str_19", 6); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); - bf.addBytes("str_15", 6); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); -} - -TEST(TestPredicateLeaf, testDateNullSafeEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DATE, "x", - Literal(PredicateDataType::DATE, 15)); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addLong(i); - } - EXPECT_EQ(TruthValue::NO, evaluate(pred, createDateStats(10, 100), &bf)); - bf.addLong(15); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createDateStats(10.0, 100.0), &bf)); -} - -TEST(TestPredicateLeaf, testDateEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::DATE, "x", - Literal(PredicateDataType::DATE, 15)); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addLong(i); - } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDateStats(10, 100, true), &bf)); - bf.addLong(15); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDateStats(10.0, 100.0, true), &bf)); -} - -TEST(TestPredicateLeaf, testDateInBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::DATE, "x", - {Literal(PredicateDataType::DATE, 15), Literal(PredicateDataType::DATE, 19)}); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - bf.addLong(i); - } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDateStats(10, 100, true), &bf)); - bf.addLong(19); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDateStats(10.0, 100.0, true), &bf)); - bf.addLong(15); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDateStats(10.0, 100.0, true), &bf)); -} - -TEST(TestPredicateLeaf, testDecimalEqualsBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::DECIMAL, "x", Literal(15, 2, 0)); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - std::string str = Decimal(i, 0).toString(true); - bf.addBytes(str.c_str(), static_cast(str.size())); + + TEST(TestPredicateLeaf, testCompareToCharNeedConvert) { + EXPECT_EQ(Location::BEFORE, compareToRange(std::string("apple"), std::string("hello"), std::string("world"))); + EXPECT_EQ(Location::AFTER, compareToRange(std::string("zombie"), std::string("hello"), std::string("world"))); + EXPECT_EQ(Location::MIN, compareToRange(std::string("hello"), std::string("hello"), std::string("world"))); + EXPECT_EQ(Location::MIDDLE, compareToRange(std::string("pilot"), std::string("hello"), std::string("world"))); + EXPECT_EQ(Location::MAX, compareToRange(std::string("world"), std::string("hello"), std::string("world"))); + EXPECT_EQ(Location::BEFORE, compareToRange(std::string("apple"), std::string("hello"), std::string("hello"))); + EXPECT_EQ(Location::MIN, compareToRange(std::string("hello"), std::string("hello"), std::string("hello"))); + EXPECT_EQ(Location::AFTER, compareToRange(std::string("zombie"), std::string("hello"), std::string("hello"))); } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); - std::string str = Decimal(15, 0).toString(); - bf.addBytes(str.c_str(), static_cast(str.size())); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); -} + static proto::ColumnStatistics createBooleanStats(uint64_t n, uint64_t trueCount, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(n); -TEST(TestPredicateLeaf, testDecimalInBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::DECIMAL, "x", - {Literal(15, 2, 0), Literal(19, 2, 0)}); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - std::string str = Decimal(i, 0).toString(true); - bf.addBytes(str.c_str(), static_cast(str.size())); + proto::BucketStatistics* boolStats = colStats.mutable_bucketstatistics(); + boolStats->add_count(trueCount); + return colStats; } - EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); - std::string str = Decimal(15, 0).toString(); - bf.addBytes(str.c_str(), static_cast(str.size())); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); + static proto::ColumnStatistics createIntStats(int64_t min, int64_t max, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(10); - str = Decimal(19, 0).toString(); - bf.addBytes(str.c_str(), static_cast(str.size())); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); -} + proto::IntegerStatistics* intStats = colStats.mutable_intstatistics(); + intStats->set_minimum(min); + intStats->set_maximum(max); + return colStats; + } -TEST(TestPredicateLeaf, testNullsInBloomFilter) { - PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::DECIMAL, "x", - {Literal(15, 2, 0), Literal(19, 2, 0), Literal(PredicateDataType::DECIMAL)}); - BloomFilterImpl bf(10000); - for (int64_t i = 20; i < 1000; i++) { - std::string str = Decimal(i, 0).toString(true); - bf.addBytes(str.c_str(), static_cast(str.size())); + static proto::ColumnStatistics createDoubleStats(double min, double max, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(10); + + proto::DoubleStatistics* doubleStats = colStats.mutable_doublestatistics(); + const auto& curr_sum = min + max; + doubleStats->set_minimum(min); + doubleStats->set_maximum(max); + doubleStats->set_sum(curr_sum); + return colStats; + } + + static proto::ColumnStatistics createDecimalStats(Decimal min, Decimal max, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(10); + + proto::DecimalStatistics* decimalStats = colStats.mutable_decimalstatistics(); + decimalStats->set_minimum(min.toString(true)); + decimalStats->set_maximum(max.toString(true)); + return colStats; + } + + static proto::ColumnStatistics createDateStats(int32_t min, int32_t max, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(10); + + proto::DateStatistics* dateStats = colStats.mutable_datestatistics(); + dateStats->set_minimum(min); + dateStats->set_maximum(max); + return colStats; + } + + static proto::ColumnStatistics createTimestampStats(int64_t min, int64_t max, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(10); + + proto::TimestampStatistics* tsStats = colStats.mutable_timestampstatistics(); + tsStats->set_minimumutc(min); + tsStats->set_maximumutc(max); + return colStats; + } + + static proto::ColumnStatistics createTimestampStats(int64_t minSecond, int32_t minNano, int64_t maxSecond, + int32_t maxNano, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(10); + + proto::TimestampStatistics* tsStats = colStats.mutable_timestampstatistics(); + tsStats->set_minimumutc(minSecond * 1000 + minNano / 1000000); + tsStats->set_maximumutc(maxSecond * 1000 + maxNano / 1000000); + tsStats->set_minimumnanos((minNano % 1000000) + 1); + tsStats->set_maximumnanos((maxNano % 1000000) + 1); + return colStats; + } + + static proto::ColumnStatistics createStringStats(std::string min, std::string max, bool hasNull = false) { + proto::ColumnStatistics colStats; + colStats.set_hasnull(hasNull); + colStats.set_numberofvalues(10); + + proto::StringStatistics* strStats = colStats.mutable_stringstatistics(); + strStats->set_minimum(min); + strStats->set_maximum(max); + return colStats; + } + + static TruthValue evaluate(const PredicateLeaf& pred, const proto::ColumnStatistics& pbStats, + const BloomFilter* bf = nullptr) { + return pred.evaluate(WriterVersion_ORC_135, pbStats, bf); + } + + TEST(TestPredicateLeaf, testPredEvalWithColStats) { + PredicateLeaf pred0(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::BOOLEAN, "x", Literal(true)); + EXPECT_EQ(TruthValue::YES, evaluate(pred0, createBooleanStats(10, 10))); + EXPECT_EQ(TruthValue::NO, evaluate(pred0, createBooleanStats(10, 0))); + + PredicateLeaf pred1(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::BOOLEAN, "x", Literal(false)); + EXPECT_EQ(TruthValue::NO, evaluate(pred1, createBooleanStats(10, 10))); + EXPECT_EQ(TruthValue::YES, evaluate(pred1, createBooleanStats(10, 0))); + + PredicateLeaf pred2(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", + Literal(static_cast(15))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred2, createIntStats(10, 100))); + EXPECT_EQ(TruthValue::NO, evaluate(pred2, createIntStats(50, 100))); + + // delibrately pass column statistics of float type + PredicateLeaf pred3(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::FLOAT, "x", Literal(1.0)); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred3, createIntStats(10, 100))); + + PredicateLeaf pred4(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::FLOAT, "x", Literal(15.0)); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred4, createDoubleStats(10.0, 100.0))); + EXPECT_EQ(TruthValue::NO, evaluate(pred4, createDoubleStats(50.0, 100.0))); + + PredicateLeaf pred5(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::STRING, "x", + Literal("100", 3)); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred5, createStringStats("10", "1000"))); + + PredicateLeaf pred6(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DATE, "x", + Literal(PredicateDataType::DATE, 15)); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred6, createDateStats(10, 100))); + + PredicateLeaf pred7(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DATE, "x", + Literal(PredicateDataType::DATE, 150)); + EXPECT_EQ(TruthValue::NO, evaluate(pred7, createDateStats(10, 100))); + + PredicateLeaf pred8(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::TIMESTAMP, "x", + Literal(500L, 0)); + EXPECT_EQ(TruthValue::NO, evaluate(pred8, createTimestampStats(450LL, 490L))); + + PredicateLeaf pred9(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DECIMAL, "x", + Literal(1500, 4, 2)); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred9, createDecimalStats(Decimal("10.0"), Decimal("100.0")))); + + PredicateLeaf pred10(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", + Literal(PredicateDataType::LONG)); + EXPECT_EQ(TruthValue::NO, evaluate(pred2, createIntStats(50, 100))); + } + + TEST(TestPredicateLeaf, testEquals) { + PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::LONG, "x", + Literal(static_cast(15))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(15L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 15L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(0L, 10L, true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(15L, 15L, true))); + EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(20L, 30L))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(15L, 30L))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 30L))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 15L))); + EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(0L, 10L))); + EXPECT_EQ(TruthValue::YES, evaluate(pred, createIntStats(15L, 15L))); + } + + TEST(TestPredicateLeaf, testNullSafeEquals) { + PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", + Literal(static_cast(15))); + EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(20L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(15L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10L, 15L, true))); + EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(0L, 10L, true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(15L, 15L, true))); + } + + TEST(TestPredicateLeaf, testLessThan) { + PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::LONG, "x", + Literal(static_cast(15))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 30L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(15L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 15L, true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(0L, 10L, true))); + } + + TEST(TestPredicateLeaf, testLessThanEquals) { + PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN_EQUALS, PredicateDataType::LONG, "x", + Literal(static_cast(15))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(15L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(10L, 15L, true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(0L, 10L, true))); + // Edge cases where minValue == maxValue + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(10L, 10L, true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(15L, 15L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(20L, 20L, true))); + // Edge case where stats contain NaN or Inf numbers + PredicateLeaf pred4(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::FLOAT, "x", Literal(10.0)); + const auto& dInf = static_cast(INFINITY); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred4, createDoubleStats(dInf, dInf))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred4, createDoubleStats(dInf, dInf, true))); + } + + TEST(TestPredicateLeaf, testIn) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::LONG, "x", + {Literal(static_cast(10)), Literal(static_cast(20))}); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(20L, 20L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(30L, 30L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10L, 30L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(12L, 18L, true))); + + std::vector inList{static_cast(10), static_cast(15), static_cast(20)}; + PredicateLeaf pred2(PredicateLeaf::Operator::IN, PredicateDataType::LONG, "y", inList); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred2, createIntStats(20L, 20L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred2, createIntStats(12L, 14L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred2, createIntStats(16L, 19L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred2, createIntStats(12L, 18L, true))); } - // hasNull is false, so bloom filter should return NO - EXPECT_EQ(TruthValue::NO, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), false), &bf)); + TEST(TestPredicateLeaf, testBetween) { + PredicateLeaf pred(PredicateLeaf::Operator::BETWEEN, PredicateDataType::LONG, "x", + {Literal(static_cast(10)), Literal(static_cast(20))}); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(0L, 5L, true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(30L, 40L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(5L, 15L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(15L, 25L, true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(5L, 25L, true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(10L, 20L, true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createIntStats(12L, 18L, true))); + + // check with empty predicate list + PredicateLeaf pred1(PredicateLeaf::Operator::BETWEEN, PredicateDataType::LONG, "x", {}); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(0L, 5L, true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(30L, 40L, true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(5L, 15L, true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred1, createIntStats(10L, 20L, true))); + } + + TEST(TestPredicateLeaf, testIsNull) { + PredicateLeaf pred(PredicateLeaf::Operator::IS_NULL, PredicateDataType::LONG, "x", {}); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(20L, 30L, true))); + } + + TEST(TestPredicateLeaf, testEqualsWithNullInStats) { + PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::STRING, "x", Literal("c", 1)); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("a", "b", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "c", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "d", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); + } + + TEST(TestPredicateLeaf, testNullSafeEqualsWithNullInStats) { + PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::STRING, "x", Literal("c", 1)); + EXPECT_EQ(TruthValue::NO, evaluate(pred, createStringStats("d", "e", true))); + EXPECT_EQ(TruthValue::NO, evaluate(pred, createStringStats("a", "b", true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("b", "c", true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("c", "d", true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("b", "d", true))); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("c", "c", true))); + } + + TEST(TestPredicateLeaf, testLessThanWithNullInStats) { + PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::STRING, "x", Literal("c", 1)); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("a", "b", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "c", true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("c", "d", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("c", "c", true))); + } + + TEST(TestPredicateLeaf, testLessThanEqualsWithNullInStats) { + PredicateLeaf pred(PredicateLeaf::Operator::LESS_THAN_EQUALS, PredicateDataType::STRING, "x", Literal("c", 1)); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("a", "b", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("b", "c", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "d", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); + // Edge cases where minValue == maxValue + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("a", "a", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "d", true))); + } + + TEST(TestPredicateLeaf, testInWithNullInStats) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::STRING, "x", + {Literal("c", 1), Literal("f", 1)}); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("d", "e", true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("a", "b", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("e", "f", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "d", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); + } - // hasNull is true, so bloom filter should return YES_NO_NULL - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), true), &bf)); + TEST(TestPredicateLeaf, testBetweenWithNullInStats) { + PredicateLeaf pred(PredicateLeaf::Operator::BETWEEN, PredicateDataType::STRING, "x", + {Literal("c", 1), Literal("f", 1)}); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("d", "e", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("e", "f", true))); + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("h", "g", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("f", "g", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("e", "g", true))); + + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "e", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "f", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("c", "g", true))); + + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("a", "b", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("a", "c", true))); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("b", "d", true))); + EXPECT_EQ(TruthValue::YES_NULL, evaluate(pred, createStringStats("c", "c", true))); + } - std::string str = Decimal(19, 0).toString(); - bf.addBytes(str.c_str(), static_cast(str.size())); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), true), &bf)); + TEST(TestPredicateLeaf, testIsNullWithNullInStats) { + PredicateLeaf pred(PredicateLeaf::Operator::IS_NULL, PredicateDataType::STRING, "x", {}); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createStringStats("c", "d", true))); + EXPECT_EQ(TruthValue::NO, evaluate(pred, createStringStats("c", "d", false))); + } - str = Decimal(15, 0).toString(); - bf.addBytes(str.c_str(), static_cast(str.size())); - EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), true), &bf)); -} + TEST(TestPredicateLeaf, testIntNullSafeEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::LONG, "x", + Literal(static_cast(15))); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addLong(i); + } + EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(10, 100), &bf)); + bf.addLong(15); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10, 100), &bf)); + } -TEST(TestPredicateLeaf, testTimestampWithNanos) { - // 1970-01-01 00:00:00 - PredicateLeaf pred1(PredicateLeaf::Operator::EQUALS, PredicateDataType::TIMESTAMP, "x", - Literal(static_cast(0), 500000)); - EXPECT_EQ(TruthValue::YES, evaluate(pred1, createTimestampStats(0, 500000, 0, 500000))); + TEST(TestPredicateLeaf, testIntEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::LONG, "x", + Literal(static_cast(15))); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addLong(i); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); + bf.addLong(15); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); + } - PredicateLeaf pred2(PredicateLeaf::Operator::LESS_THAN_EQUALS, PredicateDataType::TIMESTAMP, "x", - Literal(static_cast(0), 500000)); - EXPECT_EQ(TruthValue::YES, evaluate(pred2, createTimestampStats(0, 499999, 0, 499999))); - EXPECT_EQ(TruthValue::YES, evaluate(pred2, createTimestampStats(0, 500000, 0, 500000))); - EXPECT_EQ(TruthValue::NO, evaluate(pred2, createTimestampStats(0, 500001, 0, 500001))); + TEST(TestPredicateLeaf, testIntInBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::LONG, "x", + {Literal(static_cast(15)), Literal(static_cast(19))}); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addLong(i); + } + bf.addLong(19); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); + bf.addLong(15); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10, 100, true), &bf)); + } - PredicateLeaf pred3(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", - Literal(static_cast(0), 500000)); - EXPECT_EQ(TruthValue::NO, evaluate(pred3, createTimestampStats(0, 500000, 0, 500000))); + TEST(TestPredicateLeaf, testDoubleNullSafeEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::FLOAT, "x", Literal(15.0)); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addDouble(static_cast(i)); + } + EXPECT_EQ(TruthValue::NO, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); + bf.addDouble(15.0); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); + } - // 2037-01-01 00:00:00 - PredicateLeaf pred4(PredicateLeaf::Operator::EQUALS, PredicateDataType::TIMESTAMP, "x", - Literal(2114380800, 1109000)); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred4, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + TEST(TestPredicateLeaf, testDoubleEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::FLOAT, "x", Literal(15.0)); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addDouble(static_cast(i)); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); + bf.addDouble(15.0); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); + } - PredicateLeaf pred5(PredicateLeaf::Operator::EQUALS, PredicateDataType::TIMESTAMP, "x", - Literal(2114380800, 1000000)); - EXPECT_EQ(TruthValue::NO, evaluate(pred5, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + TEST(TestPredicateLeaf, testDoubleInBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::FLOAT, "x", {Literal(15.0), Literal(19.0)}); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addDouble(static_cast(i)); + } + bf.addDouble(19.0); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); + bf.addDouble(15.0); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createIntStats(10.0, 100.0, true), &bf)); + } - PredicateLeaf pred6(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", - Literal(2114380800, 6789000)); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred6, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + TEST(TestPredicateLeaf, testStringEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::STRING, "x", Literal("str_15", 6)); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + std::string str = "str_" + std::to_string(i); + bf.addBytes(str.c_str(), static_cast(str.size())); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); + bf.addBytes("str_15", 6); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); + } - PredicateLeaf pred7(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", - Literal(2114380800, 2000000)); - EXPECT_EQ(TruthValue::YES_NO, evaluate(pred7, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + TEST(TestPredicateLeaf, testStringInBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::STRING, "x", + {Literal("str_15", 6), Literal("str_19", 6)}); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + std::string str = "str_" + std::to_string(i); + bf.addBytes(str.c_str(), static_cast(str.size())); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); + bf.addBytes("str_19", 6); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); + bf.addBytes("str_15", 6); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createStringStats("str_10", "str_200", true), &bf)); + } - PredicateLeaf pred8(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", - Literal(2114380800, 1000000)); - EXPECT_EQ(TruthValue::NO, evaluate(pred8, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); -} + TEST(TestPredicateLeaf, testDateNullSafeEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::NULL_SAFE_EQUALS, PredicateDataType::DATE, "x", + Literal(PredicateDataType::DATE, 15)); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addLong(i); + } + EXPECT_EQ(TruthValue::NO, evaluate(pred, createDateStats(10, 100), &bf)); + bf.addLong(15); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred, createDateStats(10.0, 100.0), &bf)); + } + + TEST(TestPredicateLeaf, testDateEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::DATE, "x", + Literal(PredicateDataType::DATE, 15)); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addLong(i); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDateStats(10, 100, true), &bf)); + bf.addLong(15); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDateStats(10.0, 100.0, true), &bf)); + } + + TEST(TestPredicateLeaf, testDateInBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::DATE, "x", + {Literal(PredicateDataType::DATE, 15), Literal(PredicateDataType::DATE, 19)}); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + bf.addLong(i); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDateStats(10, 100, true), &bf)); + bf.addLong(19); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDateStats(10.0, 100.0, true), &bf)); + bf.addLong(15); + EXPECT_EQ(TruthValue::YES_NO_NULL, evaluate(pred, createDateStats(10.0, 100.0, true), &bf)); + } + + TEST(TestPredicateLeaf, testDecimalEqualsBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::EQUALS, PredicateDataType::DECIMAL, "x", Literal(15, 2, 0)); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + std::string str = Decimal(i, 0).toString(true); + bf.addBytes(str.c_str(), static_cast(str.size())); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); + + std::string str = Decimal(15, 0).toString(); + bf.addBytes(str.c_str(), static_cast(str.size())); + EXPECT_EQ(TruthValue::YES_NO_NULL, + evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); + } + + TEST(TestPredicateLeaf, testDecimalInBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::DECIMAL, "x", + {Literal(15, 2, 0), Literal(19, 2, 0)}); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + std::string str = Decimal(i, 0).toString(true); + bf.addBytes(str.c_str(), static_cast(str.size())); + } + EXPECT_EQ(TruthValue::NO_NULL, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); + + std::string str = Decimal(15, 0).toString(); + bf.addBytes(str.c_str(), static_cast(str.size())); + EXPECT_EQ(TruthValue::YES_NO_NULL, + evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); + + str = Decimal(19, 0).toString(); + bf.addBytes(str.c_str(), static_cast(str.size())); + EXPECT_EQ(TruthValue::YES_NO_NULL, + evaluate(pred, createDecimalStats(Decimal("10"), Decimal("100"), true), &bf)); + } + + TEST(TestPredicateLeaf, testNullsInBloomFilter) { + PredicateLeaf pred(PredicateLeaf::Operator::IN, PredicateDataType::DECIMAL, "x", + {Literal(15, 2, 0), Literal(19, 2, 0), Literal(PredicateDataType::DECIMAL)}); + BloomFilterImpl bf(10000); + for (int64_t i = 20; i < 1000; i++) { + std::string str = Decimal(i, 0).toString(true); + bf.addBytes(str.c_str(), static_cast(str.size())); + } + + // hasNull is false, so bloom filter should return NO + EXPECT_EQ(TruthValue::NO, evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), false), &bf)); + + // hasNull is true, so bloom filter should return YES_NO_NULL + EXPECT_EQ(TruthValue::YES_NO_NULL, + evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), true), &bf)); + + std::string str = Decimal(19, 0).toString(); + bf.addBytes(str.c_str(), static_cast(str.size())); + EXPECT_EQ(TruthValue::YES_NO_NULL, + evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), true), &bf)); + + str = Decimal(15, 0).toString(); + bf.addBytes(str.c_str(), static_cast(str.size())); + EXPECT_EQ(TruthValue::YES_NO_NULL, + evaluate(pred, createDecimalStats(Decimal("10"), Decimal("200"), true), &bf)); + } + + TEST(TestPredicateLeaf, testTimestampWithNanos) { + // 1970-01-01 00:00:00 + PredicateLeaf pred1(PredicateLeaf::Operator::EQUALS, PredicateDataType::TIMESTAMP, "x", + Literal(static_cast(0), 500000)); + EXPECT_EQ(TruthValue::YES, evaluate(pred1, createTimestampStats(0, 500000, 0, 500000))); + + PredicateLeaf pred2(PredicateLeaf::Operator::LESS_THAN_EQUALS, PredicateDataType::TIMESTAMP, "x", + Literal(static_cast(0), 500000)); + EXPECT_EQ(TruthValue::YES, evaluate(pred2, createTimestampStats(0, 499999, 0, 499999))); + EXPECT_EQ(TruthValue::YES, evaluate(pred2, createTimestampStats(0, 500000, 0, 500000))); + EXPECT_EQ(TruthValue::NO, evaluate(pred2, createTimestampStats(0, 500001, 0, 500001))); + + PredicateLeaf pred3(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", + Literal(static_cast(0), 500000)); + EXPECT_EQ(TruthValue::NO, evaluate(pred3, createTimestampStats(0, 500000, 0, 500000))); + + // 2037-01-01 00:00:00 + PredicateLeaf pred4(PredicateLeaf::Operator::EQUALS, PredicateDataType::TIMESTAMP, "x", + Literal(2114380800, 1109000)); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred4, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + + PredicateLeaf pred5(PredicateLeaf::Operator::EQUALS, PredicateDataType::TIMESTAMP, "x", + Literal(2114380800, 1000000)); + EXPECT_EQ(TruthValue::NO, evaluate(pred5, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + + PredicateLeaf pred6(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", + Literal(2114380800, 6789000)); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred6, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + + PredicateLeaf pred7(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", + Literal(2114380800, 2000000)); + EXPECT_EQ(TruthValue::YES_NO, evaluate(pred7, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + + PredicateLeaf pred8(PredicateLeaf::Operator::LESS_THAN, PredicateDataType::TIMESTAMP, "x", + Literal(2114380800, 1000000)); + EXPECT_EQ(TruthValue::NO, evaluate(pred8, createTimestampStats(2114380800, 1109000, 2114380800, 6789100))); + } } // namespace orc diff --git a/be/src/formats/orc/apache-orc/c++/test/TestPredicatePushdown.cc b/be/src/formats/orc/apache-orc/c++/test/TestPredicatePushdown.cc index b77031bdd0538e..62103fd96b90d5 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestPredicatePushdown.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestPredicatePushdown.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestPredicatePushdown.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestRLEV2Util.cc b/be/src/formats/orc/apache-orc/c++/test/TestRLEV2Util.cc index 5fe7c75efeb010..c12334c15a699c 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestRLEV2Util.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestRLEV2Util.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestRLEV2Util.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestReader.cc b/be/src/formats/orc/apache-orc/c++/test/TestReader.cc index 7d0e12e5f7d784..30f51220847d4f 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestReader.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestReader.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestReader.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestRleDecoder.cc b/be/src/formats/orc/apache-orc/c++/test/TestRleDecoder.cc index 43ad16a0a773b4..fd61e59e3c663d 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestRleDecoder.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestRleDecoder.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestRleDecoder.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestRleEncoder.cc b/be/src/formats/orc/apache-orc/c++/test/TestRleEncoder.cc index 530c1bd4a3166f..f92a1bc7bbd837 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestRleEncoder.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestRleEncoder.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestRleEncoder.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestSargsApplier.cc b/be/src/formats/orc/apache-orc/c++/test/TestSargsApplier.cc index 7be0b9ee8af11b..4c024355f486c4 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestSargsApplier.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestSargsApplier.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestSargsApplier.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestSearchArgument.cc b/be/src/formats/orc/apache-orc/c++/test/TestSearchArgument.cc index 5c5a2f6cd5cc40..b4ce4cdef21937 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestSearchArgument.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestSearchArgument.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestSearchArgument.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/c++/test/TestStripeIndexStatistics.cc b/be/src/formats/orc/apache-orc/c++/test/TestStripeIndexStatistics.cc index e16b5176d0437a..bdbedbf8d64750 100644 --- a/be/src/formats/orc/apache-orc/c++/test/TestStripeIndexStatistics.cc +++ b/be/src/formats/orc/apache-orc/c++/test/TestStripeIndexStatistics.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/c++/test/TestStripeIndexStatistics.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/CMakeLists.txt b/be/src/formats/orc/apache-orc/tools/CMakeLists.txt index 9dfd3c0390d386..b6da9e8e72065d 100644 --- a/be/src/formats/orc/apache-orc/tools/CMakeLists.txt +++ b/be/src/formats/orc/apache-orc/tools/CMakeLists.txt @@ -1,7 +1,3 @@ -# This file is made available under Elastic License 2.0. -# This file is based on code available under the Apache license here: -# https://github.com/apache/orc/tree/main/tools/CMakeLists.txt - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/tools/src/CMakeLists.txt b/be/src/formats/orc/apache-orc/tools/src/CMakeLists.txt index 2bf0626bc06b0b..08537a09961d63 100644 --- a/be/src/formats/orc/apache-orc/tools/src/CMakeLists.txt +++ b/be/src/formats/orc/apache-orc/tools/src/CMakeLists.txt @@ -1,7 +1,3 @@ -# This file is made available under Elastic License 2.0. -# This file is based on code available under the Apache license here: -# https://github.com/apache/orc/tree/main/tools/src/CMakeLists.txt - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/tools/src/CSVFileImport.cc b/be/src/formats/orc/apache-orc/tools/src/CSVFileImport.cc index 8aae083a799601..a5c2222f9c0fbc 100644 --- a/be/src/formats/orc/apache-orc/tools/src/CSVFileImport.cc +++ b/be/src/formats/orc/apache-orc/tools/src/CSVFileImport.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/src/CSVFileImport.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/src/FileContents.cc b/be/src/formats/orc/apache-orc/tools/src/FileContents.cc index d29e6842065a1f..8bd3232cd5499c 100644 --- a/be/src/formats/orc/apache-orc/tools/src/FileContents.cc +++ b/be/src/formats/orc/apache-orc/tools/src/FileContents.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/src/FileContents.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/src/FileMemory.cc b/be/src/formats/orc/apache-orc/tools/src/FileMemory.cc index 391d1cf5c23f2a..65cdcd5802ccde 100644 --- a/be/src/formats/orc/apache-orc/tools/src/FileMemory.cc +++ b/be/src/formats/orc/apache-orc/tools/src/FileMemory.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/src/FileMemory.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/src/FileMetadata.cc b/be/src/formats/orc/apache-orc/tools/src/FileMetadata.cc index 4a02f9f2b463fd..16c9b367fa16b7 100644 --- a/be/src/formats/orc/apache-orc/tools/src/FileMetadata.cc +++ b/be/src/formats/orc/apache-orc/tools/src/FileMetadata.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/src/FileMetadata.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/src/FileScan.cc b/be/src/formats/orc/apache-orc/tools/src/FileScan.cc index 69425b250ed14e..e65f6f033a0af6 100644 --- a/be/src/formats/orc/apache-orc/tools/src/FileScan.cc +++ b/be/src/formats/orc/apache-orc/tools/src/FileScan.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/src/FileScan.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/src/FileStatistics.cc b/be/src/formats/orc/apache-orc/tools/src/FileStatistics.cc index 95d644549abcd2..4332ce0bc1f314 100644 --- a/be/src/formats/orc/apache-orc/tools/src/FileStatistics.cc +++ b/be/src/formats/orc/apache-orc/tools/src/FileStatistics.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/src/FileStatistics.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/src/TimezoneDump.cc b/be/src/formats/orc/apache-orc/tools/src/TimezoneDump.cc index 965d1d212ef8ce..175543402f1b40 100644 --- a/be/src/formats/orc/apache-orc/tools/src/TimezoneDump.cc +++ b/be/src/formats/orc/apache-orc/tools/src/TimezoneDump.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/src/TimezoneDump.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/CMakeLists.txt b/be/src/formats/orc/apache-orc/tools/test/CMakeLists.txt index b041d584665e64..fd8673fa917cb0 100644 --- a/be/src/formats/orc/apache-orc/tools/test/CMakeLists.txt +++ b/be/src/formats/orc/apache-orc/tools/test/CMakeLists.txt @@ -1,7 +1,3 @@ -# This file is made available under Elastic License 2.0. -# This file is based on code available under the Apache license here: -# https://github.com/apache/orc/tree/main/tools/test/CMakeLists.txt - # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/be/src/formats/orc/apache-orc/tools/test/TestCSVFileImport.cc b/be/src/formats/orc/apache-orc/tools/test/TestCSVFileImport.cc index 19f77b92ddadf0..bfb906e5a55223 100644 --- a/be/src/formats/orc/apache-orc/tools/test/TestCSVFileImport.cc +++ b/be/src/formats/orc/apache-orc/tools/test/TestCSVFileImport.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/TestCSVFileImport.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/TestFileContents.cc b/be/src/formats/orc/apache-orc/tools/test/TestFileContents.cc index fd6280aabeb3be..d758a51c124e10 100644 --- a/be/src/formats/orc/apache-orc/tools/test/TestFileContents.cc +++ b/be/src/formats/orc/apache-orc/tools/test/TestFileContents.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/TestFileContents.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/TestFileMetadata.cc b/be/src/formats/orc/apache-orc/tools/test/TestFileMetadata.cc index 3fd4e058213658..b10e524f6c0153 100644 --- a/be/src/formats/orc/apache-orc/tools/test/TestFileMetadata.cc +++ b/be/src/formats/orc/apache-orc/tools/test/TestFileMetadata.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/TestFileMetadata.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/TestFileStatistics.cc b/be/src/formats/orc/apache-orc/tools/test/TestFileStatistics.cc index d5d3cac7f468a6..d9a7eb9b4108fe 100644 --- a/be/src/formats/orc/apache-orc/tools/test/TestFileStatistics.cc +++ b/be/src/formats/orc/apache-orc/tools/test/TestFileStatistics.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/TestFileStatistics.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/TestMatch.cc b/be/src/formats/orc/apache-orc/tools/test/TestMatch.cc index 4b7d66f85111df..21fdf780a3c91a 100644 --- a/be/src/formats/orc/apache-orc/tools/test/TestMatch.cc +++ b/be/src/formats/orc/apache-orc/tools/test/TestMatch.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/TestMatch.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/ToolTest.cc b/be/src/formats/orc/apache-orc/tools/test/ToolTest.cc index bd474eb5e6bfcb..c4aa4b42d45b6f 100644 --- a/be/src/formats/orc/apache-orc/tools/test/ToolTest.cc +++ b/be/src/formats/orc/apache-orc/tools/test/ToolTest.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/ToolTest.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/ToolTest.hh b/be/src/formats/orc/apache-orc/tools/test/ToolTest.hh index 8f5869e757820d..970af23b00f7ed 100644 --- a/be/src/formats/orc/apache-orc/tools/test/ToolTest.hh +++ b/be/src/formats/orc/apache-orc/tools/test/ToolTest.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/ToolTest.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/gzip.cc b/be/src/formats/orc/apache-orc/tools/test/gzip.cc index b51cda36026981..51660f09376c03 100644 --- a/be/src/formats/orc/apache-orc/tools/test/gzip.cc +++ b/be/src/formats/orc/apache-orc/tools/test/gzip.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/gzip.cc - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/formats/orc/apache-orc/tools/test/gzip.hh b/be/src/formats/orc/apache-orc/tools/test/gzip.hh index 924ace930c3223..83234118d78bad 100644 --- a/be/src/formats/orc/apache-orc/tools/test/gzip.hh +++ b/be/src/formats/orc/apache-orc/tools/test/gzip.hh @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/orc/tree/main/tools/test/gzip.hh - /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file diff --git a/be/src/util/aes_util.h b/be/src/util/aes_util.h index 6166780d762d06..0682782fd022e2 100644 --- a/be/src/util/aes_util.h +++ b/be/src/util/aes_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/aes_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/aligned_new.h b/be/src/util/aligned_new.h index 36e740e1ed03c2..3d95acb81df28d 100644 --- a/be/src/util/aligned_new.h +++ b/be/src/util/aligned_new.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/aligned_new.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/alignment.h b/be/src/util/alignment.h index fb9f404ad989f7..8bcbdf22b47579 100644 --- a/be/src/util/alignment.h +++ b/be/src/util/alignment.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/alignment.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/arrow/utils.cpp b/be/src/util/arrow/utils.cpp index e6f344b813590a..267b7b46d22cd6 100644 --- a/be/src/util/arrow/utils.cpp +++ b/be/src/util/arrow/utils.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/arrow/utils.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/arrow/utils.h b/be/src/util/arrow/utils.h index 9b9f6350d2abec..f2f690a3d5c68c 100644 --- a/be/src/util/arrow/utils.h +++ b/be/src/util/arrow/utils.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/arrow/utils.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/bfd_parser.h b/be/src/util/bfd_parser.h index 8e149efd73fc33..e110b907d33ee6 100644 --- a/be/src/util/bfd_parser.h +++ b/be/src/util/bfd_parser.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/bfd_parser.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/bitmap.cpp b/be/src/util/bitmap.cpp index 993614af650660..8ca958041d02be 100644 --- a/be/src/util/bitmap.cpp +++ b/be/src/util/bitmap.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/bitmap.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/core_local.h b/be/src/util/core_local.h index d011f2c3c36704..90234bc63f2d9b 100644 --- a/be/src/util/core_local.h +++ b/be/src/util/core_local.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/core_local.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/cpu_info.cpp b/be/src/util/cpu_info.cpp index 6d3a5fdf4b9243..5b02ace4078491 100644 --- a/be/src/util/cpu_info.cpp +++ b/be/src/util/cpu_info.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/cpu_info.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/cpu_info.h b/be/src/util/cpu_info.h index a3c965b429657d..ade80160a34937 100644 --- a/be/src/util/cpu_info.h +++ b/be/src/util/cpu_info.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/cpu_info.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/crc32c.cpp b/be/src/util/crc32c.cpp index 22d74727449f36..e30b2b0eb51475 100644 --- a/be/src/util/crc32c.cpp +++ b/be/src/util/crc32c.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/crc32c.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/crc32c.h b/be/src/util/crc32c.h index ac49dc05840a93..cec5f554571c05 100644 --- a/be/src/util/crc32c.h +++ b/be/src/util/crc32c.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/crc32c.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/date_func.cpp b/be/src/util/date_func.cpp index 939406ca48a4ff..a58b701ce5d6b4 100644 --- a/be/src/util/date_func.cpp +++ b/be/src/util/date_func.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/date_func.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/date_func.h b/be/src/util/date_func.h index 9c2a59abcd40b7..5d8f349c451594 100644 --- a/be/src/util/date_func.h +++ b/be/src/util/date_func.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/date_func.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/debug/leak_annotations.h b/be/src/util/debug/leak_annotations.h index 5ffa1f8f4501c2..955027859b3c76 100644 --- a/be/src/util/debug/leak_annotations.h +++ b/be/src/util/debug/leak_annotations.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/debug/leak_annotations.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/debug/leakcheck_disabler.h b/be/src/util/debug/leakcheck_disabler.h index 24c30a70bada56..0dd8ee258dbaa8 100644 --- a/be/src/util/debug/leakcheck_disabler.h +++ b/be/src/util/debug/leakcheck_disabler.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/debug/leakcheck_disabler.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/debug_counters.h b/be/src/util/debug_counters.h index 3f13fa3675101b..17e5e1298492f8 100644 --- a/be/src/util/debug_counters.h +++ b/be/src/util/debug_counters.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/debug_counters.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/debug_util.h b/be/src/util/debug_util.h index a0eb355a15ae2e..5d1cd3b6ceadc7 100644 --- a/be/src/util/debug_util.h +++ b/be/src/util/debug_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/debug_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/disk_info.cpp b/be/src/util/disk_info.cpp index fcf0c111f74e2c..01a34f224cd43d 100644 --- a/be/src/util/disk_info.cpp +++ b/be/src/util/disk_info.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/disk_info.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/dynamic_util.cpp b/be/src/util/dynamic_util.cpp index cc32ea908c5fb6..fd115249285880 100644 --- a/be/src/util/dynamic_util.cpp +++ b/be/src/util/dynamic_util.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/dynamic_util.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/dynamic_util.h b/be/src/util/dynamic_util.h index 061209b84d7aed..2de99f65a47793 100644 --- a/be/src/util/dynamic_util.h +++ b/be/src/util/dynamic_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/dynamic_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/easy_json.cc b/be/src/util/easy_json.cc index 1777641faaf6f6..143c63dd06be98 100644 --- a/be/src/util/easy_json.cc +++ b/be/src/util/easy_json.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/easy_json.cc - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/easy_json.h b/be/src/util/easy_json.h index fe853823e84f08..84815b89c68112 100644 --- a/be/src/util/easy_json.h +++ b/be/src/util/easy_json.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/easy_json.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/errno.cpp b/be/src/util/errno.cpp index c0a1e3b814330a..982dfd722eef6a 100644 --- a/be/src/util/errno.cpp +++ b/be/src/util/errno.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/errno.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/errno.h b/be/src/util/errno.h index b10fec23545dc5..db98768928343c 100644 --- a/be/src/util/errno.h +++ b/be/src/util/errno.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/errno.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/error_util.h b/be/src/util/error_util.h index edf70ca89916fb..5c87d99ee67a87 100644 --- a/be/src/util/error_util.h +++ b/be/src/util/error_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/error_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/faststring.cc b/be/src/util/faststring.cc index be983e2a8ce480..75efee5a3b977f 100644 --- a/be/src/util/faststring.cc +++ b/be/src/util/faststring.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/faststring.cc - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/load_error_hub.h b/be/src/util/load_error_hub.h index f8ac1ed704d736..f5c635452933b2 100644 --- a/be/src/util/load_error_hub.h +++ b/be/src/util/load_error_hub.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/load_error_hub.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/logging.h b/be/src/util/logging.h index 27f4a838668430..e1f75280609c51 100644 --- a/be/src/util/logging.h +++ b/be/src/util/logging.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/logging.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/md5.cpp b/be/src/util/md5.cpp index 49e78d90b62279..4d5b2ba6f3aa3a 100644 --- a/be/src/util/md5.cpp +++ b/be/src/util/md5.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/md5.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/md5.h b/be/src/util/md5.h index c4b53b96d749e7..3c217e62fae814 100644 --- a/be/src/util/md5.h +++ b/be/src/util/md5.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/md5.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/mem_util.hpp b/be/src/util/mem_util.hpp index 36dfb5c3c7c4d7..69230b54330a43 100644 --- a/be/src/util/mem_util.hpp +++ b/be/src/util/mem_util.hpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/mem_util.hpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/monotime.cpp b/be/src/util/monotime.cpp index c8095e2719d0d3..b9cdb6307d538c 100644 --- a/be/src/util/monotime.cpp +++ b/be/src/util/monotime.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/monotime.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/mysql_load_error_hub.h b/be/src/util/mysql_load_error_hub.h index 2fab35b2662629..dbe520b33cd192 100644 --- a/be/src/util/mysql_load_error_hub.h +++ b/be/src/util/mysql_load_error_hub.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/mysql_load_error_hub.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/null_load_error_hub.h b/be/src/util/null_load_error_hub.h index dac0978780de67..2bbb0c22cf9d6c 100644 --- a/be/src/util/null_load_error_hub.h +++ b/be/src/util/null_load_error_hub.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/null_load_error_hub.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/once.h b/be/src/util/once.h index fc0311fd0ff43f..cb639f1e294606 100644 --- a/be/src/util/once.h +++ b/be/src/util/once.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/once.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/path_builder.cpp b/be/src/util/path_builder.cpp index bc85c57ca3fbad..b86c90d44aea5b 100644 --- a/be/src/util/path_builder.cpp +++ b/be/src/util/path_builder.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/path_builder.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/path_builder.h b/be/src/util/path_builder.h index 0e25cf85999f91..d37d32a3a4942b 100644 --- a/be/src/util/path_builder.h +++ b/be/src/util/path_builder.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/path_builder.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/path_trie.hpp b/be/src/util/path_trie.hpp index bec9ea67a8c91a..2d47bd22b090a0 100644 --- a/be/src/util/path_trie.hpp +++ b/be/src/util/path_trie.hpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/path_trie.hpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/path_util.h b/be/src/util/path_util.h index 0b2d9153c7e1eb..7ae9c927cf72c5 100644 --- a/be/src/util/path_util.h +++ b/be/src/util/path_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/path_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/pretty_printer.h b/be/src/util/pretty_printer.h index 7486f5a0ed0d6d..959639994c2c4d 100644 --- a/be/src/util/pretty_printer.h +++ b/be/src/util/pretty_printer.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/pretty_printer.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/random.h b/be/src/util/random.h index e1fbe206b7584d..eae2e605b05b0f 100644 --- a/be/src/util/random.h +++ b/be/src/util/random.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/random.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/ref_count_closure.h b/be/src/util/ref_count_closure.h index b69927b7cc6ed1..c5eca2c2c5cbc9 100644 --- a/be/src/util/ref_count_closure.h +++ b/be/src/util/ref_count_closure.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/ref_count_closure.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/scoped_cleanup.h b/be/src/util/scoped_cleanup.h index 44dcedc1402fff..48b3f31c70cf61 100644 --- a/be/src/util/scoped_cleanup.h +++ b/be/src/util/scoped_cleanup.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/scoped_cleanup.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/semaphore.hpp b/be/src/util/semaphore.hpp index 466c9e37394415..dac287d604f74f 100644 --- a/be/src/util/semaphore.hpp +++ b/be/src/util/semaphore.hpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/semaphore.hpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/simdutf8check.h b/be/src/util/simdutf8check.h index 4922d60cf0925b..dc55950949f386 100644 --- a/be/src/util/simdutf8check.h +++ b/be/src/util/simdutf8check.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/simdutf8check.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/spinlock.cc b/be/src/util/spinlock.cc index 36fb5cbfaecb11..b06403e684303d 100644 --- a/be/src/util/spinlock.cc +++ b/be/src/util/spinlock.cc @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/spinlock.cc - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/spinlock.h b/be/src/util/spinlock.h index ef8bfd16c9824e..c5dc36aa8a61e1 100644 --- a/be/src/util/spinlock.h +++ b/be/src/util/spinlock.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/spinlock.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/sse_util.hpp b/be/src/util/sse_util.hpp index 6980e39ac2764c..1bf354f8ff3f4b 100644 --- a/be/src/util/sse_util.hpp +++ b/be/src/util/sse_util.hpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/sse_util.hpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/stack_util.cpp b/be/src/util/stack_util.cpp index b78af9fe940e5b..e88664efe704ea 100644 --- a/be/src/util/stack_util.cpp +++ b/be/src/util/stack_util.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/stack_util.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/stack_util.h b/be/src/util/stack_util.h index 5ea0e3912a12c5..3c5965277a9f65 100644 --- a/be/src/util/stack_util.h +++ b/be/src/util/stack_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/stack_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/static_asserts.cpp b/be/src/util/static_asserts.cpp index 3611b561b68698..ab56f754fef256 100644 --- a/be/src/util/static_asserts.cpp +++ b/be/src/util/static_asserts.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/static_asserts.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/string_parser.cpp b/be/src/util/string_parser.cpp index c9f35b0fefc1e4..635edaf8cf0619 100644 --- a/be/src/util/string_parser.cpp +++ b/be/src/util/string_parser.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/string_parser.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/symbols_util.h b/be/src/util/symbols_util.h index b9540ce758f4c3..e903fdbec844b7 100644 --- a/be/src/util/symbols_util.h +++ b/be/src/util/symbols_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/symbols_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/system_metrics.h b/be/src/util/system_metrics.h index d4728302a8409e..24ccdd065446f6 100644 --- a/be/src/util/system_metrics.h +++ b/be/src/util/system_metrics.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/system_metrics.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/template_util.h b/be/src/util/template_util.h index 814a4eb781d3f0..8077e0f1844aed 100644 --- a/be/src/util/template_util.h +++ b/be/src/util/template_util.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/template_util.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/thrift_client.cpp b/be/src/util/thrift_client.cpp index 32c6c0b171fc53..1562ddd786bf6e 100644 --- a/be/src/util/thrift_client.cpp +++ b/be/src/util/thrift_client.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/thrift_client.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/thrift_client.h b/be/src/util/thrift_client.h index f08a63b34109f8..c5b41262fa2523 100644 --- a/be/src/util/thrift_client.h +++ b/be/src/util/thrift_client.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/thrift_client.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/thrift_rpc_helper.h b/be/src/util/thrift_rpc_helper.h index 9df9aead753851..5daf23892f4f1e 100644 --- a/be/src/util/thrift_rpc_helper.h +++ b/be/src/util/thrift_rpc_helper.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/thrift_rpc_helper.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/time.cpp b/be/src/util/time.cpp index 43bf04f74332ea..bab17fc4fdb591 100644 --- a/be/src/util/time.cpp +++ b/be/src/util/time.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/time.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/trace.cpp b/be/src/util/trace.cpp index 9cb9261d37b672..2905bf5991cecc 100644 --- a/be/src/util/trace.cpp +++ b/be/src/util/trace.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/trace.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/trace.h b/be/src/util/trace.h index 204afb3a6c82da..976fd119501b5d 100644 --- a/be/src/util/trace.h +++ b/be/src/util/trace.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/trace.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/url_coding.cpp b/be/src/util/url_coding.cpp index 81a0e8e24838ec..46968612bede6d 100644 --- a/be/src/util/url_coding.cpp +++ b/be/src/util/url_coding.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/url_coding.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/src/util/url_coding.h b/be/src/util/url_coding.h index e12938b874047f..e256f2359022b5 100644 --- a/be/src/util/url_coding.h +++ b/be/src/util/url_coding.h @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/src/util/url_coding.h - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/common/config_test.cpp b/be/test/common/config_test.cpp index e5cccfb26e6eda..f0ae4a187096d8 100644 --- a/be/test/common/config_test.cpp +++ b/be/test/common/config_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/common/config_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/geo/geo_types_test.cpp b/be/test/geo/geo_types_test.cpp index 565acda371c13d..55e91cc69330e2 100644 --- a/be/test/geo/geo_types_test.cpp +++ b/be/test/geo/geo_types_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/geo/geo_types_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/geo/wkt_parse_test.cpp b/be/test/geo/wkt_parse_test.cpp index 709a6f2054cc09..f3728b5d0e12b7 100644 --- a/be/test/geo/wkt_parse_test.cpp +++ b/be/test/geo/wkt_parse_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/geo/wkt_parse_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/http/http_client_test.cpp b/be/test/http/http_client_test.cpp index c59eb572a9c477..c7dc67cca229ca 100644 --- a/be/test/http/http_client_test.cpp +++ b/be/test/http/http_client_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/http/http_client_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/http/http_utils_test.cpp b/be/test/http/http_utils_test.cpp index e93a6506576d0b..a79ee1751c49ed 100644 --- a/be/test/http/http_utils_test.cpp +++ b/be/test/http/http_utils_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/http/http_utils_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/http/message_body_sink_test.cpp b/be/test/http/message_body_sink_test.cpp index 580592d9e8cb96..7a7ae1d15d3250 100644 --- a/be/test/http/message_body_sink_test.cpp +++ b/be/test/http/message_body_sink_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/http/message_body_sink_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/plugin/example/plugin_example.cpp b/be/test/plugin/example/plugin_example.cpp index 4c38733d29c171..190f70bca77f09 100644 --- a/be/test/plugin/example/plugin_example.cpp +++ b/be/test/plugin/example/plugin_example.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/plugin/example/plugin_example.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/plugin/plugin_loader_test.cpp b/be/test/plugin/plugin_loader_test.cpp index b7f1b9d10191c2..1f725407d29fc0 100644 --- a/be/test/plugin/plugin_loader_test.cpp +++ b/be/test/plugin/plugin_loader_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/plugin/plugin_loader_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/plugin/plugin_mgr_test.cpp b/be/test/plugin/plugin_mgr_test.cpp index 1d09555bf72341..3d27bdf2441a95 100644 --- a/be/test/plugin/plugin_mgr_test.cpp +++ b/be/test/plugin/plugin_mgr_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/plugin/plugin_mgr_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/runtime/decimal_value_test.cpp b/be/test/runtime/decimal_value_test.cpp index 7b9772c2457827..b51c1a6cf72fc4 100644 --- a/be/test/runtime/decimal_value_test.cpp +++ b/be/test/runtime/decimal_value_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/runtime/decimal_value_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/runtime/large_int_value_test.cpp b/be/test/runtime/large_int_value_test.cpp index 9634ab02b7a09b..e818e5df67567b 100644 --- a/be/test/runtime/large_int_value_test.cpp +++ b/be/test/runtime/large_int_value_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/runtime/large_int_value_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/runtime/raw_value_test.cpp b/be/test/runtime/raw_value_test.cpp index fb93ad5e72f366..b84851b61011bf 100644 --- a/be/test/runtime/raw_value_test.cpp +++ b/be/test/runtime/raw_value_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/runtime/raw_value_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/runtime/small_file_mgr_test.cpp b/be/test/runtime/small_file_mgr_test.cpp index 53f7f4fee0bf02..66b38721119be7 100644 --- a/be/test/runtime/small_file_mgr_test.cpp +++ b/be/test/runtime/small_file_mgr_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/runtime/small_file_mgr_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/runtime/snapshot_loader_test.cpp b/be/test/runtime/snapshot_loader_test.cpp index fff477bead10c9..5b113f9b735fb5 100644 --- a/be/test/runtime/snapshot_loader_test.cpp +++ b/be/test/runtime/snapshot_loader_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/runtime/snapshot_loader_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/runtime/string_value_test.cpp b/be/test/runtime/string_value_test.cpp index 10b515c1eed016..806ffb1adf8a16 100644 --- a/be/test/runtime/string_value_test.cpp +++ b/be/test/runtime/string_value_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/runtime/string_value_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/runtime/thread_resource_mgr_test.cpp b/be/test/runtime/thread_resource_mgr_test.cpp index 9691e63dac8bea..831031e224ad0e 100644 --- a/be/test/runtime/thread_resource_mgr_test.cpp +++ b/be/test/runtime/thread_resource_mgr_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/runtime/thread_resource_mgr_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/storage/decimal12_test.cpp b/be/test/storage/decimal12_test.cpp index 89529cc8dbeac6..ae8093e77da1c7 100644 --- a/be/test/storage/decimal12_test.cpp +++ b/be/test/storage/decimal12_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/olap/decimal12_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/storage/hll_test.cpp b/be/test/storage/hll_test.cpp index d84a9cd2c26e10..e199b42b5266a8 100644 --- a/be/test/storage/hll_test.cpp +++ b/be/test/storage/hll_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/olap/hll_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/storage/rowset/unique_rowset_id_generator_test.cpp b/be/test/storage/rowset/unique_rowset_id_generator_test.cpp index 5033de5e521922..877e56a86c0e83 100644 --- a/be/test/storage/rowset/unique_rowset_id_generator_test.cpp +++ b/be/test/storage/rowset/unique_rowset_id_generator_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/olap/rowset/unique_rowset_id_generator_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/storage/selection_vector_test.cpp b/be/test/storage/selection_vector_test.cpp index e87c26249f39c0..ff42d598cfc8a0 100644 --- a/be/test/storage/selection_vector_test.cpp +++ b/be/test/storage/selection_vector_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/olap/selection_vector_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/aes_util_test.cpp b/be/test/util/aes_util_test.cpp index 848a4061688c51..0ea4093d9c34c8 100644 --- a/be/test/util/aes_util_test.cpp +++ b/be/test/util/aes_util_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/aes_util_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/bitmap_test.cpp b/be/test/util/bitmap_test.cpp index daa0f016cfe7b2..25c5d13305e11f 100644 --- a/be/test/util/bitmap_test.cpp +++ b/be/test/util/bitmap_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/bitmap_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/brpc_stub_cache_test.cpp b/be/test/util/brpc_stub_cache_test.cpp index 31503cedb6ea81..576cf81dca6a02 100644 --- a/be/test/util/brpc_stub_cache_test.cpp +++ b/be/test/util/brpc_stub_cache_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/brpc_stub_cache_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/byte_buffer_test2.cpp b/be/test/util/byte_buffer_test2.cpp index 3feb4dc7ad77c9..4313c435d1d0e7 100644 --- a/be/test/util/byte_buffer_test2.cpp +++ b/be/test/util/byte_buffer_test2.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/byte_buffer_test2.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/cidr_test.cpp b/be/test/util/cidr_test.cpp index df38a60060805d..7e2b38ec1aa5ac 100644 --- a/be/test/util/cidr_test.cpp +++ b/be/test/util/cidr_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/cidr_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/coding_test.cpp b/be/test/util/coding_test.cpp index 71f6110ef318a1..2f7bf1e73f340a 100644 --- a/be/test/util/coding_test.cpp +++ b/be/test/util/coding_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/coding_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/core_local_test.cpp b/be/test/util/core_local_test.cpp index 3d1529ef831854..17ab915017e5fa 100644 --- a/be/test/util/core_local_test.cpp +++ b/be/test/util/core_local_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/core_local_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/countdown_latch_test.cpp b/be/test/util/countdown_latch_test.cpp index 39871c88bd4923..c7cade85367493 100644 --- a/be/test/util/countdown_latch_test.cpp +++ b/be/test/util/countdown_latch_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/countdown_latch_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/crc32c_test.cpp b/be/test/util/crc32c_test.cpp index 7301f3ed1a9d4d..657cf432151f8d 100644 --- a/be/test/util/crc32c_test.cpp +++ b/be/test/util/crc32c_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/crc32c_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/easy_json-test.cpp b/be/test/util/easy_json-test.cpp index 182396462d90ac..a2623641f6e3f3 100644 --- a/be/test/util/easy_json-test.cpp +++ b/be/test/util/easy_json-test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/easy_json-test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/filesystem_util_test.cpp b/be/test/util/filesystem_util_test.cpp index 4e82fea931c390..4161230bcbbd2f 100644 --- a/be/test/util/filesystem_util_test.cpp +++ b/be/test/util/filesystem_util_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/filesystem_util_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/frame_of_reference_coding_test.cpp b/be/test/util/frame_of_reference_coding_test.cpp index 03583994276474..8c0c76469f61b0 100644 --- a/be/test/util/frame_of_reference_coding_test.cpp +++ b/be/test/util/frame_of_reference_coding_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/frame_of_reference_coding_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/json_util_test.cpp b/be/test/util/json_util_test.cpp index c0ed2e1dbc7b47..bf3eeaa99234af 100644 --- a/be/test/util/json_util_test.cpp +++ b/be/test/util/json_util_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/json_util_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/md5_test.cpp b/be/test/util/md5_test.cpp index 9e32ec3b3eb813..01d16229f53572 100644 --- a/be/test/util/md5_test.cpp +++ b/be/test/util/md5_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/md5_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/monotime_test.cpp b/be/test/util/monotime_test.cpp index a8a11faf7eec8b..ad84d40e09432c 100644 --- a/be/test/util/monotime_test.cpp +++ b/be/test/util/monotime_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/monotime_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/new_metrics_test.cpp b/be/test/util/new_metrics_test.cpp index da640e3fea4f46..94dc3013f24112 100644 --- a/be/test/util/new_metrics_test.cpp +++ b/be/test/util/new_metrics_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/new_metrics_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/path_trie_test.cpp b/be/test/util/path_trie_test.cpp index 8c1ad13fe8cd87..84d5b24100c450 100644 --- a/be/test/util/path_trie_test.cpp +++ b/be/test/util/path_trie_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/path_trie_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/radix_sort_test.cpp b/be/test/util/radix_sort_test.cpp index 16904ae243d09b..d4e7494316478c 100644 --- a/be/test/util/radix_sort_test.cpp +++ b/be/test/util/radix_sort_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/radix_sort_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/scoped_cleanup_test.cpp b/be/test/util/scoped_cleanup_test.cpp index 4f456e0ddb74d1..8fa89fcc368d4c 100644 --- a/be/test/util/scoped_cleanup_test.cpp +++ b/be/test/util/scoped_cleanup_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/scoped_cleanup_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/thread_test.cpp b/be/test/util/thread_test.cpp index fda074bb3ff07d..9903049d0ef7f7 100644 --- a/be/test/util/thread_test.cpp +++ b/be/test/util/thread_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/thread_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/threadpool_test.cpp b/be/test/util/threadpool_test.cpp index 004d9fa7b5a565..d6b01a0772c6fc 100644 --- a/be/test/util/threadpool_test.cpp +++ b/be/test/util/threadpool_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/threadpool_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/trace_test.cpp b/be/test/util/trace_test.cpp index 175cb0b360a5b9..50d6bf0374e2d7 100644 --- a/be/test/util/trace_test.cpp +++ b/be/test/util/trace_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/trace_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/be/test/util/uid_util_test.cpp b/be/test/util/uid_util_test.cpp index d90dc9abc2f29b..9f12ab636574af 100644 --- a/be/test/util/uid_util_test.cpp +++ b/be/test/util/uid_util_test.cpp @@ -1,7 +1,3 @@ -// This file is made available under Elastic License 2.0. -// This file is based on code available under the Apache license here: -// https://github.com/apache/incubator-doris/blob/master/be/test/util/uid_util_test.cpp - // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information