需求:SELECT语句支持sample子句,实现数据采样

This commit is contained in:
lukeman
2024-02-27 14:39:31 +08:00
committed by yaoxin
parent 9eb8610c29
commit 978f6515d8
15 changed files with 1057 additions and 113 deletions

View File

@ -33,9 +33,13 @@
#define NEWBLOCK 0 /* Identify we have got a new block. */
#define NONEWBLOCK 1 /* Identify we are under scanning tuple in old block. */
#define MIN_PERCENT_ARG 0 /* Minimum value of percent. */
#define MIN_PERCENT_ARG 0.000001 /* Minimum value of percent. */
#define MAX_PERCENT_ARG 100 /* Maxmum value of percent. */
#define MIN_SEED_ARG 0 /* Minimum value of seed. */
#define MAX_SEED_ARG 4294967295 /* Maxmum value of seed. */
/* The flag identify the tuple or block is valid or not for sample scan. */
typedef enum { VALIDDATA, NEXTDATA, INVALIDBLOCKNO, INVALIDOFFSET } ScanValid;