Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SouravRoy-ETL/slothdb
/ functions
Functions
2,343 in github.com/SouravRoy-ETL/slothdb
⨍
Functions
2,343
◇
Types & classes
479
↓ 1 callers
Method
GroupByCodes
src/execution/dictionary_vector.cpp:48
↓ 1 callers
Function
GzipDecompress
Decompress a Parquet GZIP page. The Parquet GZIP codec wraps a raw deflate stream in the standard RFC 1952 gzip envelope; we strip the header (and ign
src/storage/parquet.cpp:650
↓ 1 callers
Method
HasPushdownFilters
src/execution/physical_planner.cpp:1010
↓ 1 callers
Method
HashAggregate
src/execution/gpu/gpu_engine.cpp:131
↓ 1 callers
Function
HashBigKey
Composite key hasher matching RadixMultiAggBigKey's BigKeyHash so the shard distribution stays consistent. Mum-style mix of two 64-bit hashes.
src/execution/inline_row_agg.cpp:276
↓ 1 callers
Function
HomeDir
src/ask/embedded_llm.cpp:29
↓ 1 callers
Method
IncrementByDictRG
src/execution/radix_count_agg.cpp:189
↓ 1 callers
Method
IncrementByDictRGSkipDi
src/execution/radix_count_agg.cpp:257
↓ 1 callers
Method
IngestDictRG
src/execution/radix_count_agg.cpp:488
↓ 1 callers
Method
IngestKey
src/execution/radix_count_agg.cpp:532
↓ 1 callers
Method
IngestPlainRG
src/execution/radix_count_agg.cpp:519
↓ 1 callers
Function
IngestRGGstrIntDistinctDict
src/execution/str_group_distinct.cpp:47
↓ 1 callers
Function
IngestRGGstrIntDistinctDictSkipDi
src/execution/str_group_distinct.cpp:123
↓ 1 callers
Function
IngestRGGstrIntDistinctPlain
src/execution/str_group_distinct.cpp:143
↓ 1 callers
Method
IngestRGStrIntDistinct
Stage 1 inner loop. Per-row IncrementByHashed on (int, str) pairs. Specialized for the gstr × int distinct shape: dict path with precomputed per-dict-
src/execution/radix_count_agg.cpp:992
↓ 1 callers
Method
IngestRGStrIntDistinctSkipDi
Skip-di variant: SearchPhrase<>'' folded into dict-idx skip.
src/execution/radix_count_agg.cpp:1112
↓ 1 callers
Method
IngestRGTwoColCount
Two-column inner loop body. Per-RG ingest of (int_key, dict_idx) → count. Precomputes per-dict-entry hash once per RG (~10-30 ns saved per row), then
src/execution/radix_count_agg.cpp:1149
↓ 1 callers
Method
IngestRGTwoColCountSkipDi
src/execution/radix_count_agg.cpp:1264
↓ 1 callers
Method
InitParallelScan
src/storage/data_table.cpp:63
↓ 1 callers
Method
IsAtEnd
src/parser/parser.cpp:174
↓ 1 callers
Method
IsEOF
include/slothdb/storage/csv_reader.hpp:47
↓ 1 callers
Method
IsFull
include/slothdb/storage/row_group.hpp:21
↓ 1 callers
Function
IsIdentContinue
An identifier "continue" byte: ASCII alnum / underscore, OR any high-bit byte (>= 0x80). Accepting high-bit bytes lets UTF-8 characters (Chinese, Japa
src/parser/tokenizer.cpp:167
↓ 1 callers
Method
IsIncrementalEligible
v2: incremental append. When the live view is a simple `SELECT * FROM '<csv>'` and the file grows without the leading bytes changing, parse only the n
include/slothdb/catalog/table_catalog_entry.hpp:68
↓ 1 callers
Function
IsSQLReservedOrBuiltin
SQL keywords, common builtins, and typical aliases we never flag as "not in schema". Conservative: if a token matches any of these, it's definitely no
src/ask/embedded_llm.cpp:409
↓ 1 callers
Method
IsView
Virtual view support: stores the original SQL query for re-execution.
include/slothdb/catalog/table_catalog_entry.hpp:46
↓ 1 callers
Method
ListFunctions
src/extension/extension_manager.cpp:301
↓ 1 callers
Method
ListTables
src/storage/sqlite_scanner.cpp:218
↓ 1 callers
Method
LiveGroupCount
src/execution/radix_count_agg.cpp:980
↓ 1 callers
Function
LogicalTypeIdToString
src/common/types/logical_type.cpp:156
↓ 1 callers
Function
LogicalTypeToArrowId
Type ID for our simplified format.
src/storage/arrow_ipc.cpp:16
↓ 1 callers
Method
MarkIncrementalEligible
include/slothdb/catalog/table_catalog_entry.hpp:69
↓ 1 callers
Method
MarkLiveView
include/slothdb/catalog/table_catalog_entry.hpp:55
↓ 1 callers
Method
Match
src/parser/parser.cpp:52
↓ 1 callers
Function
MatchColEqLiteralEmit
src/execution/physical_planner.cpp:13867
↓ 1 callers
Function
MatchFileSource
Rules that fire on a file-source intent - no schema lookup needed. The file may not even be imported yet; that is the point. Covers the four common sh
src/ask/nl_to_sql.cpp:407
↓ 1 callers
Function
MaterialiseStrDataLazy
src/storage/parquet_lazy_strdata.cpp:5
↓ 1 callers
Method
MergeAll
src/execution/int_group_agg.cpp:116
↓ 1 callers
Function
MergeStrGroupIntDistinct
src/execution/str_group_distinct.cpp:223
↓ 1 callers
Function
Normalize
Strip stopwords but keep positional tokens that matter for patterns ("how many", "top N", "per", "by", "in"). Preserves order.
src/ask/nl_to_sql.cpp:189
↓ 1 callers
Function
NormalizeIdentifiers
src/ask/embedded_llm.cpp:504
↓ 1 callers
Method
OpenFile
src/storage/block_manager.cpp:17
↓ 1 callers
Function
ParallelFor
include/slothdb/common/parallel.hpp:45
↓ 1 callers
Method
ParallelScan
src/storage/data_table.cpp:75
↓ 1 callers
Function
ParquetToLogicalType
src/storage/parquet.cpp:760
↓ 1 callers
Function
ParseCmpOp
src/execution/physical_planner.cpp:137
↓ 1 callers
Function
ParseColumnChunkStruct
src/storage/parquet.cpp:285
↓ 1 callers
Function
ParseColumnMeta
src/storage/parquet.cpp:304
↓ 1 callers
Function
ParseDataPageHeader
src/storage/parquet.cpp:403
↓ 1 callers
Function
ParseDataPageV2Header
src/storage/parquet.cpp:431
↓ 1 callers
Function
ParseDictPageHeader
src/storage/parquet.cpp:418
↓ 1 callers
Function
ParseFileMeta
Returns false if the footer isn't a valid Thrift FileMetaData.
src/storage/parquet.cpp:355
↓ 1 callers
Function
ParsePageHeader
Parse a PageHeader. Returns bytes consumed.
src/storage/parquet.cpp:453
↓ 1 callers
Function
ParseRowGroup
src/storage/parquet.cpp:336
↓ 1 callers
Function
ParseSchemaElement
src/storage/parquet.cpp:268
↓ 1 callers
Method
ParseStatement
src/parser/parser.cpp:190
↓ 1 callers
Function
ParseStatistics
src/storage/parquet.cpp:229
↓ 1 callers
Method
Plan
src/execution/physical_planner.cpp:13720
↓ 1 callers
Function
QuoteMultiWordAliases
Wrap multi-word AS aliases in double quotes. Qwen sometimes emits `COUNT(*) AS Total Customers` which the parser rejects because `Customers` starts a
src/ask/embedded_llm.cpp:165
↓ 1 callers
Function
QuoteSchemaIdents
Post-process the model's SQL: wrap any schema identifier that contains a space with double quotes, unless it is already quoted or is inside a string l
src/ask/embedded_llm.cpp:571
↓ 1 callers
Method
ReadChunk
src/storage/fast_csv_reader.cpp:483
↓ 1 callers
Function
ReadColumnChunkLegacy
Legacy (custom-format) column chunk reader - reads from the mapped buffer.
src/storage/parquet.cpp:1369
↓ 1 callers
Function
ReadColumnChunkStd
Standard-Parquet column chunk reader - reads from the mapped buffer.
src/storage/parquet.cpp:1588
↓ 1 callers
Method
ReadIntoTable
src/storage/csv_reader.cpp:287
↓ 1 callers
Function
RenderDDL
Render a DDL block for the prompt. Capped at 20 tables - enough for realistic shell sessions, prevents the prompt from exploding if the user has an en
src/ask/embedded_llm.cpp:69
↓ 1 callers
Function
RenderPromptQwen
Build the chat-formatted prompt. Qwen2.5 uses the ChatML format (<|im_start|>...<|im_end|>). We render that directly - llama.cpp's chat-template API w
src/ask/embedded_llm.cpp:94
↓ 1 callers
Method
RequestStop
Signal in-flight workers to stop picking new RGs. Workers that have already started decoding the current RG finish it; remaining undecoded RGs are dro
src/execution/physical_planner.cpp:1068
↓ 1 callers
Method
ResolveColumn
src/binder/binder.cpp:33
↓ 1 callers
Function
ResolveResultDisplayType
Resolve the DISPLAY logical type for one SELECT-list expression so a Parquet DATE / TIMESTAMP column renders as an ISO string. The engine carries DATE
src/main/connection.cpp:68
↓ 1 callers
Method
ResolveTypeName
src/binder/binder.cpp:1008
↓ 1 callers
Function
RewriteFileAliases
Rewrite FROM/JOIN references to a file-source alias back to the real path as a single-quoted file literal. Qwen reads the "-- File source" hint in the
src/ask/embedded_llm.cpp:274
↓ 1 callers
Method
RollbackTransaction
src/main/connection.cpp:2249
↓ 1 callers
Method
RowGroupCount
Number of row groups (for parallel scheduling).
include/slothdb/storage/data_table.hpp:63
↓ 1 callers
Function
RunCountGroupAggregate
src/execution/count_group_agg.cpp:141
↓ 1 callers
Method
Scale
include/slothdb/common/types/logical_type.hpp:56
↓ 1 callers
Method
Scan
src/storage/data_table.cpp:42
↓ 1 callers
Method
Scan
src/storage/row_group.cpp:31
↓ 1 callers
Method
ScatterRow
src/execution/radix_count_agg.cpp:38
↓ 1 callers
Method
SetArrowPath
include/slothdb/catalog/table_catalog_entry.hpp:85
↓ 1 callers
Method
SetAvroPath
include/slothdb/catalog/table_catalog_entry.hpp:84
↓ 1 callers
Method
SetCommitTimestamp
include/slothdb/transaction/transaction.hpp:40
↓ 1 callers
Method
SetJsonPath
include/slothdb/catalog/table_catalog_entry.hpp:83
↓ 1 callers
Method
SetNeededOutputs
src/execution/literal_emit_filter.cpp:17
↓ 1 callers
Method
SetParentProjectionCols
Parent-projection pushdown: when a PhysicalProjection above this OrderBy only references columns {c1, c2, ...}, pass-2 of CollectTopN_Primitive (which
src/execution/physical_planner.cpp:1947
↓ 1 callers
Method
SetPos
include/slothdb/storage/fast_csv_reader.hpp:73
↓ 1 callers
Method
SetPushdownFilters
src/execution/physical_planner.cpp:1007
↓ 1 callers
Method
SetSQLitePath
include/slothdb/catalog/table_catalog_entry.hpp:86
↓ 1 callers
Method
SetStartRow
Reset start_row_ - used when splicing row groups built by parallel workers into a DataTable; the worker builds with start_row_=0 and the splice step r
include/slothdb/storage/row_group.hpp:20
↓ 1 callers
Method
SetStrDictUsedOnly
Per-column hint: decoder writes only str_dict_used bitmap (skip str_dict_indices materialization). Used by the top-N VARCHAR dispatch when we need an
src/execution/physical_planner.cpp:970
↓ 1 callers
Method
SetTopNHint
Translate TopN hint's output col_idx through this projection. If expressions_[col_idx] is a simple ColumnRef, we can forward the underlying input col_
src/execution/physical_planner.cpp:1822
↓ 1 callers
Method
SetTwoPhaseDecode
src/execution/physical_planner.cpp:985
↓ 1 callers
Method
SetType
Re-tag the logical type WITHOUT touching the backing buffer. Only safe when the new type shares this vector's physical layout (e.g. swapping INTEGER<-
include/slothdb/common/types/vector.hpp:96
↓ 1 callers
Method
SetValue
src/common/types/data_chunk.cpp:27
↓ 1 callers
Method
SetViewQuery
include/slothdb/catalog/table_catalog_entry.hpp:47
↓ 1 callers
Method
SetWatchedFile
include/slothdb/catalog/table_catalog_entry.hpp:56
↓ 1 callers
Method
Size
src/execution/gpu/gpu_engine.cpp:24
↓ 1 callers
Function
SkipGzipHeader
Skip the gzip header (RFC 1952) and return a pointer to the start of the raw deflate stream, or nullptr on malformed header. miniz doesn't support the
src/storage/parquet.cpp:616
↓ 1 callers
Function
SnappyDecompress
--- Snappy decompressor. Calls into vendored google/snappy 1.2.1 (third_party/snappy/) for the SSSE3 16-byte literal-shuffle + IncrementalCopy back-re
src/storage/parquet.cpp:44
↓ 1 callers
Method
SortIndices
src/execution/gpu/gpu_engine.cpp:89
↓ 1 callers
Method
SumDouble
src/execution/gpu/gpu_engine.cpp:76
← previous
next →
601–700 of 2,343, ranked by callers