# US 2022/0292099 A1 · Virtual database tables with updatable logical table pointers

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

- Number: US 2022/0292099 A1
- Document ID: US20220292099A1
- Status: Published application
- Kind: A1
- Application number: 17/830,935
- Filed: 2022-06-02
- Published: 2022-09-15
- Earliest claimed: 2019-09-20
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Ruediger Karl; Mihnea Andrei; Juchang Lee; Stefan Baeuerle; Seyeong Bae; Joo Yeon Lee
- Web page: https://patentgrep.com/patent/US20220292099A1

## CPC

- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/24562: {Pointer or reference processing operations}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/24552: {Database cache management}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques and solutions are described for implementing virtual table schemas. A virtual table schema includes a logical pointer that is used to target a table that includes data and is defined according to the virtual table schema. Values assigned to the logical pointer can be used to target tables at different locations, such as in-memory storage or in dynamic storage of a database management system. The dynamic storage includes an in-memory buffer cache and persistent storage. The logical pointer can be updated to point to the in-memory storage or the dynamic storage, including based on use statistics. Similarly, a table having data for the virtual table can be transitioned between the in-memory buffer cache and the persistent storage, including based on use statistics for the virtual table. A value for the logical pointer can be updated when the table is transferred between the in-memory buffer cache and the dynamic storage.

## Claims

### Claim 1

A computing system comprising:
at least one memory;
at least one hardware processing unit coupled to the at least one memory; and
one or more computer readable storage media storing computer-executable instructions that, when executed, cause the computing system to perform operations comprising:
creating a first schema for a database view in a data dictionary, the first schema having a first value specifying a first location of a first source of data for the database view;
receiving a request to update the first schema to remove the first value and to add a second value specifying a second location of a second source of data for the database view, wherein the first source of data comprises a relational database table or a source of semi-structured or unstructured data, wherein, when the first source of data comprises a relational database table or view, the second source of data comprises a source of semi-structured or unstructured data, and, when the first source of data comprises a source of semi-structured or unstructured data, the second source of data comprises a relational database table;
in response to the receiving a request:
removing the first value from the first schema; and
adding the second value to the first schema.

### Claim 2 (depends on 1)

The computing system of claim 1, wherein the source of semi-structured data or unstructured data is comprised within a data lake.

### Claim 3 (depends on 2)

The computing system of claim 2, wherein the data lake is hosted on a cloud computing system.

### Claim 4 (depends on 2)

The computing system of claim 2, wherein the relational database table or view is comprised within a relational database.

### Claim 5 (depends on 4)

The computing system of claim 4, wherein the relational database and the data lake are physically separate.

### Claim 6 (depends on 1)

The computing system of claim 1, the operations further comprising:
in response to the receiving a request, recompiling a query plan that comprises a reference to the database view.

### Claim 7 (depends on 1)

The computing system of claim 1, the operations further comprising:
receiving a query specifying the database view;
determining that the first value was removed from the first schema; and
recompiling a query plan for the query in response to the determining that the first value was removed from the first schema.

### Claim 8 (depends on 1)

The computing system of claim 1, wherein the request comprises an ALTER command

### Claim 9

A method, implemented in a computing environment comprising at least one hardware processor and at least one memory coupled to the at least one hardware processor, the method comprising:
sending a request to a database to create a first schema for a database view in a data dictionary, the first schema having a first value specifying a first location of a first source of data for the database view and defining a plurality of attributes for the database view; and
sending a request to update the first schema to remove the first value and to add a second value specifying a second location of a second source of data for the database view, wherein the first source of data comprises a relational database table or a source of semi-structured or unstructured data, wherein, when the first source of data comprises a relational database table or view, the second source of data comprises a source of semi-structured or unstructured data, and, when the first source of data comprises a source of semi-structured or unstructured data, the second source of data comprises a relational database table.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
prior sending the request to update the first schema, issuing a first query specifying the database view; and
receiving first query results in response to the first query, the first query results comprising data from, or derived at least in part from, the first data source.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
after sending the request to update the first schema, issuing a second query specifying the database view; and
receiving second query results in response to the second query, the second query results comprising data from, or derived at least in part from, the second data source.

### Claim 12 (depends on 9)

The method of claim 9, wherein the source of semi-structured data or unstructured data is comprised within a data lake.

### Claim 13 (depends on 12)

The method of claim 12, wherein the data lake is hosted on a cloud computing system.

### Claim 14 (depends on 12)

The method of claim 12, wherein the relational database table or view is comprised within a relational database.

### Claim 15 (depends on 14)

The method of claim 14, wherein the relational database and the data lake are physically separate.

### Claim 16

One or more computer-readable storage media comprising:
computer-executable instructions that, when executed by a computing system comprising at least one hardware processor and at least one memory coupled to the at least one hardware processor, cause the computing system to create a first schema for a database view in a data dictionary, the first schema having a first value specifying a first location of a first source of data for the database view and defining a plurality of attributes for the database view, wherein the first source of data comprises a source of semi-structured or unstructured data;
computer-executable instructions that, when executed by the computing system, cause the computing system to receive a request to update the first schema to remove the first value and to add a second value specifying a second location of a second source of data for the database view, wherein the second source of data is different than the first source of data;
computer-executable instructions that, when executed by the computing system, cause the computing system to, in response to the receiving a request, remove the first value from the first schema; and
computer-executable instructions that, when executed by the computing system, cause the computing system to, in response to the receiving a request, add the second value to the first schema.

### Claim 17 (depends on 16)

The one or more computer-readable storage media of claim 16, wherein the source of semi-structured data or unstructured data is comprised within a data lake.

### Claim 18 (depends on 17)

The one or more computer-readable storage media of claim 17, wherein the data lake is hosted on a cloud computing system.

### Claim 19 (depends on 17)

The one or more computer-readable storage media of claim 17, wherein the second source of data is a relational database table or view comprised within a relational database.

### Claim 20 (depends on 19)

The one or more computer-readable storage media of claim 19, wherein the relational database and the data lake are physically separate.
