15#define DEFAULT_VECTOR_CAPACITY_LOG_2 11
16#ifndef KUZU_VECTOR_CAPACITY_LOG2
17#define VECTOR_CAPACITY_LOG_2 DEFAULT_VECTOR_CAPACITY_LOG_2
19#define VECTOR_CAPACITY_LOG_2 KUZU_VECTOR_CAPACITY_LOG2
21#if VECTOR_CAPACITY_LOG_2 > 12
22#error "Vector capacity log2 should be less than or equal to 12"
40 static constexpr char ID[] =
"_ID";
41 static constexpr char LABEL[] =
"_LABEL";
42 static constexpr char SRC[] =
"_SRC";
43 static constexpr char DST[] =
"_DST";
45 static constexpr char LENGTH[] =
"_LENGTH";
46 static constexpr char NODES[] =
"_NODES";
47 static constexpr char RELS[] =
"_RELS";
48 static constexpr char STAR[] =
"*";
53 static constexpr std::string_view
ROW_OFFSET =
"_row_offset";
54 static constexpr std::string_view
SRC_OFFSET =
"_src_offset";
55 static constexpr std::string_view
DST_OFFSET =
"_dst_offset";
66#ifdef KUZU_PAGE_SIZE_LOG2
67static constexpr uint64_t PAGE_SIZE_LOG2 = KUZU_PAGE_SIZE_LOG2;
69static constexpr uint64_t PAGE_SIZE_LOG2 = 12;
71static constexpr uint64_t KUZU_PAGE_SIZE =
static_cast<uint64_t
>(1) << PAGE_SIZE_LOG2;
74static constexpr uint64_t TEMP_PAGE_SIZE_LOG2 = 18;
75static const uint64_t TEMP_PAGE_SIZE =
static_cast<uint64_t
>(1) << TEMP_PAGE_SIZE_LOG2;
165 "startByteOffset",
"endByteOffset"};
232 "line_number",
"skipped_line_or_record"};
240static constexpr char ATTACHED_KUZU_DB_TYPE[] =
"KUZU";
242static constexpr char LOCAL_DB_NAME[] =
"local(kuzu)";
246static constexpr char SCAN_JSON_FUNC_NAME[] =
"READ_JSON";
#define VECTOR_CAPACITY_LOG_2
Definition constants.h:17
constexpr auto DECIMAL_PRECISION_LIMIT
Definition constants.h:244
constexpr uint64_t DEFAULT_VECTOR_CAPACITY
Definition constants.h:24
constexpr std::array< T, N1+N2 > arrayConcat(const std::array< T, N1 > &arr1, const std::array< T, N2 > &arr2)
Definition array_utils.h:9
constexpr uint64_t CHUNK_RESIZE_RATIO
Definition constants.h:36
constexpr double DEFAULT_HT_LOAD_FACTOR
Definition constants.h:26
uint32_t column_id_t
Definition types.h:38
constexpr uint64_t THREAD_SLEEP_TIME_WHEN_WAITING_IN_MICROS
Definition constants.h:30
const char * KUZU_VERSION
PageSizeClass
Definition constants.h:58
@ TEMP_PAGE
Definition constants.h:60
@ REGULAR_PAGE
Definition constants.h:59
constexpr uint64_t DEFAULT_CHECKPOINT_WAIT_TIMEOUT_IN_MICROS
Definition constants.h:32
Definition array_utils.h:7
Definition constants.h:77
static constexpr uint64_t DEFAULT_VM_REGION_MAX_SIZE
Definition constants.h:85
static constexpr uint64_t DEFAULT_BUFFER_POOL_SIZE_FOR_TESTING
Definition constants.h:87
static constexpr double DEFAULT_PHY_MEM_SIZE_RATIO_FOR_BM
Definition constants.h:80
Definition constants.h:128
static constexpr const char * STRING_CSV_PARSING_OPTIONS[]
Definition constants.h:143
static constexpr char DEFAULT_CSV_DELIMITER
Definition constants.h:146
static constexpr uint64_t DEFAULT_CSV_SKIP_NUM
Definition constants.h:160
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_NAMES
Definition constants.h:171
static constexpr bool DEFAULT_CSV_AUTO_DETECT
Definition constants.h:152
static constexpr std::array SHARED_WARNING_DATA_COLUMN_NAMES
Definition constants.h:164
static constexpr uint64_t PANDAS_PARTITION_COUNT
Definition constants.h:157
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_TYPES
Definition constants.h:172
static constexpr uint64_t DEFAULT_CSV_TYPE_DEDUCTION_SAMPLE_SIZE
Definition constants.h:161
static constexpr const char * INT_CSV_PARSING_OPTIONS[]
Definition constants.h:159
static constexpr std::array DEFAULT_CSV_QUOTE_SEARCH_SPACE
Definition constants.h:155
static constexpr char DEFAULT_CSV_QUOTE_CHAR
Definition constants.h:148
static constexpr char DEFAULT_CSV_LIST_BEGIN_CHAR
Definition constants.h:149
static constexpr bool DEFAULT_CSV_ALLOW_UNBRACED_LIST
Definition constants.h:147
static constexpr const char * BOOL_CSV_PARSING_OPTIONS[]
Definition constants.h:137
static constexpr bool DEFAULT_CSV_SET_DIALECT
Definition constants.h:153
static constexpr column_id_t CSV_WARNING_DATA_NUM_COLUMNS
Definition constants.h:178
static constexpr std::array CSV_WARNING_DATA_COLUMN_TYPES
Definition constants.h:176
static constexpr bool DEFAULT_IGNORE_ERRORS
Definition constants.h:151
static constexpr column_id_t MAX_NUM_WARNING_DATA_COLUMNS
Definition constants.h:182
static constexpr std::array DEFAULT_CSV_DELIMITER_SEARCH_SPACE
Definition constants.h:154
static constexpr const char * IGNORE_ERRORS_OPTION_NAME
Definition constants.h:136
static constexpr uint64_t PARALLEL_BLOCK_SIZE
Definition constants.h:134
static constexpr std::array SHARED_WARNING_DATA_COLUMN_TYPES
Definition constants.h:166
static constexpr column_id_t SHARED_WARNING_DATA_NUM_COLUMNS
Definition constants.h:168
static constexpr bool DEFAULT_CSV_HAS_HEADER
Definition constants.h:139
static constexpr bool DEFAULT_CSV_PARALLEL
Definition constants.h:140
static constexpr char DEFAULT_CSV_LIST_END_CHAR
Definition constants.h:150
static constexpr uint64_t INITIAL_BUFFER_SIZE
Definition constants.h:130
static constexpr char DEFAULT_CSV_ESCAPE_CHAR
Definition constants.h:145
static constexpr std::array CSV_WARNING_DATA_COLUMN_NAMES
Definition constants.h:174
static constexpr std::array DEFAULT_CSV_ESCAPE_SEARCH_SPACE
Definition constants.h:156
Definition constants.h:218
static constexpr const char * DEFAULT_CSV_NEWLINE
Definition constants.h:219
static constexpr uint64_t DEFAULT_CSV_FLUSH_SIZE
Definition constants.h:222
static constexpr const char * DEFAULT_NULL_STR
Definition constants.h:220
static constexpr bool DEFAULT_FORCE_QUOTE
Definition constants.h:221
Definition constants.h:124
static constexpr uint16_t SLOT_CAPACITY_BYTES
Definition constants.h:125
Definition constants.h:225
static constexpr char COPY_NAME[]
Definition constants.h:227
static constexpr char SCHEMA_NAME[]
Definition constants.h:226
Definition constants.h:38
static constexpr char STAR[]
Definition constants.h:48
static constexpr char LENGTH[]
Definition constants.h:45
static constexpr char PLACE_HOLDER[]
Definition constants.h:49
static constexpr std::string_view DST_OFFSET
Definition constants.h:55
static constexpr char RELS[]
Definition constants.h:47
static constexpr char DIRECTION[]
Definition constants.h:44
static constexpr char ID[]
Definition constants.h:40
static constexpr std::string_view SRC_OFFSET
Definition constants.h:54
static constexpr char DST[]
Definition constants.h:43
static constexpr std::string_view ROW_OFFSET
Definition constants.h:53
static constexpr char MAP_KEY[]
Definition constants.h:50
static constexpr char MAP_VALUE[]
Definition constants.h:51
static constexpr char SRC[]
Definition constants.h:42
static constexpr char LABEL[]
Definition constants.h:41
static constexpr char NODES[]
Definition constants.h:46
static constexpr char ANONYMOUS[]
Definition constants.h:39
Definition constants.h:194
static constexpr uint64_t MIN_SIZE_TO_REDUCE
Definition constants.h:196
static constexpr uint64_t MIN_LIMIT_RATIO_TO_REDUCE
Definition constants.h:197
static constexpr uint64_t NUM_BYTES_FOR_PAYLOAD_IDX
Definition constants.h:195
Definition constants.h:200
static constexpr uint64_t PARQUET_DEFINE_VALID
Definition constants.h:201
static constexpr uint64_t PARQUET_UUID_SIZE
Definition constants.h:215
static constexpr uint64_t MAX_UNCOMPRESSED_PAGE_SIZE
Definition constants.h:205
static constexpr uint64_t STRING_LENGTH_SIZE
Definition constants.h:212
static constexpr uint64_t MAX_STRING_STATISTICS_SIZE
Definition constants.h:213
static constexpr uint64_t MAX_DICTIONARY_KEY_SIZE
Definition constants.h:210
static constexpr const char * PARQUET_MAGIC_WORDS
Definition constants.h:202
static constexpr uint64_t MAX_UNCOMPRESSED_DICT_PAGE_SIZE
Definition constants.h:208
static constexpr uint64_t PARQUET_INTERVAL_SIZE
Definition constants.h:214
Definition constants.h:185
static constexpr double NON_EQUALITY_PREDICATE_SELECTIVITY
Definition constants.h:186
static constexpr double EQUALITY_PREDICATE_SELECTIVITY
Definition constants.h:187
static constexpr uint64_t BUILD_PENALTY
Definition constants.h:188
static constexpr uint64_t SIP_RATIO
Definition constants.h:191
Definition constants.h:90
static constexpr char CATALOG_FILE_NAME_FOR_WAL[]
Definition constants.h:96
static constexpr char CATALOG_FILE_NAME[]
Definition constants.h:95
static constexpr char METADATA_FILE_NAME_FOR_WAL[]
Definition constants.h:99
static constexpr char TEMP_SPILLING_FILE_NAME[]
Definition constants.h:120
static constexpr char WAL_FILE_SUFFIX[]
Definition constants.h:92
static constexpr char LOCK_FILE_NAME[]
Definition constants.h:100
static constexpr uint64_t MAX_NUM_ROWS_IN_TABLE
Definition constants.h:118
static constexpr uint64_t CSR_LEAF_REGION_SIZE
Definition constants.h:115
static constexpr char METADATA_FILE_NAME[]
Definition constants.h:98
static constexpr uint64_t PAGE_IDX_IN_GROUP_MASK
Definition constants.h:105
static constexpr char OVERFLOW_FILE_SUFFIX[]
Definition constants.h:91
static constexpr uint64_t CSR_LEAF_REGION_SIZE_LOG2
Definition constants.h:114
static constexpr char SHADOWING_SUFFIX[]
Definition constants.h:93
static constexpr uint64_t PAGE_GROUP_SIZE
Definition constants.h:104
static constexpr char DATA_FILE_NAME[]
Definition constants.h:97
static constexpr uint64_t NODE_GROUP_SIZE_LOG2
Definition constants.h:108
static constexpr char INDEX_FILE_SUFFIX[]
Definition constants.h:94
static constexpr double PACKED_CSR_DENSITY
Definition constants.h:111
static constexpr uint64_t PAGE_GROUP_SIZE_LOG2
Definition constants.h:103
static constexpr uint64_t NODE_GROUP_SIZE
Definition constants.h:109
static constexpr double LEAF_HIGH_CSR_DENSITY
Definition constants.h:112
Definition constants.h:230
static constexpr std::array WARNING_TABLE_COLUMN_DATA_TYPES
Definition constants.h:233
static constexpr std::array WARNING_TABLE_COLUMN_NAMES
Definition constants.h:231
static constexpr uint64_t WARNING_TABLE_NUM_COLUMNS
Definition constants.h:235