Skip to content

Commit d083b89

Browse files
fix: remove converttype function in sdk/sql_insert_row.h (#2190)
Signed-off-by: mango <[email protected]>
1 parent 727a404 commit d083b89

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/sdk/sql_insert_row.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,6 @@ namespace openmldb::sdk {
3535

3636
typedef std::shared_ptr<std::map<uint32_t, std::shared_ptr<::hybridse::node::ConstNode>>> DefaultValueMap;
3737

38-
static inline ::hybridse::sdk::DataType ConvertType(::openmldb::type::DataType type) {
39-
switch (type) {
40-
case openmldb::type::kBool:
41-
return ::hybridse::sdk::kTypeBool;
42-
case openmldb::type::kSmallInt:
43-
return ::hybridse::sdk::kTypeInt16;
44-
case openmldb::type::kInt:
45-
return ::hybridse::sdk::kTypeInt32;
46-
case openmldb::type::kBigInt:
47-
return ::hybridse::sdk::kTypeInt64;
48-
case openmldb::type::kFloat:
49-
return ::hybridse::sdk::kTypeFloat;
50-
case openmldb::type::kDouble:
51-
return ::hybridse::sdk::kTypeDouble;
52-
case openmldb::type::kTimestamp:
53-
return ::hybridse::sdk::kTypeTimestamp;
54-
case openmldb::type::kString:
55-
case openmldb::type::kVarchar:
56-
return ::hybridse::sdk::kTypeString;
57-
default:
58-
return ::hybridse::sdk::kTypeUnknow;
59-
}
60-
}
61-
6238
class SQLInsertRow {
6339
public:
6440
SQLInsertRow(std::shared_ptr<::openmldb::nameserver::TableInfo> table_info,

0 commit comments

Comments
 (0)