Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwenchi committed Nov 22, 2024
1 parent 64a2106 commit 420d989
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion be/src/vec/exec/format/table/iceberg/arrow_schema_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Status ArrowSchemaUtil::convert_to(const iceberg::NestedField& field,
break;

case iceberg::TypeID::DECIMAL: {
DecimalType* dt = dynamic_cast<DecimalType*>(field.field_type());
auto dt = dynamic_cast<DecimalType*>(field.field_type());
arrow_type = arrow::decimal(dt->get_precision(), dt->get_scale());
break;
}
Expand Down
5 changes: 0 additions & 5 deletions be/src/vec/exec/format/table/iceberg/arrow_schema_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@

#pragma once

// #include <arrow/io/type_fwd.h>
// #include <sys/stat.h>
// #include <sys/types.h>
// #include <unistd.h>

#include <arrow/type.h>

#include <shared_mutex>
Expand Down
4 changes: 2 additions & 2 deletions be/src/vec/exec/format/table/iceberg/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ class DecimalType : public PrimitiveType {
return ss.str();
}

int get_precision() { return precision; }
int get_precision() const { return precision; }

int get_scale() { return scale; }
int get_scale() const { return scale; }
};

class BinaryType : public PrimitiveType {
Expand Down

0 comments on commit 420d989

Please sign in to comment.