-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
bp #37249 Co-authored-by: slothever <18522955+wsjz@users.noreply.github.com>
- Loading branch information
1 parent
b6e5281
commit ba66ff5
Showing
9 changed files
with
204 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
regression-test/data/external_table_p0/paimon/test_paimon_minio.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !no_region1 -- | ||
2024-01-02T10:04:05.100 2024-01-02T02:04:05.123456 | ||
|
||
-- !no_region2 -- | ||
1 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T02:04:05.100 2024-01-02T02:04:05.120 2024-01-02T02:04:05.123 2024-01-02T02:04:05.123400 2024-01-02T02:04:05.123450 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 | ||
|
||
-- !region1 -- | ||
2024-01-02T10:04:05.100 2024-01-02T02:04:05.123456 | ||
|
||
-- !region2 -- | ||
1 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T02:04:05.100 2024-01-02T02:04:05.120 2024-01-02T02:04:05.123 2024-01-02T02:04:05.123400 2024-01-02T02:04:05.123450 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 |
66 changes: 66 additions & 0 deletions
66
regression-test/suites/external_table_p0/paimon/test_paimon_minio.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
suite("test_paimon_minio", "p0,external,doris,external_docker,external_docker_doris") { | ||
String enabled = context.config.otherConfigs.get("enablePaimonTest") | ||
if (enabled != null && enabled.equalsIgnoreCase("true")) { | ||
String minio_port = context.config.otherConfigs.get("iceberg_minio_port") | ||
String catalog_name = "test_paimon_minio" | ||
String externalEnvIp = context.config.otherConfigs.get("externalEnvIp") | ||
String table_name = "ts_scale_orc" | ||
|
||
sql """drop catalog if exists ${catalog_name}""" | ||
|
||
sql """ | ||
CREATE CATALOG ${catalog_name} PROPERTIES ( | ||
'type' = 'paimon', | ||
'warehouse' = 's3://warehouse/wh', | ||
's3.endpoint' = 'http://${externalEnvIp}:${minio_port}', | ||
's3.access_key' = 'admin', | ||
's3.secret_key' = 'password', | ||
's3.path.style.access' = 'true' | ||
); | ||
""" | ||
sql """switch `${catalog_name}`""" | ||
sql """show databases; """ | ||
sql """use `${catalog_name}`.`flink_paimon`""" | ||
order_qt_no_region1 """select ts1,ts19 from ${table_name} """ | ||
order_qt_no_region2 """select * from ${table_name} """ | ||
sql """drop catalog if exists ${catalog_name}""" | ||
|
||
sql """drop catalog if exists ${catalog_name}_with_region""" | ||
sql """ | ||
CREATE CATALOG ${catalog_name}_with_region PROPERTIES ( | ||
'type' = 'paimon', | ||
'warehouse' = 's3://warehouse/wh', | ||
's3.endpoint' = 'http://${externalEnvIp}:${minio_port}', | ||
's3.access_key' = 'admin', | ||
's3.secret_key' = 'password', | ||
's3.region' = 'us-west-2', | ||
's3.path.style.access' = 'true' | ||
); | ||
""" | ||
sql """switch `${catalog_name}_with_region`""" | ||
sql """show databases; """ | ||
sql """use `${catalog_name}_with_region`.`flink_paimon`""" | ||
order_qt_region1 """select ts1,ts19 from ${table_name} """ | ||
order_qt_region2 """select * from ${table_name} """ | ||
sql """drop catalog if exists ${catalog_name}_with_region""" | ||
} | ||
} | ||
|
||
|