# US 2023/0273918 A1 · Multiple environments and functions in a distributed database

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

- Number: US 2023/0273918 A1
- Document ID: US20230273918A1
- Status: Published application
- Kind: A1
- Application number: 18/051,483
- Filed: 2022-10-31
- Published: 2023-08-31
- Earliest claimed: 2022-02-25
- Assignees: Snowflake Inc.
- Applicants: Snowflake Inc.
- Inventors: Srilakshmi Chintala; Chong Han; Albert L. Hu; Nitya Kumar Sharma; Igor Zinkovsky
- Web page: https://patentgrep.com/patent/US20230273918A1

## CPC

- G06F 16/2448: {for particular applications; for extensibility, e.g. user defined types}
- G06F 16/25: Integrating or interfacing systems involving database management systems
- G06F 16/248: Presentation of query results
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A database dependency resolver system can identify different dependencies of a user application and integrate the identified dependencies in different execution environments of a distributed database system. The different execution environments can manage different versions of a given programming language, or other types of computational architectures (e.g., different CPU types). A database user can provide a database statement (e.g., query) that activates the different dependencies in the different environments to generate results data.

## Claims

### Claim 1

A method comprising:
storing a user application on a distributed database system;
identifying a plurality of package dependencies of the user application, the plurality of package dependencies comprising a first package dependency and a second package dependency;
generating, by at least one hardware processor, a first execution environment that comprises the first package dependency;
generating, by the at least one hardware processor, a second execution environment that comprises the second package dependency;
receiving a database statement that includes a first portion using the first package dependency and a second portion using the second package dependency; and
based on receiving the database statement, generating results data using the first execution environment and the second execution environment.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the results data using the first execution environment and the second execution environment comprises:
generating a first output by implementing the first portion of the database statement in the first execution environment; and
generating a second output by implementing the second portion of the database statement in the second execution environment.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the results data using the first execution environment and the second execution environment further comprises:
generating the results data based on the first output and the second output.

### Claim 4 (depends on 2)

The method of claim 2, wherein the second output is generated based on the first output.

### Claim 5 (depends on 1)

The method of claim 1, wherein identifying the plurality of package dependencies of the user application comprises:
generating a configuration file that specifies the plurality of package dependencies of the user application.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
accessing the plurality of package dependencies from a repository of packages based on the configuration file.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first execution environment is configured for a first version of a programming language and the second execution environment is configured for a second version of the programming language.

### Claim 8 (depends on 7)

The method of claim 7, wherein the programming language is Python.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first execution environment is configured for a first programming language and the second execution environment is configured for a second programming language.

### Claim 10 (depends on 1)

The method of claim 1, wherein the first execution environment is configured for a first computing architecture and the second execution environment is configured for a second computing architecture.

### Claim 11

A system comprising:
one or more computer processors; and
one or more computer-readable mediums storing instructions that, when executed by the one or more computer processors, cause the system to perform operations comprising:
storing a user application on a distributed database system;
identifying a plurality of package dependencies of the user application, the plurality of package dependencies comprising a first package dependency and a second package dependency;
generating a first execution environment that comprises the first package dependency;
generating a second execution environment that comprises the second package dependency;
receiving a database statement that includes a first portion using the first package dependency and a second portion using the second package dependency; and
based on receiving the database statement, generating results data using the first execution environment and the second execution environment.

### Claim 12 (depends on 11)

The system of claim 11, wherein generating the results data using the first execution environment and the second execution environment comprises:
generating a first output by implementing the first portion of the database statement in the first execution environment; and
generating a second output by implementing the second portion of the database statement in the second execution environment.

### Claim 13 (depends on 12)

The system of claim 12, wherein generating the results data using the first execution environment and the second execution environment further comprises:
generating the results data based on the first output and the second output.

### Claim 14 (depends on 12)

The system of claim 12, wherein the second output is generated based on the first output.

### Claim 15 (depends on 11)

The system of claim 11, wherein identifying the plurality of package dependencies of the user application comprises:
generating a configuration file that specifies the plurality of package dependencies of the user application.

### Claim 16 (depends on 15)

The system of claim 15, the operations further comprising:
accessing the plurality of package dependencies from a repository of packages based on the configuration file.

### Claim 17 (depends on 11)

The system of claim 11, wherein the first execution environment is configured for a first version of a programming language and the second execution environment is configured for a second version of the programming language.

### Claim 18 (depends on 17)

The system of claim 17, wherein the programming language is Python.

### Claim 19 (depends on 11)

The system of claim 11, wherein the first execution environment is configured for a first programming language and the second execution environment is configured for a second programming language.

### Claim 20 (depends on 11)

The system of claim 11, wherein the first execution environment is configured for a first computing architecture and the second execution environment is configured for a second computing architecture.

### Claim 21

A computer-storage medium storing instructions that, when executed by one or more computer processors of one or more computing devices, cause the one or more computing devices to perform operations comprising:
storing a user application on a distributed database system;
identifying a plurality of package dependencies of the user application, the plurality of package dependencies comprising a first package dependency and a second package dependency;
generating a first execution environment that comprises the first package dependency;
generating a second execution environment that comprises the second package dependency;
receiving a database statement that includes a first portion using the first package dependency and a second portion using the second package dependency; and
based on receiving the database statement, generating results data using the first execution environment and the second execution environment.

### Claim 22 (depends on 21)

The computer-storage medium of claim 21, wherein generating the results data using the first execution environment and the second execution environment comprises:
generating a first output by implementing the first portion of the database statement in the first execution environment; and
generating a second output by implementing the second portion of the database statement in the second execution environment.

### Claim 23 (depends on 22)

The computer-storage medium of claim 22, wherein generating the results data using the first execution environment and the second execution environment further comprises:
generating the results data based on the first output and the second output.

### Claim 24 (depends on 22)

The computer-storage medium of claim 22, wherein the second output is generated based on the first output.

### Claim 25 (depends on 21)

The computer-storage medium of claim 21, wherein identifying the plurality of package dependencies of the user application comprises:
generating a configuration file that specifies the plurality of package dependencies of the user application.

### Claim 26 (depends on 25)

The computer-storage medium of claim 25, the operations further comprising:
accessing the plurality of package dependencies from a repository of packages based on the configuration file.

### Claim 27 (depends on 21)

The computer-storage medium of claim 21, wherein the first execution environment is configured for a first version of a programming language and the second execution environment is configured for a second version of the programming language.

### Claim 28 (depends on 27)

The computer-storage medium of claim 27, wherein the programming language is Python.

### Claim 29 (depends on 21)

The computer-storage medium of claim 21, wherein the first execution environment is configured for a first programming language and the second execution environment is configured for a second programming language.

### Claim 30 (depends on 21)

The computer-storage medium of claim 21, wherein the first execution environment is configured for a first computing architecture and the second execution environment is configured for a second computing architecture.
