Skip to content

Commit fc89ecf

Browse files
committed
Update build files to include MetadataTable
1 parent 0df25ec commit fc89ecf

5 files changed

Lines changed: 49 additions & 2 deletions

File tree

src/iceberg/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ set(ICEBERG_SOURCES
4242
file_reader.cc
4343
file_writer.cc
4444
inspect/history_table.cc
45-
inspect/metadata_table_factory.cc
45+
inspect/metadata_table.cc
4646
inspect/snapshots_table.cc
4747
inheritable_metadata.cc
4848
json_serde.cc
@@ -61,7 +61,6 @@ set(ICEBERG_SOURCES
6161
manifest/v2_metadata.cc
6262
manifest/v3_metadata.cc
6363
metadata_columns.cc
64-
inspect/metadata_table.cc
6564
metrics_config.cc
6665
name_mapping.cc
6766
partition_field.cc

src/iceberg/inspect/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
iceberg_install_all_headers(iceberg/inspect)

src/iceberg/inspect/meson.build

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
install_headers(
19+
[
20+
'history_table.h',
21+
'metadata_table.h',
22+
'snapshots_table.h',
23+
],
24+
subdir: 'iceberg/inspect',
25+
)

src/iceberg/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ iceberg_sources = files(
6464
'file_reader.cc',
6565
'file_writer.cc',
6666
'inheritable_metadata.cc',
67+
'inspect/metadata_table.cc',
68+
'inspect/snapshots_table.cc',
69+
'inspect/history_table.cc',
6770
'json_serde.cc',
6871
'location_provider.cc',
6972
'manifest/manifest_adapter.cc',
@@ -283,6 +286,7 @@ subdir('puffin')
283286
subdir('row')
284287
subdir('update')
285288
subdir('util')
289+
subdir('inspect')
286290

287291
if get_option('tests').enabled()
288292
subdir('test')

src/iceberg/test/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ iceberg_tests = {
5656
'table_requirements_test.cc',
5757
'table_test.cc',
5858
'table_update_test.cc',
59+
'metadata_table_test.cc',
5960
),
6061
},
6162
'expression_test': {

0 commit comments

Comments
 (0)