Skip to content

Commit d0eed17

Browse files
committed
Trino: Mount catalog files individually to preserve built-in catalogs
Address feedback from ebyhr on PR apache#2220 discussion r2583421945. Instead of mounting the entire catalog directory, mount individual catalog property files. This allows Trino to use its built-in catalogs (memory, TPCH) which are helpful during development, while still providing our custom Iceberg catalogs. Added: - memory.properties - In-memory connector for quick testing - tpch.properties - TPC-H benchmark data for development This makes the Trino container more flexible and developer-friendly.
1 parent fd26ee4 commit d0eed17

3 files changed

Lines changed: 40 additions & 1 deletion

File tree

dev/docker-compose-trino.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ services:
4343
- rest
4444
- hive
4545
volumes:
46-
- ./trino/catalog:/etc/trino/catalog
46+
- ./trino/catalog/warehouse_rest.properties:/etc/trino/catalog/warehouse_rest.properties
47+
- ./trino/catalog/warehouse_hive.properties:/etc/trino/catalog/warehouse_hive.properties
48+
- ./trino/catalog/memory.properties:/etc/trino/catalog/memory.properties
49+
- ./trino/catalog/tpch.properties:/etc/trino/catalog/tpch.properties
4750
- ./trino/config.properties:/etc/trino/config.properties
4851

4952
minio:
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+
connector.name=memory

dev/trino/catalog/tpch.properties

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+
connector.name=tpch

0 commit comments

Comments
 (0)