Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzm committed Nov 5, 2024
1 parent 794fb93 commit 75b8513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tsl/src/nodes/vector_agg/grouping_policy_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ typedef struct HashingConfig
uint32 *restrict result_key_indexes;
} HashingConfig;

static inline HashingConfig
static pg_attribute_always_inline HashingConfig
build_hashing_config(GroupingPolicyHash *policy, DecompressBatchState *batch_state)
{
HashingConfig config = {
Expand Down
7 changes: 4 additions & 3 deletions tsl/src/nodes/vector_agg/hash_table_functions_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ typedef struct
uint32 key_index;
} FUNCTION_NAME(entry);

#define SH_FILLFACTOR (0.5)
#define SH_PREFIX KEY_VARIANT
#define SH_ELEMENT_TYPE FUNCTION_NAME(entry)
#define SH_KEY_TYPE CTYPE
Expand Down Expand Up @@ -154,15 +155,15 @@ FUNCTION_NAME(fill_offsets_impl)(
* when all the batch and key rows are valid.
*/
#define APPLY_FOR_BATCH_FILTER(X, NAME, COND) \
X(NAME, (COND) && (config.batch_filter == NULL)) \
X(NAME##_nofilter, (COND) && (config.batch_filter == NULL)) \
X(NAME##_filter, (COND) && (config.batch_filter != NULL))

#define APPLY_FOR_VALIDITY(X, NAME, COND) \
APPLY_FOR_BATCH_FILTER(X, NAME, (COND) && config.single_key.buffers[0] == NULL) \
APPLY_FOR_BATCH_FILTER(X, NAME##_notnull, (COND) && config.single_key.buffers[0] == NULL) \
APPLY_FOR_BATCH_FILTER(X, NAME##_nullable, (COND) && config.single_key.buffers[0] != NULL)

#define APPLY_FOR_SCALARS(X, NAME, COND) \
APPLY_FOR_BATCH_FILTER(X, NAME, (COND) && !config.have_scalar_columns) \
APPLY_FOR_BATCH_FILTER(X, NAME##_noscalar, (COND) && !config.have_scalar_columns) \
APPLY_FOR_BATCH_FILTER(X, NAME##_scalar, (COND) && config.have_scalar_columns)

#define APPLY_FOR_TYPE(X, NAME, COND) \
Expand Down

0 comments on commit 75b8513

Please sign in to comment.