Skip to content

Commit aa6d23f

Browse files
committed
feat: adopt MurmurHash3
Which will be used by BucketTransform.
1 parent a5bcd45 commit aa6d23f

File tree

6 files changed

+475
-3
lines changed

6 files changed

+475
-3
lines changed

.github/.licenserc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ header:
1212
- 'LICENSE'
1313
- 'NOTICE'
1414
- 'src/iceberg/expected.h'
15+
- 'src/iceberg/util/murmurhash3_internal.*'
1516

1617
comment: on-failure

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,16 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
254254
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
255255
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
256256
SOFTWARE.
257+
258+
--------------------------------------------------------------------------------
259+
260+
The file src/iceberg/murmur3_internal.h contains code adapted from
261+
262+
https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.h
263+
264+
The file src/iceberg/murmur3_internal.cc contains code adapted from
265+
266+
https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp
267+
268+
MurmurHash3 was written by Austin Appleby, and is placed in the public
269+
domain. The author disclaims copyright to this source code.

NOTICE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ The Apache Software Foundation (http://www.apache.org/).
77
This product includes code from zeus-cpp
88
* Copyright (c) 2024 zeus-cpp
99
* https://github.com/zeus-cpp/expected
10+
11+
This product includes code from smhasher
12+
* MurmurHash3 was written by Austin Appleby, and is placed in the public
13+
* domain. The author hereby disclaims copyright to this source code.
14+
* https://github.com/aappleby/smhasher

src/iceberg/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,20 @@ set(ICEBERG_SOURCES
2121
arrow_c_data_internal.cc
2222
demo.cc
2323
json_internal.cc
24+
partition_field.cc
25+
partition_spec.cc
2426
schema.cc
2527
schema_field.cc
2628
schema_internal.cc
27-
partition_field.cc
28-
partition_spec.cc
29+
snapshot.cc
2930
sort_field.cc
3031
sort_order.cc
3132
statistics_file.cc
3233
table_metadata.cc
3334
transform.cc
3435
transform_function.cc
3536
type.cc
36-
snapshot.cc)
37+
util/murmurhash3_internal.cc)
3738

3839
set(ICEBERG_STATIC_BUILD_INTERFACE_LIBS)
3940
set(ICEBERG_SHARED_BUILD_INTERFACE_LIBS)

0 commit comments

Comments
 (0)