# US 2024/0256549 A1 · Evaluating Expressions Over Dictionary Data

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

- Number: US 2024/0256549 A1
- Document ID: US20240256549A1
- Status: Published application
- Kind: A1
- Application number: 18/162,607
- Filed: 2023-01-31
- Published: 2024-08-01
- Earliest claimed: 2023-01-31
- Assignees: Databricks, Inc.
- Applicants: Databricks, Inc.
- Inventors: Utkarsh Agarwal; Shoumik Palkar; Alexander Behm; Sriram Krishnamurthy
- Web page: https://patentgrep.com/patent/US20240256549A1

## CPC

- G06F 16/24558: {Binary matching operations}
- G06F 11/3409: {for performance assessment}
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 2201/80: Database-specific techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed herein is a method, system, or non-transitory computer readable medium for evaluating a query on a columnar dataset comprising one or more dictionaries associated with columns in the dataset. The method includes receiving a request to perform a query comprising at least an operator for a columnar dataset on cloud storage. At least one column in the dataset is based on a dictionary, and the dictionary maps one or more values for a column to one or more respective identifiers. The method evaluates the operator on one or more values of the dictionary to generate an updated dictionary comprising updated values. The method may decode the updated dictionary into an updated column comprising updated data values.

## Claims

### Claim 1

A method comprising:
receiving a request to perform a query comprising at least an operator for a columnar dataset stored on cloud storage, wherein at least one column in the columnar dataset is based on a dictionary, wherein the dictionary maps one or more values for a column to one or more respective identifiers; and
evaluating the operator on one or more values of the dictionary to generate an updated dictionary comprising updated values.

### Claim 2 (depends on 1)

The method of claim 1, wherein the query comprises a binary expression with two dictionary-encoded column inputs.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
decoding dictionary-encoded values of the column, for each row in the column, based on the updated dictionary comprising updated values.

### Claim 4 (depends on 3)

The method of claim 3, wherein the values of the dictionary are each updated to be uppercase letters.

### Claim 5 (depends on 1)

The method of claim 1, wherein the query further comprises a request to return information about a value of interest in the columnar dataset stored on cloud storage.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
performing dictionary filtering for the query, wherein the dictionary filtering comprises evaluating a filter on the dictionary before evaluating the filter on the column.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
determining whether to perform dictionary filtering for the query by calculating a metric based on one or more factors comprising at least dictionary size and an estimated cost of executing the query, wherein the dictionary filtering comprises evaluating a filter on the dictionary before evaluating the filter on the column;
responsive to the metric being below a threshold, performing the dictionary filtering; and,
responsive to the metric being equal to or above a threshold, retrieving the column associated with the dictionary and evaluating the operator on the column.

### Claim 8

A system comprising:
at least one processor;
at least one memory comprising stored instructions, the instructions when executed cause the at least one processor to:
receiving a request to perform a query comprising at least an operator for a columnar dataset stored on cloud storage, wherein at least one column in the columnar dataset is based on a dictionary, wherein the dictionary maps one or more values for a column to one or more respective identifiers; and
evaluating the operator on one or more values of the dictionary to generate an updated dictionary comprising updated values.

### Claim 9 (depends on 8)

The system of claim 8, wherein the query comprises a binary expression with two dictionary-encoded column inputs.

### Claim 10 (depends on 8)

The system of claim 8, wherein the at least one memory further comprises instructions that when executed further cause the at least one processor to:
decode dictionary-encoded values of the column, for each row in the column, based on the updated dictionary comprising updated values.

### Claim 11 (depends on 8)

The system of claim 8, wherein the values of the dictionary are each updated to be uppercase letters.

### Claim 12 (depends on 8)

The system of claim 8, wherein the query further comprises a request to return information about a value of interest in the columnar dataset stored on cloud storage.

### Claim 13 (depends on 12)

The system of claim 12, wherein the at least one memory further comprises instructions that when executed further cause the at least one processor to:
performing dictionary filtering for the query, wherein the dictionary filtering comprises evaluating a filter on the dictionary before evaluating the filter on the column.

### Claim 14 (depends on 12)

The system of claim 12, wherein the at least one memory further comprises instructions that when executed further cause the at least one processor to:
determine whether to perform dictionary filtering for the query by calculating a metric based on one or more factors comprising at least dictionary size and an estimated cost of executing the query, wherein the dictionary filtering comprises evaluating a filter on the dictionary before evaluating the filter on the column;
responsive to the metric being below a threshold, perform the dictionary filtering; and,
responsive to the metric being equal to or above a threshold, retrieve the column associated with the dictionary and evaluating the operator on the column.

### Claim 15

A non-transitory computer readable medium comprising stored instructions encoded thereon that, when execute by a processor, cause at least one processor to:
receive a request to perform a query comprising at least an operator for a columnar dataset stored on cloud storage, wherein at least one column in the columnar dataset is based on a dictionary, wherein the dictionary maps one or more values for a column to one or more respective identifiers; and
evaluate the operator on one or more values of the dictionary to generate an updated dictionary comprising updated values.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the query comprises a binary expression with two dictionary-encoded column inputs.

### Claim 17 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the at least one memory further comprises instructions that when executed further cause the at least one processor to:
decode dictionary-encoded values of the column, for each row in the column, based on the updated dictionary comprising updated values.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the query further comprises a request to return information about a value of interest in the columnar dataset stored on cloud storage.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the at least one memory further comprises instructions that when executed further cause the at least one processor to:
performing dictionary filtering for the query, wherein the dictionary filtering comprises evaluating a filter on the dictionary before evaluating the filter on the column.

### Claim 20 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the at least one memory further comprises instructions that when executed further cause the at least one processor to:
determine whether to perform dictionary filtering for the query by calculating a metric based on one or more factors comprising at least dictionary size and an estimated cost of executing the query, wherein the dictionary filtering comprises evaluating a filter on the dictionary before evaluating the filter on the column;
responsive to the metric being below a threshold, perform the dictionary filtering; and,
responsive to the metric being equal to or above a threshold, retrieve the column associated with the dictionary and evaluating the operator on the column.
