# US 2022/0284037 A1 · Adaptive distribution method for hash operations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284037 A1
- Document ID: US20220284037A1
- Status: Published application
- Kind: A1
- Application number: 17/751,256
- Filed: 2022-05-23
- Published: 2022-09-08
- Earliest claimed: 2014-02-19
- Assignees: Snowflake Inc.
- Applicants: Snowflake Inc.
- Inventors: Benoit Dageville; Thierry Cruanes; Marcin Zukowski; Allison Waingold Lee; Philipp Thomas Unterbrunner
- Web page: https://patentgrep.com/patent/US20220284037A1

## CPC

- G06F 16/273: {Asynchronous replication or reconciliation}
- A61F 5/566: {Intra-oral devices}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5044: {considering hardware capabilities}
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 9/5088: {involving task migration}
- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 16/148: {File search processing}
- G06F 16/1827: {Management specifically adapted to NAS (management of storage area networks [SAN] G06F3/067)}
- G06F 16/211: {Schema design and management}
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/24532: {of parallel queries}
- G06F 16/24545: {Selectivity estimation or determination}
- G06F 16/24552: {Database cache management}
- G06F 16/2456: {Join operations}
- G06F 16/2471: {Distributed queries}
- G06F 16/254: {Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06F 16/9538: Presentation of query results
- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- A61F: FILTERS IMPLANTABLE INTO BLOOD VESSELS; PROSTHESES; DEVICES PROVIDING PATENCY TO, OR PREVENTING COLLAPSING OF, TUBULAR STRUCTURES OF THE BODY, e.g. STENTS; ORTHOPAEDIC, NURSING OR CONTRACEPTIVE DEVICES; FOMENTATION; TREATMENT OR PROTECTION OF EYES OR EARS; BANDAGES, DRESSINGS OR ABSORBENT PADS; FIRST-AID KITS (dental prosthetics A61C)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method, apparatus, and system including performing a partitioning function on a first table of a join query, determining a size of the first table based on the partitioning function, and distributing the first table to a set of nodes of a computing cluster based on the size of the first table.

## Claims

### Claim 1

A method comprising:
performing a partitioning function on a first table of a join query;
determining, by a processing device, a size of the first table based on the partitioning function; and
distributing, by the processing device, the first table to a set of nodes of a computing cluster based on the size of the first table.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
assigning at least part of the first table to two or more processing nodes associated with a second table.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
duplicating the first table across the two or more processing nodes associated with the second table.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
forwarding a local partition of the second table to a local instance of a probe operator for performing the join query.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining, based at least in part on the size of the first table, to distribute the first table using a partitioning join; and
assigning at least part of the first table to a node based on a key associated with a join condition.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
partitioning at least part of the first table across a set of nodes of the computing cluster, wherein the partitioning join is performed by each node in the set of nodes of the computing cluster.

### Claim 7 (depends on 5)

The method of claim 5, wherein each pair of tuples from the first and second tables that satisfy the join condition is assigned to the same node.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
forwarding one or more partitions of the first table to a build operator of a build operation.

### Claim 9 (depends on 8)

The method of claim 8, wherein the build operation determines the size the first table based on an amount of data processed by each build operator of the build operation.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining an amount of data in the first table comprises determining an amount of data in a part of the first table that is a result of a sub-expression.

### Claim 11

A system, comprising:
a memory to store a plurality of tables; and
a processor, operatively coupled with the memory, the processor configured to:
perform a partitioning function on a first table of a join query;
determine a size of the first table based on the partitioning function; and
distributing the first table to a set of nodes of a computing cluster based on the size of the first table.

### Claim 12 (depends on 11)

The system of claim 11, wherein the processor is further to:
assign at least part of the first table to two or more processing nodes associated with a second table.

### Claim 13 (depends on 12)

The system of claim 12, wherein the processor is further to:
duplicate the first table across the two or more processing nodes associated with the second table.

### Claim 14 (depends on 13)

The system of claim 13, wherein the processor is further to:
forward a local partition of the second table to a local instance of a probe operator for performing the join query.

### Claim 15 (depends on 11)

The system of claim 11, wherein the processor is further to:
determine, based at least in part on the size of the first table, to distribute the first table using a partitioning join; and
assign at least part of the first table to a node based on a key associated with a join condition.

### Claim 16 (depends on 15)

The system of claim 15, wherein the processor is further to:
partition at least part of the first table across a set of nodes of the computing cluster, and the partitioning join is performed by each node in the set of nodes of the computing cluster.

### Claim 17 (depends on 15)

The system of claim 15, wherein each pair of tuples from the first and second tables that satisfy the join condition is assigned to the same node.

### Claim 18 (depends on 11)

The system of claim 11, wherein the processor is further to:
forward one or more partitions of the first table to a build operator of a build operation.

### Claim 19 (depends on 18)

The system of claim 18, wherein the build operation determines the size of the first table based on an amount of data processed by each build operator of the build operation.

### Claim 20 (depends on 11)

The system of claim 11, wherein determining an amount of data in the first table comprises determining an amount of data in a part of the first table that is a result of a sub-expression.

### Claim 21

A non-transitory computer readable medium having instructions stored thereon that, when executed by a processor, cause the processor to:
perform a partitioning function on a first table of a join query;
determine, by the processor, a size of the first table based on the partitioning function; and
distribute, by the processor, the first table to a set of nodes of a computing cluster based on the size of the first table.

### Claim 22 (depends on 21)

The non-transitory computer readable medium of claim 21, wherein the processor is further to:
assign at least part of the first table to two or more processing nodes associated with a second table.

### Claim 23 (depends on 22)

The non-transitory computer readable medium of claim 22, wherein the processor is further to:
duplicate the first table across the two or more processing nodes associated with the second table.

### Claim 24 (depends on 23)

The non-transitory computer readable medium of claim 23, wherein the processor is further to:
forward a local partition of the second table to a local instance of a probe operator for performing the join query.

### Claim 25 (depends on 21)

The non-transitory computer readable medium of claim 21, wherein the processor further to:
determine, based at least in part on the size of the first table, to distribute the first table using a partitioning join; and
assign at least part of the first table to a node based on a key associated with a join condition.

### Claim 26 (depends on 25)

The non-transitory computer readable medium of claim 25, wherein the processor is further to:
partition at least part of the first table across a set of nodes of the computing cluster, and the partitioning join is performed by each node in the set of nodes of the computing cluster.

### Claim 27 (depends on 25)

The non-transitory computer readable medium of claim 25, wherein each pair of tuples from the first and second tables that satisfy the join condition is assigned to the same node.

### Claim 28 (depends on 21)

The non-transitory computer readable medium of claim 21, wherein the processor is further to:
forward one or more partitions of the first table to a build operator of a build operation.

### Claim 29 (depends on 28)

The non-transitory computer readable medium of claim 28, wherein the build operation determines the size of the first table based on an amount of data processed by each build operator of the build operation.

### Claim 30 (depends on 21)

The non-transitory computer readable medium of claim 21, wherein determining an amount of data in the first table comprises determining an amount of data in a part of the first table that is a result of a sub-expression.
