Columnar cache in hybrid transactional/analytical processing (HTAP) workloads
Abstract
The subject technology receives, by an execution node, blob metadata from a key-value store, the blob metadata including information related to a set of blob files. The subject technology determines, by the execution node using the blob metadata, whether a copy of each of the set of blob files is stored in a local cache of the execution node. The subject technology transforms at least one blob file, retrieved from a blob store, to a second file in a column file format, the at least one blob file being in a first format that is different than the column file format, the transforming comprising at least converting a particular snapshot file from the at least one blob file to a particular set of rowsets and writing the set of rowsets into the second file in the column file format. The subject technology stores the second file in the local cache.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A system comprising: at least one hardware processor; and a memory storing instructions that cause the at least one hardware processor to perform operations comprising: receiving, by an execution node, blob metadata from a key-value store, the blob metadata including information related to a set of blob files; determining, by the execution node using the blob metadata, whether a copy of each of the set of blob files is stored in a local cache of the execution node; transforming at least one blob file, retrieved from a blob store, to a second file in a column file format, the at least one blob file being in a first format that is different than the column file format, the transforming comprising at least converting a particular snapshot file from the at least one blob file to a particular set of rowsets and writing the set of rowsets into the second file in the column file format; and storing the second file in the local cache.
- Claim 2Depends on #1
The system of claim 1, wherein the blob metadata includes a snapshot file path, delta file paths, and in-memory mutations, wherein the copy of each of the set of blob files includes a snapshot file, the snapshot file comprises key-value pairs of a specific key-value storage device version, wherein determining whether the copy of each of the set of blob files is stored in the local cache is based on finding the snapshot file in the local cache, and the operations further comprise: merging the transformed at least one blob file based at least in part on a set of visibility rules, the set of visibility rules determining an as-of version of each key of a query, the query including a query range for processing the query.
- Claim 3Depends on #2
The system of claim 2, wherein determining the as-of version of each key comprises: determining that a version of a particular key was written by a current execution of the query.
- Claim 4Depends on #2
The system of claim 2, wherein determining the as-of version of each key comprises: determining that a version of a particular key was written by a finalized statement of a transaction associated with the query; and determining that no other version of the particular key was written by a finalized statement of the transaction associated with the query with a larger statement number.
- Claim 5Depends on #2
The system of claim 2, wherein determining the as-of version of each key comprises: determining that a version of a particular key was not written by a transaction associated with the query; determining that a commit timestamp of the version of the particular key is less than or equal to a read timestamp of the query; and determining that no version of the particular key has a commit timestamp that is less than or equal to the read timestamp of the query and greater than the read timestamp of the query.
- Claim 6Depends on #1
The system of claim 1, wherein the blob metadata comprises a snapshot file path, a set of delta file paths, and a set of in-memory mutations.
- Claim 7Depends on #1
The system of claim 1, wherein each rowset comprises a set of columns, the set of columns comprises a delete vector column, a stamp column, and a column comprising a pointer to a separate storage space, the separate store space storing a set of values greater than a particular size threshold.
- Claim 8Depends on #1
The system of claim 1, wherein the key-value store comprises a distributed database that provides linearizable storage.
- Claim 9Depends on #1
The system of claim 1, wherein the operations further comprise: writing rowsets and schema metadata into a Parquet file; performing type derivation based on the rowsets; and performing encoding for each column of data of the Parquet file.
- Claim 10Depends on #1
The system of claim 1, wherein the operations further comprise: reading a snapshot file; converting the snapshot file into rowsets; reading a set of delta files; converting the set of delta files into particular rowsets; merging the particular rowsets to apply a set of visibility rules; selecting an as-of version of each key; and for non-cached files, writing associated rowsets back to a set of Parquet files.
- Claim 11Independent Claim
A method comprising: receiving, by an execution node, blob metadata from a key-value store, the blob metadata including information related to a set of blob files; determining, by the execution node using the blob metadata, whether a copy of each of the set of blob files is stored in a local cache of the execution node; transforming at least one blob file, retrieved from a blob store, to a second file in a column file format, the at least one blob file being in a first format that is different than the column file format, the transforming comprising at least converting a particular snapshot file from the at least one blob file to a particular set of rowsets and writing the set of rowsets into the second file in the column file format; and storing the second file in the local cache.
- Claim 12Depends on #11
The method of claim 11, wherein the blob metadata includes a snapshot file path, delta file paths, and in-memory mutations, wherein the copy of each of the set of blob files includes a snapshot file, the snapshot file comprises key-value pairs of a specific key-value storage device version, wherein determining whether the copy of each of the set of blob files is stored in the local cache is based on finding the snapshot file in the local cache, and further comprising: merging the transformed at least one blob file based at least in part on a set of visibility rules, the set of visibility rules determining an as-of version of each key of a query, the query including a query range for processing the query.
- Claim 13Depends on #12
The method of claim 12, wherein determining the as-of version of each key comprises: determining that a version of a particular key was written by a current execution of the query.
- Claim 14Depends on #12
The method of claim 12, wherein determining the as-of version of each key comprises: determining that a version of a particular key was written by a finalized statement of a transaction associated with the query; and determining that no other version of the particular key was written by a finalized statement of the transaction associated with the query with a larger statement number.
- Claim 15Depends on #12
The method of claim 12, wherein determining the as-of version of each key comprises: determining that a version of a particular key was not written by a transaction associated with the query; determining that a commit timestamp of the version of the particular key is less than or equal to a read timestamp of the query; and determining that no version of the particular key has a commit timestamp that is less than or equal to the read timestamp of the query and greater than the read timestamp of the query.
- Claim 16Depends on #11
The method of claim 11, wherein the blob metadata comprises a snapshot file path, a set of delta file paths, and a set of in-memory mutations.
- Claim 17Depends on #11
The method of claim 11, wherein the local cache is provided by an execution node.
- Claim 18Depends on #11
The method of claim 11, wherein the key-value store comprises a distributed database that provides linearizable storage.
- Claim 19Depends on #11
The method of claim 11, further comprising: writing rowsets and schema metadata into a Parquet file; performing type derivation based on the rowsets; and performing encoding for each column of data of the Parquet file.
- Claim 20Independent Claim
A non-transitory computer-storage medium comprising instructions that, when executed by one or more processors of a machine, configure the machine to perform operations comprising: receiving, by an execution node, blob metadata from a key-value store, the blob metadata including information related to a set of blob files; determining, by the execution node using the blob metadata, whether a copy of each of the set of blob files is stored in a local cache of the execution node; transforming at least one blob file, retrieved from a blob store, to a second file in a column file format, the at least one blob file being in a first format that is different than the column file format, the transforming comprising at least converting a particular snapshot file from the at least one blob file to a particular set of rowsets and writing the set of rowsets into the second file in the column file format; and storing the second file in the local cache.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of U.S. Non-Provisional patent application Ser. No. 18/455,229, filed Aug. 24, 2023, entitled “ COLUMNAR CACHE IN HYBRID TRANSACTIONAL/ANALYTICAL PROCESSING (HTAP) WORKLOADS, ” and the contents of which is incorporated herein by reference in its entirety for all purposes. TECHNICAL FIELD Embodiments of the disclosure relate generally to a network-based database system or a cloud data platform and, more specifically, to processing database operations and more specifically to performing database processing of large database requests. BACKGROUND Cloud-based data warehouses and other database systems and platforms sometimes provide support for transactional processing that enable such systems to perform operations that are not available through the built-in, system-defined functions. However, transactional processing of the data can rapidly grow, and it can be difficult to compact the data in a secure manner that does not affect accuracy or integrity of the data. BRIEF DESCRIPTION OF THE DRAWINGS The present disclosure will be understood more fully from the detailed description given below and from the accompanying drawings of various embodiments of the disclosure. FIG. 1 illustrates an example computing environment that includes a network-based database system in communication with a cloud storage platform, in accordance with some embodiments of the present disclosure. FIG. 2 is a block diagram illustrating components of a compute service manager, in accordance with some embodiments of the present disclosure. FIG. 3 is a block diagram illustrating components of an execution platform, in accordance with some embodiments of the present disclosure. FIG. 4 is a computing environment conceptually illustrating an example software architecture for managing and executing concurrent transactions on a database system, in accordance with some embodiments of the present disclosure. FIG. 5 is a flow diagram
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (16)
Non-Patent Literature (10)
- “
- U.S. Appl. No. 18/455,229, Final Office Action mailed Mar. 5, 2024
- ”
- , 29 pgs.
- “
- U.S. Appl. No. 18/455,229, Non Final Office Action mailed Nov. 16, 2023
- ”
- , 30 pgs.
- “
- U.S. Appl. No. 18/455,229, Notice of Allowance mailed Jun. 3, 2024