Skip to content

Commit fc31204

Browse files
committed
fix
1 parent ebb6ef9 commit fc31204

File tree

5 files changed

+7
-20
lines changed

5 files changed

+7
-20
lines changed

.github/workflows/build_release.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,6 @@ permissions:
3030
contents: read
3131

3232
jobs:
33-
clang-release:
34-
runs-on: ubuntu-24.04
35-
timeout-minutes: 120
36-
strategy:
37-
fail-fast: false
38-
steps:
39-
- name: Checkout paimon-cpp
40-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
41-
with:
42-
lfs: true
43-
- name: Build Paimon
44-
shell: bash
45-
env:
46-
CC: clang
47-
CXX: clang++
48-
run: ci/scripts/build_paimon.sh $(pwd) false false Release
4933
gcc-release:
5034
runs-on: ubuntu-24.04
5135
timeout-minutes: 120

src/paimon/common/utils/decimal_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
namespace paimon {
3030
Status DecimalUtils::CheckDecimalType(const arrow::DataType& type) {
31-
auto* decimal_type = arrow::internal::checked_cast<const arrow::Decimal128Type*>(&type);
31+
auto* decimal_type = dynamic_cast<const arrow::Decimal128Type*>(&type);
3232
if (!decimal_type) {
3333
return Status::Invalid(fmt::format("Invalid decimal type: {}", type.ToString()));
3434
}

test/inte/data_evolution_table_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,8 @@ TEST_P(DataEvolutionTableTest, TestWithRowIds) {
18981898
}
18991899

19001900
std::vector<std::string> GetTestValuesForDataEvolutionTableTest() {
1901-
std::vector<std::string> values = {"parquet"};
1901+
std::vector<std::string> values;
1902+
values.emplace_back("parquet");
19021903
#ifdef PAIMON_ENABLE_ORC
19031904
values.emplace_back("orc");
19041905
#endif

test/inte/global_index_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,8 @@ TEST_P(GlobalIndexTest, TestScanIndexWithTwoIndexes) {
16751675
}
16761676

16771677
std::vector<std::string> GetTestValuesForGlobalIndexTest() {
1678-
std::vector<std::string> values = {"parquet"};
1678+
std::vector<std::string> values;
1679+
values.emplace_back("parquet");
16791680
#ifdef PAIMON_ENABLE_ORC
16801681
values.emplace_back("orc");
16811682
#endif

test/inte/write_inte_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ class WriteInteTest : public testing::Test, public ::testing::WithParamInterface
254254
};
255255

256256
std::vector<std::string> GetTestValuesForWriteInteTest() {
257-
std::vector<std::string> values = {"parquet"};
257+
std::vector<std::string> values;
258+
values.emplace_back("parquet");
258259
#ifdef PAIMON_ENABLE_ORC
259260
values.emplace_back("orc");
260261
#endif

0 commit comments

Comments
 (0)