Skip to content

Commit 2f30859

Browse files
committed
fix docker
1 parent 47cd2f0 commit 2f30859

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docker/thirdparties/docker-compose/iceberg/entrypoint.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ echo "Script paimon total: {} executed in $EXECUTION_TIME2 seconds"
5858

5959
ls /mnt/scripts/create_preinstalled_scripts/iceberg_scala/*.scala | xargs -n 1 -I {} bash -c '
6060
START_TIME=$(date +%s)
61-
spark-shell --conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions -i {}
61+
spark-shell --conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions -I {}
6262
END_TIME=$(date +%s)
6363
EXECUTION_TIME=$((END_TIME - START_TIME))
6464
echo "Script: {} executed in $EXECUTION_TIME seconds"

docker/thirdparties/docker-compose/iceberg/scripts/create_preinstalled_scripts/iceberg_scala/run01.scala

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
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+
118
val dbName = "format_v3"
219
val tableName = "dv_test"
320
val fullTable = s"$dbName.$tableName"
@@ -147,4 +164,4 @@ DELETE FROM $fullTable
147164
WHERE id%3 = 1
148165
""")
149166

150-
// spark.sql(s""" select count(*) from $fullTable """).show()
167+
// spark.sql(s""" select count(*) from $fullTable """).show()

0 commit comments

Comments
 (0)