Skip to content

Commit acaa891

Browse files
committed
Update build files to include MetadataTable
1 parent 611b031 commit acaa891

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
@@ -43,7 +43,7 @@ set(ICEBERG_SOURCES
4343
file_reader.cc
4444
file_writer.cc
4545
inspect/history_table.cc
46-
inspect/metadata_table_factory.cc
46+
inspect/metadata_table.cc
4747
inspect/snapshots_table.cc
4848
inheritable_metadata.cc
4949
json_serde.cc
@@ -60,7 +60,6 @@ set(ICEBERG_SOURCES
6060
manifest/v2_metadata.cc
6161
manifest/v3_metadata.cc
6262
metadata_columns.cc
63-
inspect/metadata_table.cc
6463
metrics_config.cc
6564
name_mapping.cc
6665
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
@@ -61,6 +61,9 @@ iceberg_sources = files(
6161
'file_reader.cc',
6262
'file_writer.cc',
6363
'inheritable_metadata.cc',
64+
'inspect/metadata_table.cc',
65+
'inspect/snapshots_table.cc',
66+
'inspect/history_table.cc',
6467
'json_serde.cc',
6568
'location_provider.cc',
6669
'manifest/manifest_adapter.cc',
@@ -224,6 +227,7 @@ subdir('manifest')
224227
subdir('row')
225228
subdir('update')
226229
subdir('util')
230+
subdir('inspect')
227231

228232
if get_option('tests').enabled()
229233
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)