# US 2016/0253361 A1 · Incorporating external data into a database schema

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

- Number: US 2016/0253361 A1
- Document ID: US20160253361A1
- Status: Published application
- Kind: A1
- Application number: 14/632,756
- Filed: 2015-02-26
- Published: 2016-09-01
- Earliest claimed: 2015-02-26
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Filip Nguyen; Filip Elias
- Web page: https://patentgrep.com/patent/US20160253361A1

## CPC

- G06F 16/213: {with details for schema evolution support}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Various examples are directed to systems and methods for managing a database to include data from an external data source. A database engine may receive a request to add a reference column to a database described by a database schema. The request may comprise a location parameter describing a location of the external data source comprising data for populating the reference column and a data identifying parameter describing data at the external data source for populating the reference column. The database engine may modify the database schema to include the reference column, send a query to the external data source to obtain at least one data item for populating the reference column, and populate the reference column with the at least one data item.

## Claims

### Claim 1

A system for managing a database to include data from an external data source, the system comprising:
at least one processor and an operatively-associated computer-readable-medium, wherein the at least one processor is programmed to execute a database engine, and wherein the database engine is configured to:
receive a request to add a reference column to a database described by a database schema, wherein the request comprises:
a type parameter describing a type of an external data source;
a location parameter describing a location of the external data source comprising data for populating the reference column;
a credential parameter for accessing the data at the external data source; and
a data identifying parameter describing data at the external data source for populating the reference column;
modify the database schema to include the reference column; and
send a query to the external data source to obtain a value for at least one data item for populating the reference column; and
populate the reference column with the value for the at least one data item.

### Claim 2 (depends on 1)

The system of claim 1, wherein the data identifying parameter comprises a description of the query.

### Claim 3 (depends on 1)

The system of claim 1, wherein the database engine is further configured to set a data type for the reference column based on the value for the at least one data item.

### Claim 4 (depends on 1)

The system of claim 1, wherein populating the reference column comprises populating the reference column in response to a query from a client requesting an operation on a data item corresponding to the reference column.

### Claim 5 (depends on 1)

The system of claim 1, wherein populating the reference column comprises periodically populating the reference column.

### Claim 6

A system for managing a database to include data from an external data source, the system comprising:
at least one processor and an operatively-associated computer-readable-medium, wherein the at least one processor is programmed to execute a database engine, and wherein the database engine is configured to:
receive a request to add a reference column to a database described by a database schema, wherein the request comprises:
a location parameter describing a location of the external data source comprising data for populating the reference column; and
a data identifying parameter describing data at the external data source for populating the reference column;
modify the database schema to include the reference column; and
send a query to the external data source to obtain at least one data item for populating the reference column; and
populate the reference column with the at least one data item.

### Claim 7 (depends on 6)

The system of claim 6, wherein the external data source is selected from the group consisting of a database and a web server.

### Claim 8 (depends on 6)

The system of claim 6, wherein the request comprises a type parameter describing a type of an external data source.

### Claim 9 (depends on 6)

The system of claim 6, wherein the request comprises a credential parameter for accessing the data at the external data source.

### Claim 10 (depends on 9)

The system of claim 9, wherein the credential parameter comprises a user name and a password.

### Claim 11 (depends on 6)

The system of claim 6, wherein the data identifying parameter comprises a description of the query.

### Claim 12 (depends on 6)

The system of claim 6, wherein the request comprises a request to add a table to the database schema, wherein the table comprises the reference column.

### Claim 13 (depends on 6)

The system of claim 6, wherein the request comprises a request to add the reference column to a preexisting table in the database schema.

### Claim 14 (depends on 6)

The system of claim 6, wherein the data identifying parameter comprises a reference to a second column of a table comprising the reference column.

### Claim 15

A system for managing a database comprising data from a source outside the database, the system comprising:
at least one processor and an operatively-associated computer-readable-medium, wherein the at least one processor is programmed to execute a database engine, and wherein the database engine is configured to:
receive from a client a query, wherein the query identifies a data item from a table included in a database schema;
determine that the data item identified by the query corresponds to a reference column of the table, the reference column comprising a pointer to an external data source and a data identifying parameter describing a value for the data item stored at the external data source;
send a request to the external data source, wherein the request comprises an indication of the data identifying parameter;
receiving a reply from the external data source; and
returning to the client a reply, wherein the reply confirms that the query has been serviced.

### Claim 16 (depends on 15)

The system of claim 15, wherein the query requests a write operation to the at least one data item, wherein the request to the external data source comprises a request to write a value for the at least one data item to the external data source.

### Claim 17 (depends on 15)

The system of claim 15, wherein the query requests that the at least one data item be read.

### Claim 18 (depends on 17)

The system of claim 17, wherein the database engine is further configured to determine that a cache of at least a portion of the reference column comprising the at least one data item has not been updated for a threshold period, wherein the request comprises request to read a value for the at least one data item.

### Claim 19 (depends on 18)

The system of claim 18, wherein the query comprises an indication of the cache threshold.

### Claim 20 (depends on 15)

The system of claim 15, wherein the request is sent in response to the query.
