Skip to content

Commit

Permalink
conversion of ipv4 or ipv6 to arrow type
Browse files Browse the repository at this point in the history
  • Loading branch information
vinlee19 committed Mar 15, 2024
1 parent 5f75b36 commit 491d099
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions be/src/vec/data_types/data_type_ipv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace doris::vectorized {
class DataTypeIPv4 final : public DataTypeNumberBase<IPv4> {
public:
TypeIndex get_type_id() const override { return TypeIndex::IPv4; }
TypeDescriptor get_type_as_type_descriptor() const override {
return TypeDescriptor(TYPE_IPV4);
}
const char* get_family_name() const override { return "IPv4"; }
std::string do_get_name() const override { return "IPv4"; }

Expand Down
3 changes: 3 additions & 0 deletions be/src/vec/data_types/data_type_ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace doris::vectorized {
class DataTypeIPv6 final : public DataTypeNumberBase<IPv6> {
public:
TypeIndex get_type_id() const override { return TypeIndex::IPv6; }
TypeDescriptor get_type_as_type_descriptor() const override {
return TypeDescriptor(TYPE_IPV6);
}
doris::FieldType get_storage_field_type() const override {
return doris::FieldType::OLAP_FIELD_TYPE_IPV6;
}
Expand Down

0 comments on commit 491d099

Please sign in to comment.