Skip to content

Commit

Permalink
feat: rm ImmutableMap
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Feb 28, 2024
1 parent c16b264 commit ae12921
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions hybridse/src/udf/literal_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,27 +145,6 @@ struct ArrayRef {
uint64_t size;
};

// ===================================== //
// ImmutableMap
// - KEY type: simple type only: numeric, date, timestamp, string, NOT NULL
// - VALUE type: any data type, can be NULL
//
// Super simple implementation.
// - Lookup: linear complexity
// - On duplicate key: only last key value pair kept
// - It's better to raise a error, however OpenMLDB does not has a error machinism
// ===================================== //
template <typename KEY, typename VALUE>
struct ImmutableMap {
using CKEY = typename DataTypeTrait<KEY>::CCallArgType;
using CVALUE = typename DataTypeTrait<VALUE>::CCallArgType;

size_t size;
CKEY* keys;
CVALUE* values;
bool* value_nulls;
};

// ===================================== //
// Tuple
// ===================================== //
Expand Down

0 comments on commit ae12921

Please sign in to comment.